Skip to content

Instantly share code, notes, and snippets.

@tobegit3hub
Last active November 29, 2018 23:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tobegit3hub/47ef3b19b66a6e6d64dc63b15b826cb4 to your computer and use it in GitHub Desktop.
Save tobegit3hub/47ef3b19b66a6e6d64dc63b15b826cb4 to your computer and use it in GitHub Desktop.

Install Kuberenetes in CentOS(Standalone)

yum install -y etcd
# vim /etc/yum.repos.d/virt7-docker-common-release.repo

[virt7-docker-common-release]
name=virt7-docker-common-release
baseurl=http://cbs.centos.org/repos/virt7-docker-common-release/x86_64/os/
gpgcheck=0
yum -y install --enablerepo=virt7-docker-common-release kubernetes
systemctl disable iptables-services firewalld
systemctl stop iptables-services firewalld
vim /etc/kubernetes/apiserver
# Remove “ServiceAccount”
for SERVICES in etcd kube-apiserver kube-controller-manager kube-scheduler; do 
	systemctl restart $SERVICES
	systemctl enable $SERVICES
	systemctl status $SERVICES 
done

for SERVICES in kube-proxy kubelet docker; do 
    systemctl restart $SERVICES
    systemctl enable $SERVICES
    systemctl status $SERVICES 
done

Reference

http://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment