Installation
Using MicroK8s
In terms of convenience, please create kubeconfig:
cd $HOME
mkdir .kube
cd .kube
microk8s config > config
For application to work it's required to have env variables set on Vault and unseal it. Please, refer to this page about secrets configuration.
Install the application using Helm
helm install app app
Basic deployment is done, now need to configure two more things:
- Ingress to expose app on domain (presumably obtained, otherwise contact teamlead), for that refer to certificates page
- Cronjob to database backups, it set to 1 AM for prod mode and 2 AM for staging. To make it work: create telegram bot, obtain its token and simply create k8s secret:
kubectl create secret generic telegram-backup-secret \
--namespace=default \
--type=Opaque \
--from-literal=token=<token>