Skip to content

Commit

Permalink
Add proxy env to /etc/environment (#687)
Browse files Browse the repository at this point in the history
`#kubeone` markers are used to allow reset and idempotency
  • Loading branch information
thz authored and kubermatic-bot committed Sep 26, 2019
1 parent 4a8c8fb commit dd6ff10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/installer/installation/prerequisites.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ export NO_PROXY no_proxy
{{ end }}
EOF
`
envtmp=/tmp/k1-etc-environment
grep -v '#kubeone$' /etc/environment > $envtmp
grep = /etc/kubeone/proxy-env | sed 's/$/#kubeone/' >> $envtmp
sudo tee /etc/environment < $envtmp
`
kubeadmDebianScript = `
sudo swapoff -a
sudo sed -i '/.*swap.*/d' /etc/fstab
Expand Down

0 comments on commit dd6ff10

Please sign in to comment.