I'm attempting to update the image for my Deployment. To this I am executing kubectl edit deployment web and am changing the spec.template.spec.containers.image property from:
gcr.io/my-project-id-1234/app:v1 To:
gcr.io/my-project-id-1234/app:v2 From the logs, I know the deployment updates fine. The problem I'm having is with the TLS ingress; here is my configuration:
apiVersion: extensions/v1beta1 kind: Ingress metadata: name: tls-ingress spec: tls: - secretName: tls-secrets backend: serviceName: web servicePort: 80 And here is the result of kubectl describe ing web prior to the update:
$ kubectl describe ing Name: tls-ingress Namespace: default Address: 105.78.154.212 Default backend: web:80 (10.0.2.3:8000) TLS: tls-secrets terminates Rules: Host Path Backends ---- ---- -------- Annotations: backends: {"k8s-be-32171":"HEALTHY"} forwarding-rule: k8s-fw-default-tls-ingress https-forwarding-rule: k8s-fws-default-tls-ingress https-target-proxy: k8s-tps-default-tls-ingress static-ip: k8s-fw-default-tls-ingress target-proxy: k8s-tp-default-tls-ingress url-map: k8s-um-default-tls-ingress Before the update everything works correctly. But shortly traffic stops being successfully routed to my cluster. Describing the ingress now returns:
Name: tls-ingress Namespace: default Address: 105.78.154.212 Default backend: web:80 (10.0.2.3:8000) TLS: tls-secrets terminates Rules: Host Path Backends ---- ---- -------- Annotations: static-ip: k8s-fw-default-tls-ingress target-proxy: k8s-tp-default-tls-ingress url-map: k8s-um-default-tls-ingress backends: {"k8s-be-32171":"UNHEALTHY"} forwarding-rule: k8s-fw-default-tls-ingress https-forwarding-rule: k8s-fws-default-tls-ingress https-target-proxy: k8s-tps-default-tls-ingress How do I properly update the Ingress when updating my Deployment like so?