kubectl apply -f https://github.com/flannel-io/flannel/blob/629cd70d816e56853aac967f92ed3dade7275baf/Documentation/kube-flannel.yml
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
老师,打扰,部署master节点后报了这个错误,上面那个地址,浏览器都打不开,https://github.com/,https://raw.githubusercontent.com/,访问不通。
[root@master ~]# kubectl get pod -n kube-system
NAME READY STATUS RESTARTS AGE
coredns-6d56c8448f-gz8dj 1/1 Running 1 22d
coredns-6d56c8448f-nbbsv 1/1 Running 1 22d
etcd-master 1/1 Running 1 22d
kube-apiserver-master 1/1 Running 1 22d
kube-controller-manager-master 1/1 Running 2 22d
kube-flannel-ds-6b7x2 0/1 CrashLoopBackOff 7 20d
kube-flannel-ds-9kggt 0/1 CrashLoopBackOff 68 22d
kube-proxy-m69gv 1/1 Running 0 20d
kube-proxy-wtp7n 1/1 Running 1 22d
kube-scheduler-master 1/1 Running 3 22d
然后想执行kubectl apply -f kubeblog/docs/Chapter4/flannel.yaml试下。
报了这个错误
podsecuritypolicy.policy/psp.flannel.unprivileged configured
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 unchanged