8201f94b by Adam Heath

Have registry use redis.

1 parent a87b1c0c
......@@ -14,8 +14,16 @@ environments:
images:
debian: "debian:bullseye-20211220"
registry: "registry:2"
redis: "redis:6.2.6"
---
helmfiles:
- path: ../redis/helmfile.yaml
values:
- namespace: {{ .Values.namespace }}
namePrefix: {{ .Values.namePrefix }}registry-
images:
redis: {{ .Values.images.redis }}
releases:
- name: {{ .Values.namePrefix }}registry
......@@ -58,18 +66,21 @@ releases:
- name: registry-data
persistentVolumeClaim:
claimName: {{ .Values.namePrefix }}registry-data
- name: registry-config
configMap:
name: {{ .Values.namePrefix }}registry-config
- name: registry-secret
secret:
secretName: {{ .Values.namePrefix }}registry-secret
containers:
- name: registry
envFrom:
- configMapRef:
name: {{ .Values.namePrefix }}registry-config
- secretRef:
name: {{ .Values.namePrefix }}registry-secret
- apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Values.namePrefix }}registry-config
namespace: {{ .Values.namespace }}
data:
REGISTRY_REDIS_ADDR: {{ .Values.namePrefix }}registry-redis.{{ .Values.namespace }}.svc.cluster.local
REGISTRY_STORAGE_CACHE_BLOBDESCRIPTOR: redis
- apiVersion: v1
kind: Secret
metadata:
......
......@@ -38,16 +38,15 @@ spec:
- name: registry-data
persistentVolumeClaim:
claimName: registry-data
- name: registry-config
configMap:
name: registry-config
- name: registry-secret
secret:
secretName: registry-secret
containers:
- name: registry
image: registry:2
envFrom:
- configMapRef:
name: registry-config
- secretRef:
name: registry-secret
volumeMounts:
- name: registry-data
mountPath: /var/lib/registry
......