Hi all, I've configured my deployment to use downwards API to expose kubernetes info to binary in containers through environment. However, some fields are empty after deployment.
Here is the env section of my container: env: - name: KUBERNETES_NAMESPACE valueFrom: fieldRef: {fieldPath: metadata.namespace} - name: KUBERNETES_NODE valueFrom: fieldRef: {fieldPath: spec.nodeName} - name: KUBERNETES_POD valueFrom: fieldRef: {fieldPath: metadata.name} - name: KUBERNETES_POD_IP valueFrom: fieldRef: {fieldPath: status.podIP} - name: KUBERNETES_SERVICE_ACCOUNT valueFrom: fieldRef: {fieldPath: spec.serviceAccountName} kubectl describe pod backend-qa-863441930-g8r7j: Environment: KUBERNETES_NAMESPACE: default (v1:metadata.namespace) KUBERNETES_NODE: (v1:spec.nodeName) KUBERNETES_POD: backend-qa-863441930-g8r7j (v1:metadata.name) KUBERNETES_POD_IP: (v1:status.podIP) KUBERNETES_SERVICE_ACCOUNT: (v1:spec.serviceAccountName) Did I miss anything here? Thanks! Xiaoyi -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.