【发布时间】:2022-12-27 22:19:28
【问题描述】:
I want to update my pod because there is a new image uploaded to docker registry with latest tag.
I am currently doing this:
kubectl delete -f deployment.yaml
kubectl apply -f deployment.yaml
If I do:
kubectl apply -f deployment.yaml
It says my deployment is unchanged.
However, I want make my service alive even for a second. Isn't there a way I could do something like the following?
kubectl re-apply -f deployment.yaml
【问题讨论】:
-
kubectl rollout restart deployment/xxx?
标签: kubernetes kubectl