CentOS7使用kubeadm安装k8s(1.16.3) - Thu, Nov 28, 2019
CentOS7安装k8s1.16.3
kubeadm init --apiserver-advertise-address=192.168.1.118 --pod-network-cidr=10.244.0.0/16 --image-repository registry.cn-hangzhou.aliyuncs.com/google_containers
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -f https://docs.projectcalico.org/v3.8/manifests/canal.yaml
kubeadm join 192.168.1.118:6443 --token huu57s.pnaqkyd5yodzbqhm \
> --discovery-token-ca-cert-hash sha256:0305678150fd8cc8e534bee7888849ba0e86fedce9e8d15d952e87fa8568a500
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system canal-9kmq6 2/2 Running 0 31m
kube-system canal-jzg7k 2/2 Running 0 7m36s
kube-system canal-mtc7p 2/2 Running 0 9m15s
kube-system canal-tgtc5 2/2 Running 0 3m51s
kube-system coredns-67c766df46-b7dwh 1/1 Running 0 32m
kube-system coredns-67c766df46-rrjtn 1/1 Running 0 32m
kube-system etcd-master 1/1 Running 0 31m
kube-system kube-apiserver-master 1/1 Running 0 31m
kube-system kube-controller-manager-master 1/1 Running 0 31m
kube-system kube-proxy-67fcq 1/1 Running 0 32m
kube-system kube-proxy-86tpx 1/1 Running 0 7m36s
kube-system kube-proxy-pb4ck 1/1 Running 0 3m51s
kube-system kube-proxy-vrgvq 1/1 Running 0 9m15s
kube-system kube-scheduler-master 1/1 Running 0 32m