GitHub user Kranthi32 added a comment to the discussion: Production deployment
issue in
@martimors @dosu i am using this yaml but its connecting internal db only any
changes required in my yaml fille
# Use your custom Superset image (includes redis & psycopg2-binary)
image:
repository: reddy2210/superset-custom
tag: 4.1.2
# Use internal Redis for caching (bitnami/redis enabled by Helm)
redis:
enabled: true
auth:
enabled: false
# Disable internal PostgreSQL
postgresql:
enabled: false
# Use external Azure PostgreSQL
externalDatabase:
type: postgresql
host: appsqlsscind01.private.postgres.database.azure.com
port: 5432
database: superset
user: sspsqladmin
password: 'Password123'
extraArgs: "?sslmode=require"
# Inject secret key properly
extraSecretEnv:
SUPERSET_SECRET_KEY:
'OG6tANx8xP8QAo9sabJAwUAjUs2OO7hEPmTqjgxqnj5TnjLouQP1tULQ'
# Superset config overrides (only one block)
configOverrides:
superset_config.py: |
ENABLE_PROXY_FIX = True
from flask_caching import Cache
RESULTS_BACKEND = Cache(
config={
'CACHE_TYPE': 'RedisCache',
'CACHE_DEFAULT_TIMEOUT': 300,
'CACHE_KEY_PREFIX': 'superset_results',
'CACHE_REDIS_URL': 'redis://superset-redis-master:6379/0'
}
)
# Init configuration
init:
createAdmin: true
adminUser:
username: admin
firstname: Superset
lastname: Admin
email: [email protected]
password: C@reS0ft
loadExamples: false
# Init container waits for external DB (use hardcoded DNS here)
initContainer:
enabled: true
command:
- "/bin/sh"
- "-c"
- |
echo "Waiting for PostgreSQL at $DB_HOST:$DB_PORT..."
until nc -z $DB_HOST $DB_PORT; do
echo "Waiting...";
sleep 2;
done
echo "PostgreSQL is available."
# Make sure these env vars are passed to all components
supersetNode:
extraEnv:
- name: DB_HOST
value: appsqlsscind01.private.postgres.database.azure.com
- name: DB_PORT
value: "5432"
worker:
extraEnv:
- name: DB_HOST
value: appsqlsscind01.private.postgres.database.azure.com
- name: DB_PORT
value: "5432"
init:
extraEnv:
- name: DB_HOST
value: appsqlsscind01.private.postgres.database.azure.com
- name: DB_PORT
value: "5432"
GitHub link:
https://github.com/apache/superset/discussions/33957#discussioncomment-13599738
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]