Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions content/en/docs/reference/labels-annotations-taints/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,58 @@ The tutorial illustrates using AppArmor to restrict a container's abilities and
The profile specified dictates the set of rules and restrictions that the containerized process must
adhere to. This helps enforce security policies and isolation for your containers.

### deployment.kubernetes.io/desired-replicas

Type: Annotation

Example: `deployment.kubernetes.io/desired-replicas: "3"`

Used on: ReplicaSet

This annotation is set by the Deployment controller on ReplicaSets it manages.
The value represents the desired number of replicas (`.spec.replicas`) from the Deployment
that owns this ReplicaSet. The Deployment controller uses this annotation to track the
desired state during rolling updates and scaling operations.

This is an internal annotation used by the Deployment controller and should not be
modified manually.

### deployment.kubernetes.io/max-replicas

Type: Annotation

Example: `deployment.kubernetes.io/max-replicas: "5"`

Used on: ReplicaSet

This annotation is set by the Deployment controller on ReplicaSets it manages.
The value represents the maximum number of replicas that this ReplicaSet is allowed to have
during a rolling update. This is used to implement the `maxSurge` parameter of the
Deployment's rolling update strategy, which controls how many extra Pods can be created
above the desired number during an update.

This is an internal annotation used by the Deployment controller and should not be
modified manually.

### deployment.kubernetes.io/revision

Type: Annotation

Example: `deployment.kubernetes.io/revision: "2"`

Used on: ReplicaSet

This annotation is set by the Deployment controller on ReplicaSets it manages.
The value represents the revision number of the Deployment. Each time the Deployment's
Pod template (`.spec.template`) is changed, the revision number is incremented.
This annotation is used to track the rollout history and enables rollback to previous
revisions using `kubectl rollout undo`.

The revision number is also visible when running `kubectl rollout history deployment/<name>`.

This is an internal annotation used by the Deployment controller and should not be
modified manually.

### internal.config.kubernetes.io/* (reserved prefix) {#internal.config.kubernetes.io-reserved-wildcard}

Type: Annotation
Expand Down