Kubernetes(K8s) is a container orchestration technology (like Docker Swarm, MESOS)
Node: A virtual/Physical machine, where Kubernetes is installed
Cluster - Set of one or more nodes grouped together
K8s (orchestration) components:
- API server
- etcd - Key Value store
- Kubelet
- container Runtime
- Controller
- Scheduler
Master & Worker Nodes
The master node has ApiServer, etcd, controller, and scheduler. While the Worker node has Kubelet
Kubectl - kube command line interface
Basic Yaml file for Kubernates. These are used as input to create Pod, Service, Replica, deployment.
some example of main component in yaml.
some example of main component in yaml.
Eg.:(pod-definition.yml) below are mandatory fields
apiVersion:
kind:
metadata:
spec:
================================================
Ngnix image pod creation
command to create pod with yaml
Replication Controller -old technology replaced by "Replica Set"
replicationController yaml eg.
Command to execute
=================================
Replica set monitors pods, if any issue will create new
ReplicaSet yaml
Commands
Deployment yaml
Deployment Strategy:
- Recreate - Put all instance/Pod down and create new pod with newer version
- Rolling Update - one pod by one pod to be replaced with newer version
yaml file structure (CI/CD pipeline)







Comments
Post a Comment