> For the complete documentation index, see [llms.txt](https://docs.human-connection.org/human-connection/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.human-connection.org/human-connection/deployment/human-connection/maintenance.md).

# Maintenance

> Despite our best efforts, systems sometimes require downtime for a variety of reasons.

Quote from [here](https://www.nrmitchi.com/2017/11/easy-maintenance-mode-in-kubernetes/)

We use our maintenance mode for manual database backup and restore. Also we bring the database into maintenance mode for manual database migrations.

## Deploy the service

We prepared sample configuration, so you can simply run:

```bash
# in folder deployment/
kubectl apply -f human-connection/maintenance
```

This will fire up a maintenance service.

## Bring application into maintenance mode

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.yaml` change the following:

```yaml
...

  - host: nitro-staging.human-connection.org
    http:
      paths:
      - path: /
        backend:
          # serviceName: nitro-web
          serviceName: maintenance
          # servicePort: 3000
          servicePort: 80
```

Then run `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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.human-connection.org/human-connection/deployment/human-connection/maintenance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
