Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kubernetes add or remove label from existing resource

# this will create a label “group” with a value of “main”
kubectl label pod/metadata-demo group=main


# remove the “group” label from the resource
kubectl label pod/metadata-demo group-
Source by www.containiq.com #
 
PREVIOUS NEXT
Tagged: #kubernetes #add #remove #label #existing #resource
ADD COMMENT
Topic
Name
6+5 =