服务器上有这些docker镜像。the red is pulled from repository,the yellow were modified by myself,and then commit
现在,我使用从存储库中提取的图像来创建pod,它没有错误,并且正在运行。apiVersion: v1 kind: ReplicationController metadata: name: sds spec: replicas: 1 selector: app: sds template: metadata: labels: app: sds spec: containers: - name: sds imagePullPolicy: IfNotPresent image: tomcat ports: - containerPort: 8080 the red pod
但是如果我使用我修改的图像来创建pod,那么它就是crachLoopBackOff。
apiVersion: v1 kind: ReplicationController metadata: name: sds spec: replicas: 1 selector: app: sds template: metadata: labels: app: sds spec: containers: - name: sds imagePullPolicy: IfNotPresent image: mytomcat ports: - containerPort: 8080 the red one
我使用kubectl logs [podname],但没有显示enter image description here我使用kubectl describe pod [podName]显示这个pod的描述!the describe of the error pod
发布于 2018-03-11 04:59:07
一个CrashLoopBackOff可能有不同的原因:-你的容器很快就结束了,因为你有一个副本,Kubernetes一次又一次地重启它。-您的容器没有正确的卷权限
这取决于您对docker镜像所做的更改。
https://stackoverflow.com/questions/49210907
复制相似问题