From 26f01210aabf001d299d9de6c01117308eae5967 Mon Sep 17 00:00:00 2001 From: Nick Capps Date: Sat, 18 Nov 2023 15:37:49 -0800 Subject: [PATCH] Update for consistency --- site/content/en/docs/Tasks/labels_and_annotations.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/site/content/en/docs/Tasks/labels_and_annotations.md b/site/content/en/docs/Tasks/labels_and_annotations.md index 1875fb6cd4f..f02f1efa745 100644 --- a/site/content/en/docs/Tasks/labels_and_annotations.md +++ b/site/content/en/docs/Tasks/labels_and_annotations.md @@ -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 @@ -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