Difference between revisions of "Kubectl set image"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
* <code>[[kubectl set]] image</code>
 
* <code>[[kubectl set]] image</code>
  
To update your deployment with a new image version:
+
[[Update your deployment with a new image version]]:
 
  kubectl set image deployment/frontend www=image:v2 <ref>https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources</ref>
 
  kubectl set image deployment/frontend www=image:v2 <ref>https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources</ref>
  

Revision as of 14:55, 15 February 2024

Update your deployment with a new image version:

kubectl set image deployment/frontend www=image:v2 [1]
kubectl set image deployment/nginx-deployment nginx=nginx:1.8
export TILLER_TAG=v2.0.0-beta.1        # Select your version to install
$ kubectl --namespace=kube-system set image deployments/tiller-deploy tiller=ghcr.io/helm/tiller:$TILLER_TAG
deployment "tiller-deploy" image updated

Related terms

See also

  • https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources
  • Advertising: