forked from os-climate/odh-manifests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring on Superset manifests (opendatahub-io#459)
- Loading branch information
Showing
13 changed files
with
180 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,73 @@ To install Superset add the following to the `kfctl` yaml file. | |
|
||
``` | ||
- kustomizeConfig: | ||
parameters: | ||
# Note: The admin username is admin | ||
- name: SUPERSET_ADMIN_PASSWORD | ||
value: admin | ||
repoRef: | ||
name: manifests | ||
path: superset | ||
name: superset | ||
``` | ||
|
||
By default the user and password to the Superset portal is admin/admin. You can change the password by changing the value of the `SUPERSET_ADMIN_PASSWORD`. To launch the portal, go to the routes in the namespace you installed Open Data Hub and click on the route with `superset` name. | ||
By default the user and password to the Superset portal is admin/admin. To launch the portal, go to the routes in the namespace you installed Open Data Hub and click on the route with `superset` name. | ||
|
||
### Parameters | ||
|
||
There are 11 parameters exposed via KfDef. | ||
|
||
#### storage_class | ||
|
||
Name of the storage class to be used for PVC created by Hue's database. This requires `storage-class` **overlay** to be enabled as well to work. | ||
#### superset_secret | ||
|
||
The secret containing the environment variables to set the admin credentials and the Superset app secret key used to encrypt information in the database. If not specified, environment variables from [`superset`](base/secret-superset.yaml) will be used. | ||
|
||
When creating a custom secret, the following information should be added: | ||
|
||
* **SUPERSET_ADMIN_USER**: The username of the Superset administrator. If using the `superset` secret, `admin` will be used | ||
* **SUPERSET_ADMIN_FNAME**: The First Name of the Superset administrator. If using the `superset` secret, `admin` will be used | ||
* **SUPERSET_ADMIN_LNAME**: The LastName of the Superset administrator. If using the `superset` secret, `admin` will be used | ||
* **SUPERSET_ADMIN_EMAIL**: The e-mail of the Superset administrator. If using the `superset` secret, `[email protected]` will be used | ||
* **SUPERSET_ADMIN_PASSWORD**: The password of the Superset administrator. If using the `superset` secret, `admin` will be used | ||
* **SUPERSET_SECRET_KEY**: The app secret key used by Superset to encrypt information in the database. If using the `superset` secret, `thisISaSECRET_1234` will be used | ||
|
||
#### superset_db_secret | ||
|
||
This parameter configures the Superset database. The secret of choice must contain `database-name`, `database-user`, and `database-password` keys. If not set, credentials from [`supersetdb-secret`](base/supersetdb-secret.yaml) will be used instead. | ||
|
||
#### superset_memory_requests | ||
|
||
This parameter will configure the Memory request for Superset. If not set, the default value `1Gi` will be used instead. | ||
|
||
#### superset_memory_limits | ||
|
||
This parameter will configure the Memory limits for Superset. If not set, the default value `2Gi` will be used instead. | ||
|
||
#### superset_cpu_requests | ||
|
||
This parameter will configure the CPU request for Superset. If not set, the default value `300m` will be used instead. | ||
|
||
#### superset_cpu_limits | ||
|
||
This parameter will configure the CPU limits for Superset. If not set, the default value `2` will be used instead. | ||
|
||
#### superset_db_memory_requests | ||
|
||
This parameter will configure the Memory request for Superset Database. If not set, the default value `300Mi` will be used instead. | ||
|
||
#### superset_db_memory_limits | ||
|
||
This parameter will configure the Memory limits for Superset Database. If not set, the default value `1Gi` will be used instead. | ||
|
||
#### superset_db_cpu_requests | ||
|
||
This parameter will configure the CPU request for Superset Database. If not set, the default value `300m` will be used instead. | ||
|
||
#### superset_db_cpu_limits | ||
|
||
This parameter will configure the CPU request for Superset Database. If not set, the default value `1` will be used instead. | ||
|
||
### Superset config file customization | ||
|
||
Superset manifests comes with a [`superset-config`](base/secret.yaml) secret, which will configure basic parameters for Superset like the database SQLAlchemy URL to connect to its database. | ||
|
||
### Superset Database Initialization | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.