nxtgauge-gitops/apps/registry/registry.yaml
Ashwin Kumar Sivakumar cbc7fb42e6 fix: restore all services after registry wipe
- Fix PostgreSQL endpoints (now auto-creating correctly)
- Fix Forgejo DB connection
- Update retention to keep 10 SHA tags (was 2, too aggressive)
- Update all deployments to use available tags
- Add missing base images to registry (alpine, node, rust, python)
- Protect base images from retention deletion
2026-06-13 00:25:51 +05:30

63 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: docker-registry
namespace: registry
spec:
serviceName: docker-registry
replicas: 1
selector:
matchLabels:
app: docker-registry
template:
metadata:
labels:
app: docker-registry
spec:
containers:
- name: registry
image: registry:3
ports:
- containerPort: 5000
name: registry
env:
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
value: /var/lib/registry
- name: REGISTRY_AUTH
value: htpasswd
- name: REGISTRY_AUTH_HTPASSWD_REALM
value: Registry Realm
- name: REGISTRY_AUTH_HTPASSWD_PATH
value: /auth/htpasswd
volumeMounts:
- name: registry-storage
mountPath: /var/lib/registry
- name: auth
mountPath: /auth
readOnly: true
volumes:
- name: auth
secret:
secretName: registry-auth
volumeClaimTemplates:
- metadata:
name: registry-storage
spec:
accessModes: ["ReadWriteOnce"]
storageClassName: longhorn
resources:
requests:
storage: 30Gi
---
apiVersion: v1
kind: Service
metadata:
name: docker-registry
namespace: registry
spec:
selector:
app: docker-registry
ports:
- port: 5000
targetPort: 5000
clusterIP: 10.43.17.31