Superset Operator
- Commercial Systems
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 35 | 02 Oct 2024 | |
latest/beta | 32 | 12 Sep 2024 | |
latest/edge | 35 | 02 Oct 2024 |
juju deploy superset-k8s --channel edge
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
This part of the tutorial focuses on deploying Charmed Superset and adding relations to supporting charms.
Charmed Superset has three primary functions:
- Web server and User Interface (UI).
- Worker for handling asynchronous queries.
- Beat scheduler for scheduling tasks.
This tutorial only focuses on the web server and UI.
Deploy Charmed Superset server
There are multiple channels of Charmed Superset you can deploy. See Charmhub for more details. If none is specified, latest/stable
is deployed.
juju deploy superset-k8s
Add PostgreSQL and Redis relations
A charm relation is an integration between applications which passes necessary configurations to automate the integration. You can add relations between Charmed Superset, Charmed PostgreSQL and Charmed Redis as follows:
juju relate superset-k8s postgresql-k8s
juju relate superset-k8s redis-k8s
This relation addition takes approximately 5 minutes to complete.
When running juju status --relations
, you should expect an output like the following:
Model Controller Cloud/Region Version SLA Timestamp
superset-model superset-controller microk8s/localhost 3.5.3 unsupported 11:00:56+01:00
App Version Status Scale Charm Channel Rev Address Exposed Message
postgresql-k8s 14.12 active 1 postgresql-k8s 14/stable 381 10.152.183.243 no
redis-k8s 7.2.5 active 1 redis-k8s latest/edge 36 10.152.183.182 no
superset-k8s active 1 superset-k8s latest/stable 34 10.152.183.135 no Status check: UP
Unit Workload Agent Address Ports Message
postgresql-k8s/0* active idle 10.1.255.10 Primary
redis-k8s/0* active idle 10.1.255.21
superset-k8s/0* active idle 10.1.255.5 Status check: UP
Integration provider Requirer Interface Type Message
postgresql-k8s:database superset-k8s:postgresql_db postgresql_client regular
postgresql-k8s:database-peers postgresql-k8s:database-peers postgresql_peers peer
postgresql-k8s:restart postgresql-k8s:restart rolling_op peer
postgresql-k8s:upgrade postgresql-k8s:upgrade upgrade peer
redis-k8s:redis superset-k8s:redis redis regular
redis-k8s:redis-peers redis-k8s:redis-peers redis-peers peer
superset-k8s:peer superset-k8s:peer superset peer
Note that all applications and units are in active state and relations exist between our Charmed Superset applications and PostgreSQL and Redis applications.
See next: Create a dashboard