c12s-kubespray/roles/kubernetes/master/tasks
Etienne Champetier 40857b9859 Ensure kubeadm doesn't use proxy (#7275)
* Move proxy_env to kubespray-defaults/defaults

There is no reasons to use set_facts here

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>

* Ensure kubeadm doesn't use proxy

*_proxy variables might be present in the environment (/etc/environment, bash profile, ...)
When this is the case we end up with those proxy configuration in /etc/kubernetes/manifests/kube-*.yaml manifests

We cannot unset env variables, but kubeadm is nice enough to ignore empty vars
93d288e2a4/cmd/kubeadm/app/util/env.go (L27)

Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
(cherry picked from commit 1c5391dda7)
2021-02-22 06:01:43 -08:00
..
encrypt-at-rest.yml ansible-lint: add spaces around variables [E206] (#4699) 2019-05-02 14:24:21 -07:00
kubeadm-certificate.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
kubeadm-cleanup-old-certs.yml Switch /root references to ansible_env.HOME (#4842) 2019-06-06 02:06:11 -07:00
kubeadm-etcd.yml install etcdctl to host when etcd deployment type is kubeadm (#6857) 2020-11-04 00:20:04 -08:00
kubeadm-fix-apiserver.yml Ensure kubeadm doesn't use proxy (#7275) 2021-02-22 06:01:43 -08:00
kubeadm-migrate-certs.yml Set certs and files with kubeadm token to mode 0640 (#5325) 2019-11-11 05:41:41 -08:00
kubeadm-secondary.yml Ensure kubeadm doesn't use proxy (#7275) 2021-02-22 06:01:43 -08:00
kubeadm-setup.yml Ensure kubeadm doesn't use proxy (#7275) 2021-02-22 06:01:43 -08:00
kubeadm-upgrade.yml Check kube-apiserver up on all masters before upgrade (#7193) (#7217) 2021-01-26 07:20:35 -08:00
kubeadm-version.yml Ensure kubeadm doesn't use proxy (#7275) 2021-02-22 06:01:43 -08:00
main.yml fix ansible password authentication (#6907) 2020-11-30 15:12:50 -08:00
pre-upgrade.yml Fix E306 in roles/kubernetes (#6500) 2020-08-05 07:56:28 -07:00