kubectl set

Configure application resources

Subcommands

NameDescription
envUpdate environment variables on a pod template
imageUpdate existing container image(s) of resources
resourcesSpecify compute resource requirements (cpu, memory) for any resource that defines a pod template. If a pod is successfully scheduled, it is guaranteed the amount of resource requested, but may burst up to its specified limits
selectorSet the selector on a resource. Note that the new selector will overwrite the old selector if the resource had one prior to the invocation of 'set selector'
serviceaccountUpdate ServiceAccount of pod template resources
subjectUpdate User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding