Skip to content

Commit

Permalink
Update for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ncapps committed Nov 22, 2023
1 parent 7a22a7d commit 1037644
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions site/content/en/docs/Tasks/labels_and_annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,9 @@ resources:

## Working with Annotations
### Add Annotations
Add annotations to all Resources in a project with the [`commonAnnotations`] field. This will override values for annotations keys that already exist. Annotations are propagated to Pod templates.

The following example adds common annotations to a Deployment.
[`commonAnnotations`] can be used to add annotations to all Resources in a project. This will override values for annotations keys that already exist. Annotations are propagated to the Deployment Pod template.

Here is an example of how to add annotations to a Deployment.
1. Create a Kustomization file.
```yaml
# kustomization.yaml
Expand All @@ -273,7 +272,7 @@ metadata:
```bash
kustomize build .
```
The output shows that annotations are added to the metadata field.
The output shows that the `commonAnnotations` field is used to add annotations to a Deployment.
```yaml
apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit 1037644

Please sign in to comment.