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

Fixes #757 - adding Apache superset to the Markeplace #915

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions apache-superset/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/bin/bash

echo "Adding Apache Superset Helm repository..."
helm repo add superset https://apache.github.io/superset
if [ $? -eq 0 ]; then
echo "Successfully added Superset Helm repository."
else
echo "Failed to add Superset Helm repository. Exiting."
exit 1
fi

echo "Updating Helm repositories..."
helm repo update
if [ $? -eq 0 ]; then
echo "Helm repositories updated successfully."
else
echo "Failed to update Helm repositories. Exiting."
exit 1
fi

echo "Creating 'superset' namespace..."
kubectl create namespace superset
if [ $? -eq 0 ]; then
echo "Namespace 'superset' created successfully."
else
echo "'superset' namespace may already exist or there was an error creating it."
fi

echo "Searching for Superset chart in the repository..."
helm search repo superset
if [ $? -eq 0 ]; then
echo "Superset chart found."
else
echo "Superset chart not found. Please check the repository and try again."
exit 1
fi

echo "Installing or upgrading Superset with provided values..."
helm upgrade --install --values values.yaml superset superset/superset -n superset
if [ $? -eq 0 ]; then
echo "Superset installation/upgrade completed successfully."
else
echo "Failed to install/upgrade Superset. Exiting."
exit 1
fi

echo "To check the status of the Superset pods, run the following command:"
echo " kubectl get pods -n superset"
echo ""
echo "To access the Superset service, use port forwarding with the command:"
echo " kubectl port-forward service/superset 8088:8088 --namespace superset"
echo ""
echo "You can access the Superset application by opening your browser and visiting:"
echo " http://localhost:8088"
echo ""
echo "Default login credentials:"
echo "------Username: admin-----"
echo "------Password: admin-----"
echo "It is highly recommended to change these credentials after the first login :)"
Binary file added apache-superset/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions apache-superset/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: apache superset
title: "Apache Superset"
version: "4.0.1"
maintainer: "@jhsundaram"
description: Apche Superset is the a powerful data visualization tool enabling organizations to harness real-time data insights and sophisticated analytics.
url: https://superset.apache.org/
category: management
17 changes: 17 additions & 0 deletions apache-superset/post_install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

## Apache Superset Installed!

You have successfully installed Apache Superset on your Kubernetes cluster.

### Next Steps:
1. **Access Superset**: Visit the Superset UI through the provided Ingress URL or LoadBalancer IP.
2. **Default Credentials**:
- Username: `admin`
- Password: `admin`
Please change your credentials after the first login.

3. **Database Setup**: Connect Superset to your data sources by navigating to **Data > Databases** and following the setup instructions.

### Learn More:
For detailed documentation, visit [Superset Documentation](https://superset.apache.org/docs).

4 changes: 4 additions & 0 deletions apache-superset/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# Superset Uninstallation Script
helm uninstall superset --namespace superset
kubectl delete namespace superset
19 changes: 19 additions & 0 deletions apache-superset/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Define the namespace where Superset will be installed
namespace: superset

# Database configuration
postgresql:
postgresqlUsername: supersetpostgres
postgresqlPassword: SuperPGadmin@2024
postgresqlDatabase: superset

configOverrides:
secret: |
SECRET_KEY = 'mi5QlYtIyl23yzvdPnno7vJgnG2fiAdiFfffJXpJxtRZYrc4aX1Tcc2X'


bootstrapScript: |
#!/bin/bash
pip install psycopg2 \
pip install pyhive &&\
if [ ! -f ~/bootstrap ]; then echo "Running Superset with uid {{ .Values.runAsUser }}" > ~/bootstrap; fi