What are the available subcommands of 'kubectl set'?

QuestionsQuestions8 SkillsProKubernetes Set CommandNov, 27 2025
058

The available subcommands of kubectl set are:

  1. env: Update environment variables on a pod template.
  2. image: Update the image of a pod template.
  3. resources: Update resource requests/limits on objects with pod templates.
  4. selector: Set the selector on a resource.
  5. serviceaccount: Update the service account of a resource.
  6. subject: Update the user, group, or service account in a role binding or cluster role binding.

You can run kubectl set -h for more details on each subcommand.

0 Comments

no data
Be the first to share your comment!