fix(superset): fix reinstall and adjust resource request/limit

This commit is contained in:
Masaki Yatsu
2025-11-23 22:36:34 +09:00
parent 744ce1e4c5
commit 6e9580c7bd
2 changed files with 66 additions and 11 deletions

View File

@@ -69,6 +69,14 @@ init:
supersetNode:
replicaCount: 1
resources:
requests:
cpu: "{{ .Env.SUPERSET_CPU_REQUEST }}"
memory: "{{ .Env.SUPERSET_MEMORY_REQUEST }}"
limits:
cpu: "{{ .Env.SUPERSET_CPU_LIMIT }}"
memory: "{{ .Env.SUPERSET_MEMORY_LIMIT }}"
# Security context for Pod Security Standards (baseline)
podSecurityContext:
fsGroup: 1000
@@ -126,6 +134,14 @@ supersetNode:
supersetWorker:
replicaCount: 1
resources:
requests:
cpu: "{{ .Env.SUPERSET_WORKER_CPU_REQUEST }}"
memory: "{{ .Env.SUPERSET_WORKER_MEMORY_REQUEST }}"
limits:
cpu: "{{ .Env.SUPERSET_WORKER_CPU_LIMIT }}"
memory: "{{ .Env.SUPERSET_WORKER_MEMORY_LIMIT }}"
# Security context for Pod Security Standards (baseline)
podSecurityContext:
fsGroup: 1000
@@ -183,6 +199,13 @@ redis:
master:
persistence:
enabled: false
resources:
requests:
cpu: "{{ .Env.REDIS_CPU_REQUEST }}"
memory: "{{ .Env.REDIS_MEMORY_REQUEST }}"
limits:
cpu: "{{ .Env.REDIS_CPU_LIMIT }}"
memory: "{{ .Env.REDIS_MEMORY_LIMIT }}"
# Security context for Pod Security Standards (restricted)
podSecurityContext:
runAsNonRoot: true