From 73d6a3f6276efe567c029ecc314758adca958f5b Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Mon, 5 Aug 2024 13:42:12 -0700 Subject: [PATCH] Fix helm apply command formatting. Fix helm apply command formatting. --- stable/aws-vpc-cni/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stable/aws-vpc-cni/README.md b/stable/aws-vpc-cni/README.md index aea9b8611..bbedff4eb 100644 --- a/stable/aws-vpc-cni/README.md +++ b/stable/aws-vpc-cni/README.md @@ -126,8 +126,10 @@ done kubectl -n kube-system annotate --overwrite configmap amazon-vpc-cni meta.helm.sh/release-name=aws-vpc-cni kubectl -n kube-system annotate --overwrite configmap amazon-vpc-cni meta.helm.sh/release-namespace=kube-system kubectl -n kube-system label --overwrite configmap amazon-vpc-cni app.kubernetes.io/managed-by=Helm +``` Kubernetes recommends using server-side apply for more control over the field manager. After adopting the chart resources, you can run the following command to apply the chart: + ``` helm template aws-vpc-cni --include-crds --namespace kube-system eks/aws-vpc-cni --set originalMatchLabels=true | kubectl apply --server-side --force-conflicts --field-manager Helm -f - ```