- https://docs.docker.com/v17.12/install
- https://kubernetes.io/docs/tasks/tools/install-kubectl
- https://kubernetes.io/docs/tasks/tools/install-minikube
- https://github.com/ahmetb/kubectx
minikube start
minikube dashboard
docker build . -t rcelebrone/apipy-hello:1.4 docker push rcelebrone/apipy-hello:1.4
kubectl create -f kube/pod.yaml
kubectl apply -f kube/deployment.yaml
kubectl logs --follow --tail 0 --selector="app=apipy-hello"
kubectl apply -f kube/service.yaml
kubectl port-forward svc/apipy-hello-service 2000:3000
minikube addons enable ingress
kubectl apply -f kube/ingress.yaml
o ip do lb é gerado após a criação do mesmo (e não muda em atualizações, só se deletar e criar novamente)
vim /etc/hosts
192.168.49.2 apipy.kube.local
kubectl logs -l app=apipy-hello -f
kubectl port-forward svc/redis-service 7000:9000 redis-cli -h localhost -p 7000 ping