Friday, March 17, 2023

Kubernetes POD

 

What are Pods in Kubernetes?

What are Kubernetes Pods? How can we use them to run our containers? How can we interact with them using kubectl and YAML?

What are Pods?

What’s the difference between single container and multi-container Pods?

How can we create Pods in Kubernetes?

apiVersion: v1
kind: Pod
metadata:
name: nginx-2
labels:
name: nginx-2
env: production
spec:
containers:
- name: nginx
image: nginx

How can we deploy and interact with our Pods using kubectl?

kubectl apply -f mypod.yaml
kubectl get pods
kubectl port-forward mypod 8080:80
kubectl delete pod mypod
kubectl delete deployment mydeployment

How can we ensure that our Pods in Kubernetes are healthy?

No comments:

Post a Comment

Sample Game App Deployment on EKS cluster

 https://padmakshi.medium.com/setting-up-an-eks-cluster-and-deploying-a-game-application-a-step-by-step-guide-08790e0be117