1

I created my cluster through kubeadm. Before the creation of the cluster I set an environment variable ~/.bashsrc. The variable I set is NO_PROXY. When the cluster is created this variable gets picked up and is applied to all pods.

I now want to add another entry to the NO_PROXY but I know that this update won't be picked up automatically by the cluster.

What is the best way to update the environment variables of a kubernetes cluster?

1 Answers1

1

Environment vars at the time of kubeadm init are not deployed to all pods. There are no pods at that time anyway, you have just created a kubemaster.

When you want to put NO_PROXY into pods/deployments you have to do that the usual way with env on the container.

   env:
    - name: NODE_NAME
      valueFrom:
        fieldRef:
          fieldPath: spec.nodeName     
Serve Laurijssen
  • 594
  • 2
  • 8
  • 17