'What does ``kubectl set env daemonset aws-node` mean?
This page: https://github.com/aws/amazon-vpc-cni-k8s/blob/master/docs/iam-policy.md
uses:
kubectl set env daemonset aws-node -n kube-system CLUSTER_NAME=${YourClusterName}
and according to this page: https://kubernetes.io/docs/reference/kubectl/
everything after set seems to be a subcommand.
However, I don't understand what subcommand this is: daemonset aws-node -n kube-system CLUSTER_NAME=${YourClusterName}
Can someone explain (hopefully with more docs)?
Solution 1:[1]
...don't understand what subcommand this is: daemonset aws-node -n kube-system CLUSTER_NAME=${YourClusterName}
Every EKS node runs an instance of aws-node pod which provide CNI functionality to the node. The command set the environment variable named CLUSTER_NAME value to the name of your cluster for every pod managed by the daemonset. So that you do not need to go node by node to change each running pod environment variable, the command set and automatically restart all the pod(s) for you.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | gohm'c |
