# Operations

Use this page for day-to-day operations on a Kubernetes (Helm) deployment.

### Common operations

#### Stop (scale down)

This stops the UI/API pods without uninstalling Helm releases.

```bash
kubectl scale deployment/frontend -n syntho --replicas=0
kubectl scale deployment/backend -n syntho --replicas=0
kubectl scale deployment/core -n syntho --replicas=0
```

{% hint style="warning" %}
Scaling down interrupts running jobs. Stop workloads first.
{% endhint %}

#### Start (scale up)

Scale back to your desired replica counts:

```bash
kubectl scale deployment/frontend -n syntho --replicas=<n>
kubectl scale deployment/backend -n syntho --replicas=<n>
kubectl scale deployment/core -n syntho --replicas=<n>
```

#### Check rollout status

```bash
kubectl rollout status deployment/frontend -n syntho
kubectl rollout status deployment/backend -n syntho
kubectl rollout status deployment/core -n syntho
```

#### Restart pods

```bash
kubectl rollout restart deployment/frontend -n syntho
kubectl rollout restart deployment/backend -n syntho
kubectl rollout restart deployment/core -n syntho
```

#### Check pods

```bash
kubectl get pods -n syntho -o wide
```

### Logs

#### Follow logs

```bash
kubectl logs -n syntho -f <pod-name>
```

#### Save logs

```bash
kubectl -n syntho logs deployment/core >> core.log
kubectl -n syntho logs deployment/backend >> backend.log
```

<details>

<summary>Log sharing</summary>

Logs can contain hostnames, workspace names, and operational details.

Share logs only via approved internal channels or directly with Syntho Support.

</details>


---

# Agent Instructions: 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:

```
GET https://docs.syntho.ai/deploy-syntho/deploy-syntho-using-kubernetes/operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
