Tuesday, March 26, 2024

Difference between cluster, pod, container and node in Kubernete

Container is a place that a program can be deployed and executed, it has all the dependent runtime libraries. Docker is a good candidate to work as a container in order to hold a program and run from there. In jenkensfile, container is specified under containers section, each container in pad is specified with containerTemplate method. 

Pod contains one or more containers. Pods are smallest deployable unit in Kubernetes, all containers within a pod share the storage, network resource. In jenkinsfile, pod is represented with podTemplate method.

Cluster holds and manages pods, the pods within a cluster can be grouped based on namespace.

Node means the computer machines, either physical or virtual machines, that host the pods. In jenkins file, node is specified with node method, the label parameter specifies the node machine's name.

No comments:

Post a Comment