| Matthias Andreas Benkard | 9557bc4 | 2026-10-23 16:21:40 +0200 | [diff] [blame] | 1 | # Helm values for the Valkey instance used by GitLab (replaces the |
| 2 | # bundled Redis that was removed in GitLab chart 10). |
| 3 | # |
| 4 | # helm repo add valkey https://valkey.io/valkey-helm/ |
| 5 | # helm -n gitlab-system upgrade --install valkey valkey/valkey --version 0.12.0 -f valkey-values.yaml |
| 6 | # |
| 7 | # The password lives in the valkey-auth secret (key default-password), |
| 8 | # which must exist before installing. |
| 9 | # |
| 10 | # local-path volumes are created owned by root, but Valkey runs as UID |
| 11 | # 1000, so after the first install the PVC has to be chowned once: |
| 12 | # |
| 13 | # kubectl -n gitlab-system run valkey-chown --rm -i --restart=Never --image=busybox:1.36 \ |
| 14 | # --overrides='{"spec":{"containers":[{"name":"c","image":"busybox:1.36","command":["chown","-R","1000:1000","/data"],"volumeMounts":[{"name":"d","mountPath":"/data"}]}],"volumes":[{"name":"d","persistentVolumeClaim":{"claimName":"valkey"}}]}}' |
| 15 | auth: |
| 16 | enabled: true |
| 17 | usersExistingSecret: valkey-auth |
| 18 | aclUsers: |
| 19 | default: |
| 20 | permissions: "~* &* +@all" |
| 21 | passwordKey: default-password |
| 22 | dataStorage: |
| 23 | enabled: true |
| 24 | requestedSize: 2Gi |
| 25 | className: local-path |
| 26 | keepPvc: true |