Learning about GKE Kubernetes Ingress auto generated manifests

12/3/2018

I notice that when I create an Ingress on GKE several annotations are automatically generated thus:

annotations: ingress.kubernetes.io/backends: '{"k8s-be-30266--edf23f6631e3474e":"HEALTHY"}' ingress.kubernetes.io/forwarding-rule: k8s-fw-default-nginx-ingress--edf23f6631e3474e ingress.kubernetes.io/target-proxy: k8s-tp-default-nginx-ingress--edf23f6631e3474e ingress.kubernetes.io/url-map: k8s-um-default-nginx-ingress--edf23f6631e3474e

Is there any way these annotations can be viewed, as this would help me further understand better. TIA

Shaun

-- user3115872
kubernetes-ingress

1 Answer

12/6/2018

For this you need to use get and -o yaml For example:

kubectl get deployment myapp-deployment -o yaml

result in terminal will be YAML with whole configuration of deployment myapp-deployment More useful command you can find in official doc page

-- Nick Rak
Source: StackOverflow