Skip to content

Commit

Permalink
Merge pull request #6 from kexa-io/dev
Browse files Browse the repository at this point in the history
fix: Env, Kubernetes, Workspace secrets & readme
  • Loading branch information
aeppling authored Sep 12, 2024
2 parents da7432a + fb67c1d commit 5ffbeff
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ kexa-chart/files/environment/*
kexa-chart/files/config/*
node_modules/*
./*.yaml
*.yaml
.env
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,28 @@
# helm-charts
Helm charts to install & run Kexa with postgres/mariaDB and Grafana


### Create your secrets

*For most addons credentials*
```bash
kubectl create secret generic kexa-environment-secret --from-file=.env=.env
```

*For Kubernetes credentials*
```bash
kubectl create secret generic kubeconfig-secret --from-file=kubeconfig.yaml=kubeconfig.yaml
```

*For Google Workspace credentials*
```bash
kubectl create secret generic workspace-secret --from-file=workspace_credentials.json=/path/to/your/credentials.json
```

### Install the chart

```bash
helm install kexa-helm .\kexa-chart\
```

### Read the instructions in your console !
3 changes: 0 additions & 3 deletions kexa-chart/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,4 @@ kubectl get secret --namespace default kexa-helm-grafana -o jsonpath="{.data.adm
# Follow logs from job
kubectl logs job/kexa-helm-job -f


kubectl create secret generic kexa-environment-secret --from-file=.env=.env

---------------------
13 changes: 12 additions & 1 deletion kexa-chart/templates/kexa-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ spec:
readOnly: false
- name: writable-app-volume
mountPath: /app/config
{{- if .Values.kubernetesAddon.enabled }}
- name: kubeconfig-volume
mountPath: /app/kubeconfig.yaml
subPath: kubeconfig.yaml
readOnly: false
{{- end }}
restartPolicy: Never
volumes:
- name: kexa-config-volume
Expand All @@ -49,4 +55,9 @@ spec:
secret:
secretName: kexa-environment-secret
- name: writable-app-volume
emptyDir: {}
emptyDir: {}
{{- if .Values.kubernetesAddon.enabled }}
- name: kubeconfig-volume
secret:
secretName: kubeconfig-secret
{{- end }}
10 changes: 4 additions & 6 deletions kexa-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ appname: kexa-helm

namespace: default

kubernetesAddon:
enabled: true

postgresql:
host: postgresql.default.svc.cluster.local
database: your_database_name
Expand Down Expand Up @@ -52,12 +55,7 @@ kexaScript:
volumeMounts:
- name: configuration-files
mountPath: /app/config
- name: environment-files
mountPath: /app/Kexa
volumes:
- name: configuration-files
configMap:
name: kexa-configuration-files
- name: environment-files
configMap:
name: kexa-environment-files
name: kexa-configuration-files

0 comments on commit 5ffbeff

Please sign in to comment.