Skip to content

Commit

Permalink
Merge pull request #27095 from pacoxu/new-annotations
Browse files Browse the repository at this point in the history
New annotations “kubectl.kubernetes.io/default-container”
  • Loading branch information
k8s-ci-robot authored Mar 22, 2021
2 parents bb2f640 + 4c51305 commit b7e6963
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/en/docs/reference/labels-annotations-taints.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ Used on: Pod
The Job controller in the kube-controller-manager sets this annotation for Pods
created with Indexed [completion mode](/docs/concepts/workloads/controllers/job/#completion-mode).

## 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
Expand Down Expand Up @@ -262,4 +268,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`.

0 comments on commit b7e6963

Please sign in to comment.