iac/clusters/wb/infrastructure/patches/superset.yaml

117 lines
3.3 KiB
YAML

apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: superset
namespace: superset
spec:
interval: 5m
timeout: 20m
values:
fullnameOverride: superset
vault:
enabled: false
stronghold:
enabled: false
extraEnv:
GUNICORN_TIMEOUT: "300"
SERVER_WORKER_AMOUNT: "4"
BABEL_DEFAULT_LOCALE: ru
extraEnvRaw:
- name: ENABLE_PROXY_FIX
value: "true"
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: jwt-secret
key: jwt_secret
supersetNode:
connections:
redis_host: superset-redis-headless
redis_port: "6379"
redis_user: ""
redis_cache_db: "1"
redis_celery_db: "0"
db_host: sarex-vpsql-01.xc.wb.ru
db_port: "5432"
db_user: superset
db_name: ss
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
memory: 2Gi
supersetWorker:
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
memory: 2Gi
init:
loadExamples: false
postgresql:
enabled: false
redis:
enabled: true
image:
registry: docker.io
repository: bitnamilegacy/redis
tag: 7.0.10-debian-11-r4
architecture: standalone
auth:
enabled: false
existingSecret: ""
existingSecretKey: ""
password: ""
master:
persistence:
enabled: false
configOverrides:
feature_flags: |
FEATURE_FLAGS = {
"EMBEDDED_SUPERSET": True,
"ENABLE_TEMPLATE_PROCESSING": True,
}
GUEST_ROLE_NAME = "Public"
GUEST_TOKEN_JWT_AUDIENCE = "guest"
GUEST_TOKEN_JWT_SECRET = os.getenv("JWT_SECRET")
GUEST_TOKEN_JWT_EXP_SECONDS = 3600
iframe_config: |
TALISMAN_ENABLED = True
TALISMAN_CONFIG = {
"frame_options": None,
"content_security_policy": {
"base-uri": ["'self'"],
"default-src": ["'self'"],
"img-src": ["'self'", "blob:", "data:", "https://apachesuperset.gateway.scarf.sh", "https://static.scarf.sh/"],
"worker-src": ["'self'", "blob:"],
"connect-src": ["'self'", "https://api.mapbox.com", "https://events.mapbox.com"],
"object-src": ["'none'"],
"style-src": ["'self'", "'unsafe-inline'"],
"script-src": ["'self'", "'strict-dynamic'"],
"frame-ancestors": ["'self'", "https://srx.wb.ru", "https://*.wb.ru"],
},
"content_security_policy_nonce_in": ["script-src"],
}
X_FRAME_OPTIONS = None
HTTP_HEADERS = {
"Content-Security-Policy": "frame-ancestors 'self' https://srx.wb.ru https://*.wb.ru",
}
extend_timeout: |
SQLLAB_ASYNC_TIME_LIMIT_SEC = 300
SUPERSET_WEBSERVER_TIMEOUT = 300
SQLLAB_TIMEOUT = 600
set_locale: |
BABEL_DEFAULT_LOCALE = "ru"
enable_oauth: ""
extraConfigs:
import_datasources.yaml: |
databases:
- database_name: trino
sqlalchemy_uri: trino://superset@trino.trino.svc.cluster.local:8080
expose_in_sqllab: true
allow_ctas: true
allow_cvas: true
allow_dml: false