yum install -y yum-utils yum-config-manager --add-repo https://docs.docker.com/v1.13/engine/installation/linux/repo_files/centos/docker.repo yum makecache fast yum list docker-engine.x86_64 --showduplicates |sort -r rpm -qa | grep docker* yum install -y docker-engine-1.12.6 systemctl start docker systemctl enable docker
Kubernetes 1.6尚未針對docker 1.13和最新的docker 17.03上作測試和驗證,因此這裏安裝Kubernetes官方推薦的Docker 1.12版本node
cat >> /etc/yum.repos.d/kubernetes.repo <<EOF [kubernetes] name=Kubernetes baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/ enabled=1 gpgcheck=0 EOF cat >> /etc/sysctl.d/k8s.conf <<EOF net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 EOF sysctl -p /etc/sysctl.d/k8s.conf
kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: dashboard-admin roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: default namespace: kube-system
kubectl create -f dashboard-rbac.ymllinux