2.5 KiB
2.5 KiB
title | updated | created | latitude | longitude | altitude |
---|---|---|---|---|---|
Intro Basis Components of K8s | 2022-02-05 15:10:02Z | 2022-01-29 15:33:56Z | 52.38660000 | 5.27820000 | 0.0000 |
What is Kubernetes (K8s)
- container orchestration tool
- manages containers (not only Docker)
- different environments
- physical
- virtual
- cloud
What problems solves Kubernetes:
- manages many containers with independent services, like micro services
Kubernetes features
- High Availability (no downtime)
- Scalability (high performance)
- Disaster recovery (backup and restore)
Kubernetes components (but many more)
- Node (physical or virtual)
- Services
- External Service
- ConfigMap & Secret
- external configuration of application (eq URL of a database DB_URL = mongo-db-service)
- secret credentials in Secret (like configMap but base64 encoded)
- Application can read from ConfigMap and Secret
- Volumes
- for persistent data
- attach physical storage to a pod
- local machine or remote storage (eq cloud and outside k8s cluster)
- k8s does not manage data persistence
- Deployment and Stateful Set
- Every Pod is replicated as specified in BluePrint
- Service has 2 functionalities:
- Permanent IP (so an other pod can connect of the pod dies)
- load balancer
- the pod is not created, but for every pod is specified (Blueprint) how many replicas are required
- Blueprint is abstraction of Pods. Pods are an abstraction of Containers
- In practice just working with Deployments
- Stateful Set
- Databases have state and can not be replicated
- For stateful applications like databases
- no database inconsistency can occur.
- is not easy therefor advice to host databases outside K8s cluster