From 0acd2df7698f7c820df98ff862846f77e494b077 Mon Sep 17 00:00:00 2001 From: aesoft <43991222+aeppling@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:47:05 +0200 Subject: [PATCH] fix: readme, notes & chart name --- README.md | 9 ++++++++- charts/kexa-chart/Chart.yaml | 2 +- charts/kexa-chart/templates/NOTES.txt | 26 +++++++++++--------------- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3759b24..c66c9a4 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Helm charts to install & run Kexa with postgres/mariaDB and Grafana If you do not want to use the cronjob, and just need a one time run: - Replace kexa-chart/templates/kexa-store.yaml with kexa-chart/store/kexa-store.yaml + ## Create your secrets Most of addon's credentials are passed in .env file, only Kubernetes addon require @@ -29,8 +30,14 @@ kubectl create secret generic kubeconfig-secret --from-file=kubeconfig.yaml=kube ## Install the chart +*Adding the Kexa repository* +```bash +helm repo add YOUR_REPOSITORY_NAME https://kexa-io.github.io/helm-charts/ +``` + +*Installing Kexa chart* ```bash -helm install kexa-helm .\kexa-chart\ +helm install YOUR_RELEASE_NAME YOUR_REPOSITORY_NAME/kexa ``` ## Read the instructions in your console ! \ No newline at end of file diff --git a/charts/kexa-chart/Chart.yaml b/charts/kexa-chart/Chart.yaml index 5e0c3c3..948e069 100644 --- a/charts/kexa-chart/Chart.yaml +++ b/charts/kexa-chart/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -name: helm-kexa-grafana-postgres +name: kexa description: A Helm chart that installs PostgreSQL and Grafana version: 1.4.1 appVersion: '1.0' diff --git a/charts/kexa-chart/templates/NOTES.txt b/charts/kexa-chart/templates/NOTES.txt index 5e72bd8..72292dc 100644 --- a/charts/kexa-chart/templates/NOTES.txt +++ b/charts/kexa-chart/templates/NOTES.txt @@ -1,31 +1,27 @@ ------ NOTES ------- +#### Postgres #### -#### Grafana Dashboard #### +# Get postgres password +kubectl get secret --namespace default my-postgresql -o jsonpath="{.data.postgres-password}" -# Get Grafana's hashed password -kubectl get secret --namespace default kexa-helm-grafana -o jsonpath="{.data.admin-password}" - OR -kubectl get secret --namespace default kexa-helm-grafana-admin -o jsonpath="{.data.GF_SECURITY_ADMIN_PASSWORD}" +# Decode hashed Postgres password +[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("YOUR_HASHED_PASSWORD_HERE")) +#### Grafana Dashboard #### + +# Get Grafana's hashed password +kubectl get secret --namespace default YOUR_RELEASE_NAME-grafana -o jsonpath="{.data.admin-password}" # Decode hashed Grafana password [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("YOUR_HASHED_PASSWORD_HERE")) # Forwarding port -kubectl port-forward svc/kexa-helm-grafana 8080:80 - OR -kubectl port-forward svc/kexa-helm-grafana 3000 +kubectl port-forward svc/YOUR_RELEASE_NAME-grafana 8080:80 # Login with 'admin' and password you got - - -# Get postgres password -kubectl get secret --namespace default my-postgresql -o jsonpath="{.data.postgres-password}" - -# Decode hashed Postgres password -[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String("YOUR_HASHED_PASSWORD_HERE")) +# All dashboards and database connection to Postgres are already set #### Kexa Logs ####