报错https://blog.csdn.net/qq_44895681/article/details/107413950
https://www.cnblogs.com/luoahong/p/10411868.html
master 172.16.0.104 2019.com.CN
node1 172.16.0.174
node2 172.16.0.229
172.16.0.104:5000
镜像删除
https://www.cnblogs.com/quanxiaoha/p/10542278.html
push报错
https://blog.csdn.net/zhyl8157121/article/details/103271282
https://www.cnblogs.com/hobinly/p/6110624.html
docker重启
docker进程启停
cat k8s_pod.yml
apiVersion: v1
kind: Pod
metadata:
name: nginx2
labels:
app: web
spec:
containers:
- name: nginx2
image: 172.16.0.104:5000/nginx:latest
ports:
- containerPort: 80
cat k8s_pod.yml
apiVersion: v1
kind: Pod
metadata:
name: nginx
labels:
app: web
spec:
containers:
- name: nginx
image: 172.16.0.104:5000/nginx:latest
ports:
- containerPort: 80
docker tag nginx:latest 172.16.0.104:5000/nginx:latest
docker push 172.16.0.104:5000/nginx:latest
docker tag docker.io/tianyebj/pod-infrastructure:latest 172.16.0.104:5000/pod-infrastructure:latest
docker push 172.16.0.104:5000/pod-infrastructure:latest
pod删除重建
https://www.cnblogs.com/wangkun122/articles/12666714.html
kubernetes 部署附带解决(open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file)
https://blog.csdn.net/cojn52/article/details/103067803
k8s创建第一个pod一直提示ContainerCreating问题
https://www.cnbugs.com/post-3276.html
http://www.zyiz.net/tech/detail-128465.html
https://blog.51cto.com/u_14034751/2429791
https://blog.csdn.net/qq_42779175/article/details/103955426
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
强制删除pod
https://blog.csdn.net/saga_gallon/article/details/92839703
kubectl delete pod podName -n NAMESPACE --force --grace-period=0
https://blog.csdn.net/chen_haoren/article/details/108579445
apiVersion: v1
kind: ReplicationController
metadata:
name: myweb
spec:
replicas: 3
selector:
app: myweb
template:
metadata:
labels:
app: myweb
spec:
containers:
- name: nginx
image: 172.16.0.104:5000/nginx:latest
ports:
- containerPort: 80
apiVersion: v1
kind: Service
metadata:
name: httpd-svc
spec:
selector:
run:
metadata:
labels:
run: httpd
spec:
containers:
- name: httpd
image: httpd
ports:
- containerPort: 80
apiVersion: v1
kind: Service
metadata:
name: httpd-svc
spec:
selector:
run: httpd
ports:
- protocol: TCP
port:8080
targetPort: 80
不能访问service
https://jishuin.proginn.com/p/763bfbd4d120
https://blog.csdn.net/weixin_43063753/article/details/105503963
https://www.cnblogs.com/cheyunhua/p/13343313.html
service的删除
可以通过kubectl delete svc/svc-name -n namespace 来进行。也可以通过kubectl delete -f svc.yaml文件进行。
pod删除
https://blog.csdn.net/x356982611/article/details/106709106
kubectl delete pod httpd-3457006022-k2wlg --grace-period=0 --force
https://blog.csdn.net/chen_haoren/article/details/108579445
RS无法删除:kubectl get deployments看下看,有的话需要先删掉