flask app,
- containerized it using dockerfile and built image
Process:
-First i built docker image: docker build -t kub-backend:v1 .
-
then i registered image in kund node's container runtime with - "kind load docker-image kub-backend:v1"
-
then i applied deployment yaml with container name that should match with once i applied deployment and service configs kind API server stored Deployment in etcd ReplicaSet created Pods Scheduler assigned Pods to node kubelet on the node said: “I need image kub-backend:v1”
-
worked on autoscaling concept with "HPA" for pods and Cluster autoscaler nodes
-
understood service routing
-
Learnt what is etcd
-
understood source of truth as etcd(k8's internal DB) for runtime vs Git for production level management
-
tested scaling
-
tested terminating multiple pods at a time to test kubernetes auto-scaling behaviour
-
Debuged YAML Errors
-
built real pods using declarative style
-
written and understood Deployment and Service YAML Configs
-
Usderstood controlling traffic spikes
-
used loops to run app multiple times to check kubernetes auto Load Balancing
References