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

fix: readme, notes & chart name #32

Merged
merged 1 commit into from
Sep 17, 2024
Merged
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
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 !
2 changes: 1 addition & 1 deletion charts/kexa-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
26 changes: 11 additions & 15 deletions charts/kexa-chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -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 ####
Expand Down
Loading