Question-101:   Which command you can use to create a new pod?

Answer: You can use “kubectl run” command to create a new Pod.

Question-102: In what all languages you can write Pod Manifest file?

Answer: You can use either YAML or JSON language.  However, YAML is more preferred because it is more human readable and better support of writing comments.

Question-103: What would below command do?

“kubectl apply -f he-pod.yaml”

Answer: This will submit manifest “he-pod.yaml” file to Kubernetes API server. And then its Kubernetes server responsibility to schedule that Pod to run on any available health node (machine/host) in the cluster. And once this pod is deployed it would be monitored by the “Kubelet” daemon process.

Question-104: Can you delete a pod using Manifest file?

Answer: Yes, you can use command as below.

“kubectl delete -f he-pod.yaml”

Question-105: What happen when you delete a Pod?

Answer: When you delete a Pod, it would not delete it immediately. But it would go in terminating state. And this should have some grace period, be default it is 30 seconds and in this Terminating state, pod would not accept any new request and try to finish all the request which are already submitted and then terminate it.