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
http://kubernetes.io/docs/getting-started-guides/centos/centos_manual_config/