Flashcards
6 Kubernetes concepts pods deployments
Cards in this deck (13)
- 1What are main top level properties in pos yaml fileapiVersion
kind
metadata
spec - 2What could be in kind field?Pod, ReplicaSet, Deployment or Service
- 3What could be in metadata field?Data about object like name labels
- 4What is data type in metadata field?Dictionary - key-value
- 5What could be in spec field?containers
- 6What is command to create pod?kubectl create -f pod-definition.yml
or
kubectl apply -f pod-definition.yml - 7demopodstry in notepad or in linux
- 8What is best tool for writing YAML filesVisual Studio Code
- 9What is necessary extension fo r yamlRED HAT Yaml extension
- 10Make change in settings of VS Code to work with Kubernetes.Click on gear in YAML extension
then go to extension settings > YAML schema click edit settings.json and add
"kubernetes": "*.yaml"
and reload VS code - 11What does replication controllers do?It helps us to run multiple instances of single pod in Kubernetes cluster
- 12What is we have only one pod? What does replication controller do in that case?Replication controller can help bringing up new pod when existing pod fails. Thus replication comtroller helps enaure that specified number of pods are running
- 13What is another reason for replication controller?To create multiole pods to share load across them
Information
- Description
- Easy Kodekloud Kubernetes for beginners Flashcards on 6 Kubernetes concepts pods deployments, created by Archimed Nemes on 26/12/2022.
- Created by
- Archimed Nemes
- Views
- 4
- Rating