我试着用livenessProbe和readinessProbe来应用我的pod。问题是我得到了一个错误: after apply: kubectl apply -f test1.yaml
错误:
The Pod "test1" is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)....发布于 2019-07-18 21:07:25
检查名为test1的pod是否已经运行,当您应用yaml时,Kubernetes认为您想要修改已经运行的pod,并且此操作仅允许对消息指示的特定字段进行更改。要检查是否有pod正在运行,请使用此命令进行检查。
kubectl get pod test1 然后删除pod并应用您的yaml。
kubectl delete pod test1
kubectl apply -f xxxxhttps://stackoverflow.com/questions/57094921
复制相似问题