Kubernetes : do we need to set http_proxy and no_proxy in apiserver manifest?
There are no such a flags available for Kubeadm at the moment. You may want to open github request for that feature.
You can use the way described here or here and export variables:
$ export http_proxy=http://proxy-ip:port/$ export https_proxy=http://proxy-ip:port/$ export no_proxy=master-ip,node-ip,127.0.0.1
And then use sudo -E bash
to use the current
$ sudo -E bash -c "kubeadm init... "
Alternative way would be to reference those variables in the command as showed here:
NO_PROXY=master-ip,node-ip,127.0.0.1 HTTPS_PROXY=http://proxy-ip:port/ sudo kubeadm init --pod-network-cidr=192.168.0.0/16...