- kubectl create -f kube-registry.yaml
- Use the most updated version from https://gist.github.com/coco98/b750b3debc6d517308596c248daf3bb1
- cd 02-dockerized-flask
- sudo docker build ./ -t flask-80
- sudo docker tag flask-80 localhost:5000/flask-80
- sudo docker push localhost:5000/flask-80
- sudo docker run -p 8080:80 flask-80
- helm install flask-app-80 ./flask-app-80/ --set service.type=NodePort
- export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services flask-app-new)
- export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
- echo http://$NODE_IP:$NODE_PORT
- echo "visit the given URL"