Skip to content

Commit ea515e9

Browse files
author
Tim Bannister
committed
Document annotation for client-side apply
1 parent 734ebfb commit ea515e9

File tree

1 file changed

+16
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+16
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,22 @@ This annotation is deprecated. You should use the
11211121
annotation instead. Kubernetes versions 1.25 and newer ignore this annotation.
11221122
{{< /note >}}
11231123

1124+
### kubectl.kubernetes.io/last-applied-configuration
1125+
1126+
Type: Annotation
1127+
1128+
Example: _see following snippet_
1129+
```yaml
1130+
kubectl.kubernetes.io/last-applied-configuration: >
1131+
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"name":"example","namespace":"default"},"spec":{"selector":{"matchLabels":{"app.kubernetes.io/name":foo}},"template":{"metadata":{"labels":{"app.kubernetes.io/name":"foo"}},"spec":{"containers":[{"image":"container-registry.example/foo-bar:1.42","name":"foo-bar","ports":[{"containerPort":42}]}]}}}}
1132+
```
1133+
1134+
Used on: all objects
1135+
1136+
The kubectl command line tool uses this annotation as a legacy mechanism
1137+
to track changes. That mechanism has been superseded by
1138+
[Server-side apply](/docs/reference/using-api/server-side-apply/).
1139+
11241140
### endpoints.kubernetes.io/over-capacity
11251141
11261142
Type: Annotation

0 commit comments

Comments
 (0)