osscda / cloud-native-stream

Cloud Native Stream
0 stars 0 forks source link

August 12: Docker & Kubernetes Part 2 #13

Open iennae opened 4 years ago

iennae commented 4 years ago

Last week we started talking about kubernetes. We started talking about pods, and started modifying our hello world to be deployed into kubernetes. We wrote a Dockerfile and created a "/" interface to do a health check.

Project: https://github.com/osscda/cloud-native-project/

Agenda

This week we will continue our adventures learning about kubernetes and updating our application to be deployed.

Links

Concepts

Kubernetes

Commands

kubectl get nodes
kubectl get pods
kubectl create deployment hello-node --image=arschles/dapr-hello-world
kubectl get deployments
kubectl delete pod PODNAME
kubectl delete deployment DEPLOYMENTNAME
kubectl get events
kubectl scale --replicas=50 deployment/hello-node
kubectl expose deployment DEPLOYMENTNAME --type=LoadBalancer --port=3000
kubectl get service

Rules of the Stream

iennae commented 4 years ago

Question: pod names c4b477d78-X

iennae commented 4 years ago

What is reconciliation code

arschles commented 4 years ago

For next week, let's talk about pod lifecycle: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/

iennae commented 4 years ago

ICYMI (Aaron): https://helm.sh/