Despite our best efforts, systems sometimes require downtime for a variety of reasons.
We use our maintenance mode for manual database backup and restore. Also we bring the database into maintenance mode for manual database migrations.
We prepared sample configuration, so you can simply run:
# in folder deployment/
kubectl apply -f human-connection/maintenance
This will fire up a maintenance service.
Now if you want to have a controlled downtime and you want to bring your application into maintenance mode, you can edit your global ingress server.
E.g. in file
deployment/digital-ocean/https/ingress.yamlchange the following:
- host: nitro-staging.human-connection.org
- path: /
# serviceName: nitro-web
# servicePort: 3000
kubectl apply -f deployment/digital-ocean/https/ingress.yaml. If you want to deactivate the maintenance server, just undo the edit and apply the configuration again.