-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathsuperset.yaml
More file actions
80 lines (80 loc) · 2.06 KB
/
Copy pathsuperset.yaml
File metadata and controls
80 lines (80 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
# The Superset metadata database is restored from postgres_superset_dump.sql (see
# setup-postgresql.yaml), which contains rows (e.g. the Trino database connection
# password) encrypted with the SECRET_KEY below.
apiVersion: v1
kind: Secret
metadata:
name: superset-secret-key
stringData:
SECRET_KEY: supersetSecretKey
---
apiVersion: superset.stackable.tech/v1alpha1
kind: SupersetCluster
metadata:
name: superset
spec:
image:
productVersion: 6.0.0
clusterConfig:
credentialsSecretName: superset-admin-credentials
metadataDatabase:
postgresql:
host: postgresql-superset
database: superset
credentialsSecretName: superset-postgresql-credentials
authentication:
- authenticationClass: keycloak
oidc:
clientCredentialsSecret: superset-keycloak-client
userRegistrationRole: Gamma_extended
# Superset roles are assigned at every login based on the Keycloak group
# memberships, see superset-regorules.yaml
authorization:
roleMappingFromOpa:
configMapName: opa
package: superset
nodes:
roleConfig:
listenerClass: external-stable
roleGroups:
default:
replicas: 1
podOverrides:
spec:
initContainers:
- name: wait-for-setup-db-job
image: oci.stackable.tech/sdp/testing-tools:0.3.0-stackable0.0.0-dev
command:
- bash
- -c
- |
kubectl wait --for=condition=complete job/setup-db-job
---
apiVersion: v1
kind: Secret
metadata:
name: superset-admin-credentials
type: Opaque
stringData:
adminUser.username: admin
adminUser.firstname: Superset
adminUser.lastname: Admin
adminUser.email: admin@superset.com
adminUser.password: {{ supersetAdminPassword }}
---
apiVersion: v1
kind: Secret
metadata:
name: superset-postgresql-credentials
stringData:
username: superset
password: superset
---
apiVersion: v1
kind: Secret
metadata:
name: superset-keycloak-client
stringData:
clientId: superset
clientSecret: "{{ keycloakSupersetClientSecret }}"