Kubernetes livenessProbe/ReadinesProbe部署问题
我尝试用livenessProbe和readinessProbe应用我的pod。 问题是我得到了一个错误:after apply:kubectl apply-f test1.yaml 错误:Kubernetes livenessProbe/ReadinesProbe部署问题,kubernetes,readinessprobe,Kubernetes,Readinessprobe,我尝试用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`, `spe
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)....
检查名为test1的pod是否已经运行,当您应用yaml时,Kubernetes认为您想要修改已经运行的pod,并且此操作只允许更改消息指示的特定字段。 要检查pod是否正在运行,请使用此命令进行检查
kubectl get pod test1
然后删除pod并应用yaml
kubectl delete pod test1
kubectl apply -f xxxx
检查名为test1的pod是否已经运行,当您应用yaml时,Kubernetes认为您想要修改已经运行的pod,并且此操作只允许更改消息指示的特定字段。 要检查pod是否正在运行,请使用此命令进行检查
kubectl get pod test1
然后删除pod并应用yaml
kubectl delete pod test1
kubectl apply -f xxxx