Created
October 15, 2021 14:45
-
-
Save joakimhew/8593fb81220c7bcdbb6985840f02c510 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
for kind in daemonSet clusterRole clusterRoleBinding serviceAccount; do | |
echo "setting annotations and labels on $kind/aws-node" | |
kubectl -n kube-system annotate --overwrite $kind aws-node meta.helm.sh/release-name=aws-vpc-cni | |
kubectl -n kube-system annotate --overwrite $kind aws-node meta.helm.sh/release-namespace=kube-system | |
kubectl -n kube-system label --overwrite $kind aws-node app.kubernetes.io/managed-by=Helm | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment