3.验证DNS组件是否正常工作[root@node-exporter41 ~]# kubectl get svc,pods -n kube-system NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/coredns ClusterIP 10.200.0.254 <none> 53/UDP,53/TCP,9153/TCP 14h NAME READY STATUS RESTARTS AGE pod/coredns-859664f9d8-2fl7l 1/1 Running 0 89...
Warning FailedCreatePodSandBox 40h (x4891 over 41h) kubelet, k8s-1 (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "0d28128a23c71b8ab318d37f3d5762abf685b2eebaa9b198f6cb6ae4f59386cb" network for pod "...
pod-template-hash=78d4cf999f Annotations: cni.projectcalico.org/podIP: 192.168.1.28/32 Status: Running IP: 192.168.1.28 Controlled By: ReplicaSet/coredns-78d4cf999f Containers: coredns: Container ID: docker://c178ebc8719657aff484fd5277a0ab7b5184c26c92f402218c7236dfe4e20c1b Image: registry....
在设置自己的集群时,我遇到了一个问题,corednspod卡在挂起模式中;我通过添加pod网络解决了这个问题。看...
[root@node-1 ~]# kubectl get pod -n kube-system -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES calico-kube-controllers-6fcb5c5bcf-z9dr8 1/1 Running 0 33m 10.200.247.2 node-2 calico-node-q66p6 0/1 CrashLoopBackOff 11 32m 192.168.216.102 node-2 ...
kube-scheduler-k8s-1 1/1 Running 18 3d16h #原因是因为添加网络组件没下载下来 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml #用这个命令查到的 kubectl describe pod coredns-7f9c544f75-2sjs2 --namespace=kube-system ...
3. 检查我们的pod是否都是Running状态,都为Running状态下就可以登录kubesphere平台 [root@k8s-master01 ~]# kubectl get pod -A NAMESPACE NAME READY STATUS RESTARTS AGE kube-system calico-kube-controllers-785fcf8454-2r4z5 1/1 Running 0 11m kube-system calico-node-5bxfd 1/1 Running 0 11m kube-...
ClusterFirstWithHostNet: For pods running with hostNetwork, set its DNS policyClusterFirstWithHostNet. None: It allows a pod to ignore DNS settings from the Kubernetes environment. All DNS settings are supposed to be provided using thednsPolicyfield in the pod-specific. ...
- --service-account-private-key-file=/etc/kubernetes/pki/sa.key - --use-service-account-credentials=true - --allocate-node-cidrs=true - --cluster-cidr=10.244.0.0/16 参考文章:解决k8s Error registering network: failed to acquire lease: node “master“ pod cidr not assigne...
pod-template-hash=5bd5f9dbd9 Annotations: seccomp.security.alpha.kubernetes.io/pod: docker/default Status: Running IP: 172.17.87.2 Controlled By: ReplicaSet/coredns-5bd5f9dbd9 Containers: coredns: Container ID: docker://c02395208c9763d5061e3478def972f60274fd2a98f5fdd3bd6fbe0c542f39bb ...