- Go application that serves HTTP via
PORT
env var- built and run with single Dockerfile using the Makefile
- Redis server
- Minikube
- Start minikube
minikube addons enable ingress
minikube start
- use minikube's docker env
eval $(minikube docker-env)
- switch to minikube's context
kubectx minikube
- Build image
make docker
- adds the image to the minikube docker registry
- Deploy kubernetes app
- With kubectl:
kubectl apply -f kubernetes.yml
- OR with helm:
make helm-install
ormake helm-upgrade
- With kubectl:
- Update hosts file (ingress uses hostname:
hello.app
)- CAREFUL:
echo $(minikube ip) hello.app >> /etc/hosts
- CAREFUL:
- Open app: http://hello.app