Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Setup Kubernetes for CentOS

xwu2 edited this page Oct 15, 2020 · 1 revision

Setup kubelet proxy use the host proxy

sudo mkdir -p /etc/systemd/system/kubelet.service.d/
printf "[Service]\nEnvironment=\"HTTPS_PROXY=$https_proxy\" \"NO_PROXY=$no_proxy\"\n" | sudo tee /etc/systemd/system/kubelet.service.d/proxy.conf

Setup Kubernetes

sudo -E ./script/Kubernetes_setup_master.sh
mkdir -p $HOME/.kube
sudo cp -f /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
export KUBECONFIG=$HOME/.kube/config
kubectl taint nodes --all node-role.kubernetes.io/master-