127 lines
1.9 KiB
YAML
127 lines
1.9 KiB
YAML
# Redis Helm Chart Values for WMS
|
|
# 使用 Bitnami Redis Chart
|
|
|
|
architecture: replication
|
|
|
|
auth:
|
|
enabled: true
|
|
sentinel: true
|
|
password: cpte@redis123
|
|
|
|
master:
|
|
count: 1
|
|
|
|
persistence:
|
|
enabled: true
|
|
storageClass: nfs-sc
|
|
size: 10Gi
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 1
|
|
memory: 2Gi
|
|
|
|
configuration: |
|
|
maxmemory 1gb
|
|
maxmemory-policy allkeys-lru
|
|
appendonly yes
|
|
appendfsync everysec
|
|
|
|
extraFlags:
|
|
- --maxmemory-policy allkeys-lru
|
|
- --appendonly yes
|
|
- --appendfsync everysec
|
|
|
|
replica:
|
|
replicaCount: 2
|
|
|
|
persistence:
|
|
enabled: true
|
|
storageClass: nfs-sc
|
|
size: 10Gi
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 1
|
|
memory: 2Gi
|
|
|
|
configuration: |
|
|
maxmemory 1gb
|
|
maxmemory-policy allkeys-lru
|
|
appendonly yes
|
|
appendfsync everysec
|
|
|
|
sentinel:
|
|
enabled: true
|
|
masterSet: mymaster
|
|
initialCheckTimeout: 5
|
|
quorum: 2
|
|
downAfterMilliseconds: 5000
|
|
failoverTimeout: 180000
|
|
parallelSyncs: 1
|
|
|
|
persistence:
|
|
enabled: true
|
|
storageClass: nfs-sc
|
|
size: 1Gi
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 256Mi
|
|
|
|
metrics:
|
|
enabled: true
|
|
serviceMonitor:
|
|
enabled: true
|
|
namespace: wms-system
|
|
interval: 30s
|
|
|
|
service:
|
|
type: ClusterIP
|
|
|
|
tls:
|
|
enabled: false
|
|
|
|
volumePermissions:
|
|
enabled: true
|
|
|
|
podSecurityContext:
|
|
enabled: true
|
|
fsGroup: 1001
|
|
|
|
containerSecurityContext:
|
|
enabled: true
|
|
runAsUser: 1001
|
|
runAsNonRoot: true
|
|
|
|
livenessProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
|
|
readinessProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
|
|
startupProbe:
|
|
enabled: true
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 5
|
|
timeoutSeconds: 3
|
|
failureThreshold: 30
|