fix requirepass
This commit is contained in:
@@ -11,6 +11,20 @@ metadata:
|
||||
name: valkey
|
||||
---
|
||||
apiVersion: v1
|
||||
data:
|
||||
valkey.conf: |
|
||||
include /run/secrets/valkey/requirepass
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: valkey
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: valkey
|
||||
app.kubernetes.io/version: 8.1.3
|
||||
helm.sh/chart: valkey-0.7.4
|
||||
name: valkey-config
|
||||
---
|
||||
apiVersion: v1
|
||||
data:
|
||||
init.sh: "#!/bin/bash\nset -euo pipefail\n\n# Default config paths\nVALKEY_CONFIG=${VALKEY_CONFIG_PATH:-/data/conf/valkey.conf}\n\nLOGFILE=\"/data/init.log\"\nDATA_DIR=\"/data/conf\"\n\n#
|
||||
Logging function\nlog() {\n echo \"$(date) $1\" | tee -a \"$LOGFILE\"\n}\n\n#
|
||||
@@ -137,8 +151,6 @@ spec:
|
||||
name: valkey-data
|
||||
- mountPath: /run/secrets/valkey
|
||||
name: valkey-pass-valkey
|
||||
- mountPath: /extravalkeyconfigs
|
||||
name: valkey-config-valkey
|
||||
initContainers:
|
||||
- command:
|
||||
- /scripts/init.sh
|
||||
@@ -157,6 +169,9 @@ spec:
|
||||
name: valkey-data
|
||||
- mountPath: /scripts
|
||||
name: scripts
|
||||
- mountPath: /usr/local/etc/valkey/valkey.conf
|
||||
name: valkey-config
|
||||
subPath: valkey.conf
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
runAsGroup: 1000
|
||||
@@ -167,14 +182,13 @@ spec:
|
||||
defaultMode: 365
|
||||
name: valkey-init-scripts
|
||||
name: scripts
|
||||
- configMap:
|
||||
name: valkey-config
|
||||
name: valkey-config
|
||||
- name: valkey-pass-valkey
|
||||
secret:
|
||||
defaultMode: 288
|
||||
secretName: valkey-pass
|
||||
- configMap:
|
||||
defaultMode: 288
|
||||
name: valkey-config
|
||||
name: valkey-config-valkey
|
||||
- name: valkey-data
|
||||
persistentVolumeClaim:
|
||||
claimName: valkey
|
||||
|
||||
Reference in New Issue
Block a user