* Use [this](https://github.com/poseidon/typhoon/blob/c3b0cdddf3310c3d6946ab018cff5229ce96623f/docs/addons/prometheus.md) to set up Prometheus-Grafana.
* Use [this](https://github.com/kubernetes/dashboard/wiki/Creating-sample-user) to get dashboard token.
* Either supply production SSL certificate (key and cert files), or [generate](https://www.digitalocean.com/community/tutorials/openssl-essentials-working-with-ssl-certificates-private-keys-and-csrs#generating-ssl-certificates) self signed files.
Make sure all domains are covered ([required](https://github.com/kubernetes/ingress-nginx/issues/616#issuecomment-359498659) by NGINX).
* Populate `infra/.secret.sh` file.
Set `OAUTH2_PROXY_CLIENT_SECRET` variable.
* Use [infra/script.sh](./infra/script.sh) to complete setup.
printf"\t certDirPath - absolute path to directory with SSL cert (certificate.crt), key (certificate.key), auth file and appsettings for status-site\n"
printf"\tname - cluster name (e.g. sandor in sandor.dbogatov.org)\n"
kubectl $KEBEFILEcreate namespace "$namespace"||true# some of them already exist
kubectl $KEBEFILEcreate --namespace="$namespace" secret tls lets-encrypt --key"$CERTDIRPATH"/certificate.key --cert"$CERTDIRPATH"/certificate.crt ||true# some of them already exist
kubectl $KEBEFILEcreate --namespace="$namespace" secret generic basic-auth --from-file=$CERTDIRPATH/auth ||true# some of them already exist
kubectl create namespace "$namespace"||true# some of them already exist
kubectl create --namespace="$namespace" secret tls lets-encrypt --key"$CERTDIRPATH"/certificate.key --cert"$CERTDIRPATH"/certificate.crt ||true# some of them already exist
kubectl create --namespace="$namespace" secret generic basic-auth --from-file=$CERTDIRPATH/auth ||true# some of them already exist