在创建pod时,进入pod失败 kubectl exec -it nginx-deployment-d55b94fd-xcrtg sh error检查问题,一直找不到答案,通过logs发现,同样不能实现在这里插入图片描述查其原因,是kubelet的配置问题,这里修改node节点的kubelet.json配置,在node中分别修改 vi /opt/kubernetes/cfg/kubelet.config------------------在文件末尾添加,认证确认authentication:
. Jul :: lab3 etcd[]: the server is already initialized as member before, starting as etcd member... https://www.cnblogs.com/ericnie/p/6886016.html [root@lab3 k8s]# systemctl start etcd Job for etcd.service failed because the control process exited w
问题1 1.报错信息如下 [root@ken1 ~]# kubectl get po The connection to the server 192.168.64.11:6443 was refused - did you specify the right host or port? 解决思路: 1.首先检查kubelet以及dockers是否启动 2.检查交换分区是否关闭 本机是因为交换分区没有关闭造成的,在/etc/fstab文件中禁用重启系统即可 [root@ken1 ~]# free
看系统日志 cat /var/log/messages 用kubectl 查看日志 # 注意:使用Kubelet describe 查看日志,一定要带上 命名空间,否则会报如下错误[root@node2 ~]# kubectl describe pod coredns-6c65fc5cbb-8ntpvError from server (NotFound): pods "coredns-6c65fc5cbb-8ntpv" not found kubectl describe pod k
今天启动k8s dashboard的时候报错:"no endpoints available for service \"kubernetes-dashboard\"" 以下是问题排查步骤: (1)首先查看pod状态: kubectl get pods --namespace kube-system 发现dashboard没有运行报错,继续查询: kubectl describe pod kubernetes-dashboard-669f9bbd46-rhmst -
使用命令: yum install kubernetes 报错: Error: docker-ce-cli conflicts with :docker--.git07f3374.el7.centos.x86_64 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 错误原因: yum安装kubernetes之前已经安装过d
报错现象: [root@localhost ~]# kubectl get nodes The connection to the server localhost:8080 was refused - did you specify the right host or port? 但是也想让子节点可以查询,因此研究了一下 把master下面的admin.conf移到子节点相同路径下 [root@localhost manifests]# cd /etc/kubernetes [root@loc
目录 一.问题描述 二.解决方法 一.问题描述 动态扩容PVC的时候报错(kubectl edit pvc pvcname):"error: persistentvolumeclaims "pvvolume" could not be patched: persistentvolumeclaims "pvvolume" is forbidden: only dynamically provisioned pvc can be resized and the