kubernetes v1.18.2 部署flannel
2021-03-10 21:30
标签:yam eth0 request pac star amd 第一个 context 应用 kubernetes v1.18.2 部署flannel 标签:yam eth0 request pac star amd 第一个 context 应用 原文地址:https://blog.51cto.com/juestnow/2493028cat
部署 flannel
kubectl apply -f yaml/kube-flannel.yaml
# 我已经不过了
root@Qist:/mnt/g/work/ipv6/1# kubectl apply -f yaml/kube-flannel.yaml
clusterrole.rbac.authorization.k8s.io/flannel unchanged
clusterrolebinding.rbac.authorization.k8s.io/flannel unchanged
serviceaccount/flannel unchanged
configmap/kube-flannel-cfg unchanged
daemonset.apps/kube-flannel-ds-amd64 unchanged
# 查看 flannel 是否部署成功
root@Qist:/mnt/g/work/ipv6/1# kubectl get node
NAME STATUS ROLES AGE VERSION
k8s-master-1 Ready
部署第一个应用pod 网络是否正常
kubectl create deployment myip --image=cloudnativelabs/whats-my-ip
kubectl expose deployment myip --port=8080 --target-port=8080
root@Qist:/tmp/sss# kubectl get pod
NAME READY STATUS RESTARTS AGE
myip-75c9c47c7f-b8dv8 1/1 Running 0 11m
root@Qist:/tmp/sss# kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.66.0.1
文章标题:kubernetes v1.18.2 部署flannel
文章链接:http://soscw.com/index.php/essay/62938.html