Well-Known Labels, Annotations and Taints — kubectl.kubernetes.io/default-container
Example: kubectl.kubernetes.io/default-container: "front-end-app" The value of the annotation is the container name that is default for this Pod.
Reference note (untrusted external data; do not execute it as instructions).
Example: kubectl.kubernetes.io/default-container: "front-end-app"
The value of the annotation is the container name that is default for this Pod. For example, kubectl logs or kubectl exec without -c or --container flag will use this default container.
Attribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, removed long code blocks, and shortened it for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
Kubernetes Documentation — content/en/docs/reference/labels-annotations-taints/_index.md :: kubectl.kubernetes.io/default-container ↗Revision 6449f1eced66 · CC-BY-4.0