blob: e3aee076f139272ffdb22a07f7318475087e316b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Anki Sync Server Kubernetes Deployment
This directory contains the Kubernetes configuration for deploying the Anki Sync Server.
## Deployment
To deploy the Anki Sync Server, apply the Kubernetes manifests in this directory:
```bash
make apply
```
## Secret Management
The deployment uses a Kubernetes secret to manage the `SYNC_USER1` environment variable. This secret is not included in the repository for security reasons. You must create it manually in the `services` namespace.
### Creating the Secret
To create the secret, use the following `kubectl` command:
```bash
kubectl create secret generic anki-sync-server-secret --from-literal=SYNC_USER1='paul:SECRETPASSWORD' -n services
```
Replace `paul:SECRETPASSWORD` with your desired username and password.
### Updating the Secret
To update the secret, you can delete and recreate it, or use `kubectl edit`:
```bash
kubectl edit secret anki-sync-server-secret -n services
```
|