Kubernetes Workshop that will deploy a python web app with Flask and Redis in minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.24.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl && chmod +x ./kubectl && sudo mv ./kubectl /usr/local/bin/kubectlkubectl
minikube start --vm-driver=virtualbox
kubectl get pods
kubectl get svc
kubectl get rc
kubectl delete pod redis
kubectl delete svc redis
kubectl delete svc flask-redis-app
kubectl delete pod flask-redis-app
kubectl create -f db-pod.yml
kubectl create -f db-svc.yml
kubectl create -f app-pod.yml
kubectl create -f app-svc.yml
kubectl exec -it flask-redis-app bash
kubectl exec -it redis bash
kubectl create -f app-rc.yml
kubectl get rc
kubectl scale rc flask-redis-app --replicas=10
kubectl describe svc <pod_name>
minikube ip
kubectl get svc flask-redis-app
Look at the port mapping from 5000:<exposed_NodePort>
kubectl edit svc flask-redis-app
curl <minikube_ip>:<exposed_NodePort>
https://docs.google.com/document/d/1kpnZqGaHbxbWsH9Tfq60piP8a-LdejdlqAwWbKnHPo8/edit?usp=sharing
This project was inspired by Janakiram's Kubernetes webinar series