diff --git a/apache-superset/install.sh b/apache-superset/install.sh new file mode 100644 index 00000000..efedafde --- /dev/null +++ b/apache-superset/install.sh @@ -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 :)" diff --git a/apache-superset/logo.png b/apache-superset/logo.png new file mode 100644 index 00000000..bd447450 Binary files /dev/null and b/apache-superset/logo.png differ diff --git a/apache-superset/manifest.yaml b/apache-superset/manifest.yaml new file mode 100644 index 00000000..f8208819 --- /dev/null +++ b/apache-superset/manifest.yaml @@ -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 diff --git a/apache-superset/post_install.md b/apache-superset/post_install.md new file mode 100644 index 00000000..8ccf5f20 --- /dev/null +++ b/apache-superset/post_install.md @@ -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). + diff --git a/apache-superset/uninstall.sh b/apache-superset/uninstall.sh new file mode 100644 index 00000000..c006bf52 --- /dev/null +++ b/apache-superset/uninstall.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Superset Uninstallation Script +helm uninstall superset --namespace superset +kubectl delete namespace superset diff --git a/apache-superset/values.yaml b/apache-superset/values.yaml new file mode 100644 index 00000000..2024610a --- /dev/null +++ b/apache-superset/values.yaml @@ -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 \ No newline at end of file