Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



Question
In kubernetes, say you have a pod called "kevintest-5sdflkj-923s" (just FYI: "kevintest" is the associated deployment name), issue command to add a app=v1 metadata tag to this pod:
Answer

kubectl label pod kevintest-5sdflkj-923s app=v1

^^ note the format follows the "kubectl action resrouce" formula, where "label" is action, "pod" is resource, then comes the pod name and the label key/value to add

^^^ note that ofcourse labelling can also be done in the deployment .yaml file, if you use this approach for deployment.


Question
In kubernetes, say you have a pod called "kevintest-5sdflkj-923s" (just FYI: "kevintest" is the associated deployment name), issue command to add a app=v1 metadata tag to this pod:
Answer
?

Question
In kubernetes, say you have a pod called "kevintest-5sdflkj-923s" (just FYI: "kevintest" is the associated deployment name), issue command to add a app=v1 metadata tag to this pod:
Answer

kubectl label pod kevintest-5sdflkj-923s app=v1

^^ note the format follows the "kubectl action resrouce" formula, where "label" is action, "pod" is resource, then comes the pod name and the label key/value to add

^^^ note that ofcourse labelling can also be done in the deployment .yaml file, if you use this approach for deployment.


Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.