Friday, October 30, 2020

YAML in Kubernetes with some basic commands (create,apply,get,describe)

 




we can add more custom/our own labels like type: front-end


you can use apply command instead of create, which will create a new pod if not there and update the existing one if already there.

kubectl get pods
kubectl describe pods


we can add multiple containers to single pod by adding one more container to the containers dictionary.

we use vscode for editing yaml files.

Extension used:

YAML -- By RedHat

go settings of extension.



Click on "Edit Settings.json" of Yaml:schemas




No comments:

Post a Comment