Moved docker images to project and updated database image

This commit is contained in:
2026-07-06 15:24:54 +03:00
parent 3a8012e694
commit a3809d57a4
7 changed files with 169 additions and 4 deletions
+38 -1
View File
@@ -68,4 +68,41 @@ points at `prometheus-operated.monitoring.svc.cluster.local:9090`).
--docker-password=<password> \
--docker-email=<email>
```
- Review every manifest before applying it to a production cluster.
- Review every manifest before applying it to a production cluster.
## Private registry authentication
`rg.mariushome.lt` requires htpasswd auth. Two out-of-band secrets must be
created before applying `DockerRegistry/docker_registry_deploy.yaml` and any
workload pulling from the registry (e.g. `postgres-hetzner`).
1. **Registry htpasswd file** (consumed by the registry pod). Generate the
htpasswd entry, then create the Secret in the `registry` namespace:
```bash
htpasswd -Bbn <user> <password> > htpasswd
kubectl create secret generic registry-htpasswd \
--namespace=registry \
--from-file=htpasswd=htpasswd
rm htpasswd
```
The deployment mounts this Secret at `/etc/docker/registry/htpasswd` and
configures the registry with `REGISTRY_AUTH=htpasswd`.
2. **`registry-creds` imagePullSecret** — one per namespace that pulls from
`rg.mariushome.lt`. Create it in every namespace that runs workloads
referencing the registry (e.g. `database`):
```bash
kubectl create secret docker-registry registry-creds \
--namespace=<ns> \
--docker-server=rg.mariushome.lt \
--docker-username=<user> \
--docker-password=<password> \
--docker-email=<email>
```
Manifests reference it as `imagePullSecrets: [{ name: registry-creds }]`.
Rebuild/repush the image per `Docker/PostgreSQL/PostgreSQL_Build.sh` after
rotating credentials.