Commands.app

kubectl set

Deployments

Set resource attributes

Examples
Common usage examples

Update container image

kubectl set image deployment/myapp mycontainer=myimage:v2

Set environment variable

kubectl set env deployment/myapp KEY=value

Set resource limits

kubectl set resources deployment/myapp -c=mycontainer --limits=cpu=200m,memory=512Mi
Notes
  • Triggers rollout when changing deployment
Related Commands
You might also find these useful