Merge branch 'feature/enhanced-configuration'
This commit is contained in:
commit
c23d2aef9f
34 changed files with 790 additions and 643 deletions
|
|
@ -106,7 +106,7 @@ if ! grep -qF "$BLOCK_START" "$BASHRC"; then
|
|||
eval `ssh-agent -s`
|
||||
ssh-add ~/machines/*/virtualbox/private_key
|
||||
ssh-add -L
|
||||
source ~/vagrant/.envrc
|
||||
source /vagrant/.envrc
|
||||
EOF
|
||||
else
|
||||
echo "Provisioning block already present in $BASHRC"
|
||||
|
|
|
|||
34
vagrant/dev/ubuntu/k8s/nginx-test/deployment_infmon.yaml
Normal file
34
vagrant/dev/ubuntu/k8s/nginx-test/deployment_infmon.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: infmon-cli
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: infmon-cli
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: infmon-cli
|
||||
spec:
|
||||
containers:
|
||||
- name: infmon-cli
|
||||
image: 192.168.2.190:5000/infmon-cli:0.0.1
|
||||
command: ["sleep", "infinity"]
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
volumeMounts:
|
||||
- name: kubeconfig
|
||||
mountPath: /root/.kube/config
|
||||
subPath: config
|
||||
volumes:
|
||||
- name: kubeconfig
|
||||
secret:
|
||||
secretName: infmon-kubeconfig
|
||||
7
vagrant/dev/ubuntu/k8s/nginx-test/install.sh
Executable file
7
vagrant/dev/ubuntu/k8s/nginx-test/install.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
kubectl apply -f pvc.yaml
|
||||
kubectl apply -f deployment.yaml
|
||||
kubectl apply -f service.yaml
|
||||
kubectl apply -f ingress.yaml
|
||||
|
|
@ -16,14 +16,5 @@
|
|||
],
|
||||
"retryCount": 0,
|
||||
"shouldAbort": true
|
||||
},
|
||||
{
|
||||
"name": "Wait for Longhorn pods to come up",
|
||||
"function": "RunCommand",
|
||||
"params": [
|
||||
"./scripts/wait_for_longhorn.sh"
|
||||
],
|
||||
"retryCount": 10,
|
||||
"shouldAbort": true
|
||||
}
|
||||
]
|
||||
|
|
@ -14,21 +14,6 @@ then
|
|||
install_infctl
|
||||
fi
|
||||
|
||||
# base.json.example config.json.example
|
||||
|
||||
# https://codeberg.org/headshed/infctl-cli/raw/branch/main/base.json.example
|
||||
|
||||
# https://codeberg.org/headshed/infctl-cli/raw/branch/main/config.json.example
|
||||
|
||||
if [ ! -f "base.json" ]; then
|
||||
echo "base.json not found in home directory, downloading..."
|
||||
curl -o "base.json" https://codeberg.org/headshed/infctl-cli/raw/branch/main/base.json.example
|
||||
fi
|
||||
|
||||
if [ ! -f "config.json" ]; then
|
||||
echo "config.json not found in home directory, downloading..."
|
||||
curl -o "config.json" https://codeberg.org/headshed/infctl-cli/raw/branch/main/config.json.example
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue