CentOS7使用kubeadm安装k8s(1.16.3)

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

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 wind.kaisa@gmail.com

文章标题:CentOS7使用kubeadm安装k8s(1.16.3)

本文作者:kaisawind

发布时间:2019-11-28, 02:58:16

最后更新:2020-11-18, 15:55:44

原始链接:https://kaisawind.gitee.io/2019/11/27/2019-11-28-k8s1.16.3/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录
×

喜欢就点赞,疼爱就打赏