Kubernetes Pod Creation — What happen when we are create a pod?

apiVersion: v1
kind: Pod
metadata:
name: pod-demo
spec:
containers:
- name: webserver
image: nginx
ports:
- name: webserver
containerPort: 80
kubectl apply -f pod.yaml

Store the state in Etcd

The kubelet — the Kubernetes agent

  1. The Container Runtime Interface (CRI) — the component that creates the containers for the Pod.
  2. The Container Network Interface (CNI) — the component that connects the containers to the cluster network and assigns IP addresses.
  3. The Container Storage Interface (CSI) — the component that mounts volumes in your containers.
docker run -d <image-name>
  1. Generating a valid IP address for the Pod.
  2. Connecting the container to the network.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
FoxuTech

FoxuTech

62 Followers

Discuss about #Linux, #DevOps, #Docker, #kubernetes, #HowTo’s, #cloud & IT technologies like #argocd #crossplane #azure https://foxutech.com/