Please enable JavaScript.
Coggle requires JavaScript to display documents.
K8s - Container orchestrater (Kubectl (Deployments (kubectl rollout status…
K8s - Container orchestrater
Cluster
Master node
Kube API server
etcd service
Controller
Scheduler
Worker Node 1
Pod
Container A
Pod
Container B
Helper container
Kubelet
Worker Node 2
Pod
Container C
Pod
Container B
Helper container
Kubelet
Worker Node 3
Pod
Container B
Helper container
Pod
Container A
Pod
Container A
Kubelet
Components
API server
etcd service
Kubelet service
Container runtime
Controllers
Replication controller - old
Replica set - new
Schedulers
Kubectl
Pods
kubectl run nginx --image nginx
kubectl get pods
kubectl describe pods
kubectl get pods -o wide => display details with ip-addess, node
kubectl delete deployment pod-name
Nodes
kubectl get nodes
From a file
kubectl create -f filename.yml
Replicaset
Scale
kubectl replace -f replicaset-definition.yml
kubectl scale --replicas=6 -f replicaset-definition.yml
kubectl scale --replicas=6 replicaset pod-name
kubectl get replicaset
kubectl delete replicaset replicaset-name
kubectl describe replicaset
kubectl get all
Deployments
kubectl rollout status deployment/deployment-name => check the rollout status
kubectl rollout history deployment/deployment-name => check the new deployment revision after a rollout
kubectl delete deployment deployment-name
kubectl create deployment -f filename.yml --record => to add the record to new deployment revision, this will be the command ran to create the deployment
kubectl apply deployment filename.yml => This is to apply new changes
kubectl describe deployment
kubectl set image deployment/deployment-name nginx-container=nginx:1.12
kubectl rollout undo deployment/deployment-name => reverse the changes
kubectl get deployment
Services
kubectl get services
Networking
Node
Node has an ip address
Pod
Pod has internal ip addess
Services
NodePort
ClusterIP
Load balancer