From 352e776eed470e7d147963c697120b3d0a446691 Mon Sep 17 00:00:00 2001 From: Paco Xu Date: Fri, 19 Mar 2021 13:14:30 +0800 Subject: [PATCH] Update content/en/docs/reference/labels-annotations-taints.md Co-authored-by: Tim Bannister --- .../en/docs/reference/labels-annotations-taints.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/en/docs/reference/labels-annotations-taints.md b/content/en/docs/reference/labels-annotations-taints.md index 3d62069d40..2c2a4c001c 100644 --- a/content/en/docs/reference/labels-annotations-taints.md +++ b/content/en/docs/reference/labels-annotations-taints.md @@ -198,6 +198,12 @@ The kubelet can set this annotation on a Node to denote its configured IPv4 addr When kubelet is started with the "external" cloud provider, it sets this annotation on the Node to denote an IP address set from the command line flag (`--node-ip`). This IP is verified with the cloud provider as valid by the cloud-controller-manager. +## 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. For example, `kubectl logs` or `kubectl exec` without `-c` or `--container` flag will use this default container. + **The taints listed below are always used on Nodes** ## node.kubernetes.io/not-ready @@ -253,9 +259,3 @@ Sets this taint on a node to mark it as unusable, when kubelet is started with t Example: `node.cloudprovider.kubernetes.io/shutdown:NoSchedule` If a Node is in a cloud provider specified shutdown state, the Node gets tainted accordingly with `node.cloudprovider.kubernetes.io/shutdown` and the taint effect of `NoSchedule`. - -## kubectl.kubernetes.io/default-container - -Example: `kubectl.kubernetes.io/default-container:container1` - -If a Pod has the annotation `kubectl.kubernetes.io/default-container`, consumers (CLI, operators) know which is the default container. For example, `kubectl logs` or `kubectl exec` without `-c` or `--container` flag will use this default container.