Skip to content

Commit

Permalink
fix: Kubernetes & Workspace secrets ok
Browse files Browse the repository at this point in the history
  • Loading branch information
aeppling committed Sep 12, 2024
1 parent 2ab58ed commit fb67c1d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 7 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
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@ 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
Expand Down
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 fb67c1d

Please sign in to comment.