Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document pod overrides #545

Merged
merged 10 commits into from
Sep 23, 2024
46 changes: 25 additions & 21 deletions docs/modules/superset/pages/getting_started/first_steps.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,37 @@

Superset metadata (slices, connections, tables, dashboards etc.) is stored in an SQL database.

For testing purposes, you can spin up a PostgreSQL database with the following commands:
For testing, you can set up a PostgreSQL database with these commands:

[source,bash]
include::example$getting_started/getting_started.sh[tag=add-bitnami-repo]

[source,bash]
include::example$getting_started/getting_started.sh[tag=install-bitnami-psql]

WARNING: This setup is unsuitable for production use! Follow the specific production setup instructions for one of the xref:required-external-components[supported databases] to get a production-ready database.
WARNING: This setup is not suitable for use in production.
Refer to the xref:required-external-components[supported databases] for production-ready database setup instructions.

== Secret with Superset credentials

A secret with the necessary credentials must be created: this contains database connection credentials as well as an admin account for Superset itself. Create a file called `superset-credentials.yaml`:
You need to create a secret with the required credentials (database connection credentials and an admin account for Superset).
Create a file called `superset-credentials.yaml`:

[source,yaml]
include::example$getting_started/superset-credentials.yaml[]

And apply it:
Apply the Secret:

[source,bash]
include::example$getting_started/getting_started.sh[tag=apply-superset-credentials]

The `connections.secretKey` will be used for securely signing the session cookies and can be used
for any other security related needs by extensions. It should be a long random string of bytes.
The `connections.secretKey` will be used for securely signing the session cookies and can be used by the extensions for any other security-related needs.
It should be a long, random string.

`connections.sqlalchemyDatabaseUri` must contain the connection string to the SQL database storing
the Superset metadata.
`connections.sqlalchemyDatabaseUri` must contain the connection string to the SQL database storing the Superset metadata.

The `adminUser` fields are used to create an admin user.
Please note that the admin user will be disabled if you use a non-default authentication mechanism like LDAP.
If using non-default authentication (e.g., LDAP), the admin user is disabled.

== Creation of a Superset node

Expand Down Expand Up @@ -67,40 +68,43 @@

== Connecting to the web interface

When the Superset node is created and the database is initialized, Superset can be opened in the
browser.
Once the Superset node is created and the database is initialized, you can open Superset in your browser.

The Superset port which defaults to `8088` can be forwarded to the local host:
To forward the Superset port (`8088`) to localhost, run:

[source,bash]
include::example$getting_started/getting_started.sh[tag=port-forwarding]

Then it can be opened in the browser with `http://localhost:8088`.

Enter the admin credentials from the Kubernetes secret:
Then, open `http://localhost:8088` in your browser and log in with the admin credentials from the Kubernetes secret.

image::getting_started/superset-login.png[Login screen of Superset]

Great! Now the Superset is already ready to use, but if you also want some sample data and dashboards to explore the functionalities Superset has to offer, continue with the next step.
Superset is now ready for use.
If you want to load sample data and dashboards and explore Superset's functionality, proceed to the next step.

== Loading examples and accessing example dashboards

To have some data to play with and some dashboards to explore, Superset comes with some example data that you can load. To do so, create a file `superset-load-examples-job.yaml` with this content:
To have some data to play with and some dashboards to explore, Superset comes with some example data that you can load.
To do so, create a file `superset-load-examples-job.yaml` with this content:

[source,bash]
include::example$getting_started/superset-load-examples-job.yaml[]

This is a Kubernetes Job. The same connection information and credentials are loaded that are also used by the Superset instance. The Job will load the example data. Execute it and await its termination like so:
This Kubernetes Job uses the same connection information and credentials as the Superset instance to load the example data.
Run the Job and wait for it to finish with the following command:

[source,bash]
include::example$getting_started/getting_started.sh[tag=load-examples]

The Job will take a few minutes to terminate. Afterwards, check back again on the web interface. New dashboards should be available:
The Job will take a few minutes to terminate.

