Skip to content

Commit efdfca0

Browse files
committed
K8S-275 nginx-ingress deployment cleanup
1 parent aea9a65 commit efdfca0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

addons/upgrade.jps

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ actions:
4949
- cmd[${nodes.k8sm.master.id}]: |-
5050
kubectl get daemonset traefik-ingress-controller -n kube-system &>/dev/null && echo "traefik" ||:
5151
kubectl get deployment nginx-ingress-controller -n ingress-nginx &>/dev/null && echo "nginx" ||:
52+
kubectl get daemonset nginx-ingress-controller -n ingress-nginx &>/dev/null && echo "nginx" ||:
5253
kubectl get daemonset haproxy-ingress -n ingress-controller &>/dev/null && echo "haproxy" ||:
5354
- setGlobals:
5455
ingress-dir: ${response.out}
@@ -61,9 +62,10 @@ actions:
6162
kubectl -n kube-system wait --for=condition=Ready pod -l name=traefik-ingress-lb --timeout=-1s
6263
;;
6364
xnginx)
65+
kubectl -n ingress-nginx delete deployment nginx-ingress-controller
6466
kubectl apply -f ${baseUrl}/addons/nginx/mandatory.yaml
6567
kubectl apply -f ${baseUrl}/addons/nginx/cloud-generic.yaml
66-
wait-deployment.sh nginx-ingress-controller ingress-nginx 1 720
68+
kubectl -n ingress-nginx wait --for=condition=Ready pod -l app.kubernetes.io/name=ingress-nginx --timeout=-1s
6769
;;
6870
xhaproxy)
6971
kubectl apply -f ${baseUrl}/addons/haproxy/haproxy-deployment.yaml
@@ -147,7 +149,7 @@ actions:
147149
- cmd[${this}]: |-
148150
service kubelet restart
149151
helm repo update
150-
wget -qO- https://github.com/derailed/k9s/releases/download/v0.17.6/k9s_Linux_x86_64.tar.gz | tar xz -C /usr/bin k9s
152+
wget -qO- https://github.com/derailed/k9s/releases/download/v0.17.7/k9s_Linux_x86_64.tar.gz | tar xz -C /usr/bin k9s
151153
wget -qO- https://github.com/derailed/popeye/releases/download/v0.7.1/popeye_Linux_x86_64.tar.gz | tar xz -C /usr/bin popeye
152154
wget -nv https://github.com/wercker/stern/releases/download/1.11.0/stern_linux_amd64 -O /usr/bin/stern
153155
chmod +x /usr/bin/stern

manifest.jps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ actions:
163163
mkdir -p $HOME/.kube
164164
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
165165
chown root:root $HOME/.kube/config
166-
wget -qO- https://github.com/derailed/k9s/releases/download/v0.17.6/k9s_Linux_x86_64.tar.gz | tar xz -C /usr/bin k9s
166+
wget -qO- https://github.com/derailed/k9s/releases/download/v0.17.7/k9s_Linux_x86_64.tar.gz | tar xz -C /usr/bin k9s
167167
wget -qO- https://github.com/derailed/popeye/releases/download/v0.7.1/popeye_Linux_x86_64.tar.gz | tar xz -C /usr/bin popeye
168168
wget -nv https://github.com/wercker/stern/releases/download/1.11.0/stern_linux_amd64 -O /usr/bin/stern
169169
chmod +x /usr/bin/stern

0 commit comments

Comments
 (0)