Kubernetes The great picture Kubernetes Self healing Resource
Kubernetes The great picture
Kubernetes • Self healing • Resource management • Service discovery and load balancing • State versioning and rollbacks • Horizontal scaling • Secrets and configuration management
Kubernetes vs Docker Swarm Kubernetes Docker Swarm • Complex installation, strong resilient cluster • Simple installation, single point of failure • Slower scaling due to system complexity, 5000+ nodes • Faster scaling, 2000+ nodes • Autoscaling • Manual scaling • Optimized for a single large cluster • Optimized for smaller clusters • Regular health checks • Manual health checks
Kubernetes - how does it work ? • Kubernetes objects - records of intent • Controllers • Kubernetes API
Kubernetes objects • Pods • Replica. Sets • Deployment • Stateful. Set api. Version: apps/v 1 kind: Deployment metadata: name: api namespace: dev labels: app: bachelors-api spec: selector: match. Labels: app: bachelors-api replicas: 1 template: metadata: labels: app: bachelors-api spec: containers: - name: bachelors-api image: strahinja 16/bachelors-api: 1. 0. 6
Kubernetes objects • Service • Ingress • Secret • Namespace api. Version: apps/v 1 kind: Service metadata: name: api namespace: dev labels: app: bachelors-api spec: type: Node. Port ports: -port: 3000 selector: app: bachelors-api
Application architecture example
Kubernetes architecture example
Kubernetes Dashboard demo
THANK YOU
- Slides: 10