Check notice on line 99 in docs/modules/superset/pages/getting_started/first_steps.adoc

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] docs/modules/superset/pages/getting_started/first_steps.adoc#L99

In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects. (AFTERWARDS_US[1]) Suggestions: `Afterward` Rule: https://community.languagetool.org/rule/show/AFTERWARDS_US?lang=en-US&subId=1 Category: BRITISH_ENGLISH
Raw output
docs/modules/superset/pages/getting_started/first_steps.adoc:99:46: In American English, ‘afterward’ is the preferred variant. ‘Afterwards’ is more commonly used in British English and other dialects. (AFTERWARDS_US[1])
 Suggestions: `Afterward`
 Rule: https://community.languagetool.org/rule/show/AFTERWARDS_US?lang=en-US&subId=1
 Category: BRITISH_ENGLISH
Afterwards, check back again on the web interface.
New dashboards should be available:

image::getting_started/superset-dashboard.png[Superset dashboard showing birth names]

Great! Now you can explore this sample data, run queries on it or create your own dashboards.
Great!
Now you can explore this sample data, run queries on it or create your own dashboards.

== What's next

Look at the xref:usage-guide/index.adoc[] to find out more about configuring your Superset instance or have a look at the Superset documentation to https://superset.apache.org/docs/creating-charts-dashboards/creating-your-first-dashboard[create your first dashboard].
Check the xref:usage-guide/index.adoc[] to find out more about configuring your Superset instance or have a look at the Superset documentation to https://superset.apache.org/docs/creating-charts-dashboards/creating-your-first-dashboard[create your first dashboard].

Check notice on line 110 in docs/modules/superset/pages/getting_started/first_steps.adoc

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] docs/modules/superset/pages/getting_started/first_steps.adoc#L110

In American English, “take a look” is more commonly used. (HAVE_A_LOOK[5]) Suggestions: `take a look` Rule: https://community.languagetool.org/rule/show/HAVE_A_LOOK?lang=en-US&subId=5 Category: BRITISH_ENGLISH
Raw output
docs/modules/superset/pages/getting_started/first_steps.adoc:110:101: In American English, “take a look” is more commonly used. (HAVE_A_LOOK[5])
 Suggestions: `take a look`
 Rule: https://community.languagetool.org/rule/show/HAVE_A_LOOK?lang=en-US&subId=5
 Category: BRITISH_ENGLISH
7 changes: 4 additions & 3 deletions docs/modules/superset/pages/getting_started/index.adoc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
= Getting started

This guide will get you started with Superset using the Stackable Operator. It will guide you through the installation of the Operator and its dependencies, setting up your first Superset instance, connecting to it and looking at some sample data.
This guide helps you get started with Superset using the Stackable Operator.
It covers the installation of the Operator and its dependencies, setting up your first Superset instance, connecting to it, and exploring sample data.

== Prerequisites

You will need:
You’ll need the following:

* a Kubernetes cluster
* kubectl
Expand All @@ -17,7 +18,7 @@ Resource sizing depends on cluster type(s), usage and scope, but as a starting p

== What's next

The Guide is divided into two steps:
The guide is divided into two steps:

* xref:getting_started/installation.adoc[Installing the Operators].
* xref:getting_started/first_steps.adoc[Setting up the Superset instance and connecting to it].
36 changes: 21 additions & 15 deletions docs/modules/superset/pages/getting_started/installation.adoc
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
= Installation

On this page you will install the Stackable Superset Operator as well as the commons, secret and listener Operator which are
required by all Stackable Operators.
On this page you will install the Stackable Superset Operator as well as the commons, secret and listener operators which are required by all Stackable Operators.

== Stackable Operators

There are 2 ways to run Stackable Operators

. Using xref:management:stackablectl:index.adoc[]
. Using Helm

=== stackablectl
There are multiple ways to install the Stackable Operator for Apache Zookeeper.
`stackablectl` is the preferred way but Helm is also supported.

