GitHub user SB-MFJ added a comment to the discussion: Need help setting up 
Superset chart in AWS EKS behind ALB

Configured values (we use terraform):
```hcl
    "image.repository" = "docker.myorg.io/superset",
    "image.tag" = "latest",
    "image.pullPolicy" = "Always",
    "imagePullSecrets[0].name" = "nexus-pull",
    "service.type" = "NodePort",
    "service.nodePort.http" = "31080",
    "init.adminUser.email" ="[email protected]",
    "init.adminUser.firstname" = "Dev",
    "init.adminUser.lastname" = "Admin",
    "postgresql.enabled" = false,
    "postgresql.primary.persistance.enabled" = false,
    "supersetNode.connections.db_host" = "db.myorg.io", 
    "supersetNode.connections.db_name" = "uns",
    "supersetNode.connections.db_port" = "5432",
    "redis.enabled" = false,
    "supersetNode.connections.redis_cache_db" = "14",
    "supersetNode.connections.redis_celery_db" = "13",
    "supersetNode.connections.redis_host" = "redis.myorg.org",
    "supersetNode.connections.redis_port" = "6379",
    "supersetNode.connections.redis_user" = "",

    "priorityClassName" = dependency.priority.outputs.name,
    "runAsUser" = "1000",
    "supersetCeleryBeat.enabled" = true,
    # "supersetCeleryFlower.enabled" = true,
    "prometheus.server.global.external_labels.cluster_id" = 
dependency.k8_cluster.outputs.name,
```

config overrides:
```yaml
extraEnv:
      FLASK_DEBUG: "true"
    bootstrapScript: |
      #!/bin/bash
      if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ 
.Values.runAsUser }}" > ~/bootstrap; fi
    configOverrides:
      feature_flags: |
        import ast
        ENABLE_PROXY_FIX = True
        PROXY_FIX_CONFIG = {"x_proto": 1, "x_host": 1, "x_prefix": 1, "x_port": 
0}
        # SESSION_COOKIE_SECURE = True  # if using HTTPS
        FEATURE_FLAGS = {
          "ALERT_REPORTS": True,
          "ALERT_REPORT_SLACK_V2": True,
          # "PLAYWRIGHT_REPORTS_AND_THUMBNAILS": True,
        }
      secret: |
        SECRET_KEY = "${local.superset_secret}"
        SLACK_API_TOKEN = "${local.slack_token}"
```
        
dockerfile:
```dockerfile
FROM apache/superset:6.0.0rc3

USER root

RUN . /app/.venv/bin/activate && \
    uv pip install \
    # package needed for storing to db
    psycopg2-binary \
    # package needed for using single-sign on authentication
    Authlib \
    # needed for flower workers
    flower \
    # openpyxl to be able to upload Excel files
    openpyxl \
    # Pillow for Alerts & Reports to generate PDFs of dashboards
    Pillow \
    # install Playwright for taking screenshots for Alerts & Reports. This 
assumes the feature flag PLAYWRIGHT_REPORTS_AND_THUMBNAILS is enabled
    # That feature flag will default to True starting in 6.0.0
    # Playwright works only with Chrome.
    playwright \
    && playwright install-deps \
    && PLAYWRIGHT_BROWSERS_PATH=/usr/local/share/playwright-browsers playwright 
install chromium

ADD app /app/

USER superset

CMD ["/app/docker/entrypoints/run-server.sh"]
```

End goal is to use OAuth y, butut for testing I've paired the config down to 
this to make troubleshooting simpler.
The only thing that changes with OAuth is there is an additional redirect from 
`/welcome` to `/login` before it again ends up hanging in the same way as 
originally mentioned.


GitHub link: 
https://github.com/apache/superset/discussions/36296#discussioncomment-15089436

----
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]

Reply via email to