Kubectl update imagePullPolicy

Viewed 20

How do we update the imagePullPolicy alone for certain deployments using kubectl? The image tag has changed, however we don't require a restart. Need to update existing deployments with --image-pull-policy as IfNotPresent

Note: Don't have the complete YAML or JSON for the deployments, hence need to do it via kubectl

1 Answers

use

kubectl edit deployment <deployment_name> -n namespace

Then you will be able to edit imagePullPolicy

Related