Skip to content

Commit

Permalink
Upgrade cluster scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitmaji committed Sep 21, 2022
1 parent a13c8c3 commit 7777910
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install_k8s/gok
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,17 @@ patchLocalTls(){
NS=$2
kubectl patch ing "$NAME" --patch "$(
cat <<EOF
spec:
rules:
- host: $APP_HOST
spec:
tls:
- hosts:
- $APP_HOST
secretName: appingress-certificate
EOF
)" -n "$NS"
#kubectl patch ing "$NAME" --type=json -p='[{"op": "replace", "path": "/spec/rules/0/host", "value":"${APP_HOST}"}]' -n "$NS"
kubectl patch ing "$NAME" --type=json -p='[{"op": "add", "path": "/metadata/annotations", "value":{"nginx.ingress.kubernetes.io/rewrite-target": "/", "kubernetes.io/ingress.class": "nginx"}}]' -n "$NS"
}

Expand Down

0 comments on commit 7777910

Please sign in to comment.