欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

k8s问题

程序员文章站 2024-03-13 22:34:16
...

 

1.  open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory 解决方案


 1. wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm

 2. rpm2cpio python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm | cpio -iv --to-stdout ./etc/rhsm/ca/redhat-uep.pem | tee /etc/rhsm/ca/redhat-uep.pem    

前两个命令会生成/etc/rhsm/ca/redhat-uep.pem文件.     

3. docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest

4. kubectl get pods 会显示running状态

 

2.  error: resource(s) were provided, but no name, label selector, or --all flag specified

k8s问题


kubectl delete mynode-2559548524-266xp

# 加pod
kubectl delete pod mynode-2559548524-266xp

3. The connection to the server localhost:8080 was refused - did you specify the right host or port?

k8s服务没启动

# 单机启动

systemctl start etcd
systemctl start docker
systemctl start kube-apiserver
systemctl start kube-controller-manager
systemctl start kube-scheduler
systemctl start kubelet
systemctl start kube-proxy