Mega Menu

Showing posts with label Kubernetes Basics. Show all posts
Showing posts with label Kubernetes Basics. Show all posts

Sunday, March 08, 2020

Kubernetes ClusterIP Basic YAML

ClusterIP is a logical grouping of similar containers for inter-communication between containers on a Pod.
eg: clusterIp for database container for use by container having backend logic


service-def.yml

apiVersion: v1
kind: Service
metadata:
  name: image-processing
  labels:
    app: myapp
spec:
  type: ClusterIP
  ports:
    - port: 80     (port on the ClusterIP service)
      targetPort: 8080   (port on the target container)
  selector:
    tier: backend

Saturday, March 07, 2020

Kubernetes Basic Terminology

Kubernetes Basic Terminology and Components

Node - Component of a cluster on which Kubernetes is installed to manage the containers.
Pod - An atomic unit of a node on which container is deployed.
Cluster - Group of nodes.
Master Node - Watcher node monitoring all the worker nodes with Kubernetes installed and can manage the worker nodes.
API Server - interface to interact with Kubernetes.
etcd - key-value store required to manage the cluster.
Kubelet - Agent running on each node of a cluster, to ensure the containers are running as designed.
Scheduler - Responsible for distributing work across nodes in cluster.
Controller - Brain behind orchestration. Responsible for managing the state of cluster i.e; bring up any containers that are down.
Container Runtime - Software used to run containers (eg: Docker)