Use Swarm default registry creds (manage-images) and configurations.yml placeholders

Made-with: Cursor
This commit is contained in:
timotheereausanofi
2026-03-20 10:22:05 +01:00
parent 4ef10ffc20
commit e2d50d8d16
5 changed files with 59 additions and 28 deletions

View File

@@ -2,7 +2,9 @@
## 1. Private registry (`hub.andrewalliance.com`)
Pods need an image pull secret in namespace `onelab`:
By default, `gitops/values/k3s-example.yaml` matches the Swarm installer (`app/playbooks/tasks/manage-images.yml`): user **`public`**, password **`Andrew01..Release`**, and the chart creates Secret **`hub-andrewalliance`** when `registry.createPullSecret: true`.
To use other credentials, override `registry.username` / `registry.password` or create the secret manually:
```bash
kubectl create secret docker-registry hub-andrewalliance -n onelab \
@@ -11,14 +13,7 @@ kubectl create secret docker-registry hub-andrewalliance -n onelab \
--docker-password='YOUR_PASSWORD'
```
Then set in `gitops/values/k3s-example.yaml`:
```yaml
imagePullSecrets:
- name: hub-andrewalliance
```
Commit, push, and either `helm upgrade` or let Argo CD sync.
…and set `registry.createPullSecret: false` plus `imagePullSecrets: [{ name: hub-andrewalliance }]`.
## 2. Argo CD + private Git (`git.luneski.fr`)