Check notice on line 8 in docs/modules/superset/pages/getting_started/installation.adoc

View workflow job for this annotation

GitHub Actions / LanguageTool

[LanguageTool] docs/modules/superset/pages/getting_started/installation.adoc#L8

Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE_2[3]) Suggestions: `, but` URL: https://languagetool.org/insights/post/types-of-sentences/#compound-sentence Rule: https://community.languagetool.org/rule/show/COMMA_COMPOUND_SENTENCE_2?lang=en-US&subId=3 Category: PUNCTUATION
Raw output
docs/modules/superset/pages/getting_started/installation.adoc:8:35: Use a comma before ‘but’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE_2[3])
 Suggestions: `, but`
 URL: https://languagetool.org/insights/post/types-of-sentences/#compound-sentence 
 Rule: https://community.languagetool.org/rule/show/COMMA_COMPOUND_SENTENCE_2?lang=en-US&subId=3
 Category: PUNCTUATION
OpenShift users may prefer installing the operator from the RedHat Certified Operator catalog using the OpenShift web console.

[tabs]
====
stackablectl (recommended)::
+
--
`stackablectl` is the command line tool to interact with Stackable operators and our recommended way to install
Operators. Follow the xref:management:stackablectl:installation.adoc[installation steps] for your platform.

Expand All @@ -27,12 +28,15 @@
[source]
include::example$getting_started/install_output.txt[]

TIP: Consult the xref:management:stackablectl:quickstart.adoc[] to learn more about how to use `stackablectl`. For
example, you can use the `--cluster kind` flag to create a Kubernetes cluster with link:https://kind.sigs.k8s.io/[kind].

=== Helm
TIP: Consult the xref:management:stackablectl:quickstart.adoc[] to learn more about how to use `stackablectl`.
For example, you can use the `--cluster kind` flag to create a Kubernetes cluster with link:https://kind.sigs.k8s.io/[kind].
--

You can also use Helm to install the Operators. Add the Stackable Helm repository:
Helm::
+
--
You can also use Helm to install the Operators.
Add the Stackable Helm repository:
[source,bash]
----
include::example$getting_started/getting_started.sh[tag=helm-add-repo]
Expand All @@ -44,8 +48,10 @@
include::example$getting_started/getting_started.sh[tag=helm-install-operators]
----

Helm will deploy the Operators in a Kubernetes Deployment and apply the CRDs for the Superset service (as well as the
CRDs for the required operators). You are now ready to deploy Superset in Kubernetes.
Helm will deploy the operators in a Kubernetes Deployment and apply the CRDs for the Superset service (as well as the CRDs for the required operators).
You are now ready to deploy Superset in Kubernetes.
--
====

== What's next

Expand Down
4 changes: 2 additions & 2 deletions docs/modules/superset/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
* {feature-tracker}[Feature Tracker {external-link-icon}^]
* {crd}[CRD documentation {external-link-icon}^]

The Stackable operator for {superset}[Apache Superset] is an operator that can deploy and manage Apache Superset clusters on Kubernetes.
Superset is a data exploration and visualization tool that connects to data sources via SQL.
The Stackable operator for {superset}[Apache Superset] deploys and manages Superset clusters on Kubernetes.
Superset is a data exploration and visualization tool that connects to SQL-based data sources.
Store your data in Apache Druid or Trino, and manage your Druid and Trino instances with the Stackable operators for xref:druid:index.adoc[Apache Druid] or xref:trino:index.adoc[Trino].
This operator helps you manage your Superset instances on Kubernetes efficiently.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,9 @@ nodes:
config: {}
----


// cliOverrides don't make sense for this operator, so the feature is omitted for now

== Pod overrides

The Superset operator also supports Pod overrides, allowing you to override any property that you can set on a Kubernetes Pod.
Read the xref:concepts:overrides.adoc#pod-overrides[Pod overrides documentation] to learn more about this feature.
Loading