| # Helm values for the Valkey instance used by GitLab (replaces the |
| # bundled Redis that was removed in GitLab chart 10). |
| # |
| # helm repo add valkey https://valkey.io/valkey-helm/ |
| # helm -n gitlab-system upgrade --install valkey valkey/valkey --version 0.12.0 -f valkey-values.yaml |
| # |
| # The password lives in the valkey-auth secret (key default-password), |
| # which must exist before installing. |
| # |
| # local-path volumes are created owned by root, but Valkey runs as UID |
| # 1000, so after the first install the PVC has to be chowned once: |
| # |
| # kubectl -n gitlab-system run valkey-chown --rm -i --restart=Never --image=busybox:1.36 \ |
| # --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"}}]}}' |
| auth: |
| enabled: true |
| usersExistingSecret: valkey-auth |
| aclUsers: |
| default: |
| permissions: "~* &* +@all" |
| passwordKey: default-password |
| dataStorage: |
| enabled: true |
| requestedSize: 2Gi |
| className: local-path |
| keepPvc: true |