+------Docker Compose-----+ | | Browser --- | --- Nginx --- Mailhog | | | | | | <Authentication> | | | | | oauth2_proxy | | | | +-------------------------+ | Google +------Kubernetes--------------------------+ | | Browser --- | --- Nginx (Ingress) --- symdon-mailhog | | | (Service) | | | <Authentication> | | | | Mailhog | | symdon-oauth2_proxy (Pod) | | | (Service) | | oauth2_proxy | | | (Pod) | +------------------------------------------+ | Google
$ cd secrets && for fname in `ls *.example`; do if [ ! -e $fname ]; then cp $fname `basename $fname .example`; fi done
$ docker-compose up
$ helm upgrade ing --install stable/nginx-ingress $ kubectl apply -f ingress/main.yml
$ kubectl apply -f secrets/k8s.yml
Setup helm
$ helm init --history-max 200 $ helm repo update
Deploy mailhog
$ helm upgrade symdon-mailhog --install stable/mailhog
Deploy oauth2-proxy
$ helm upgrade symdon --install -f helm/oauth2-proxy.config.yml -f secrets/helm.yml stable/oauth2-proxy
$ kubectl apply -f k8s/main.yml