Skip to content

Commit

Permalink
Merge pull request #90 from letronghoangminh/feature/add-metabase-sid…
Browse files Browse the repository at this point in the history
…ecars

charts/metabase add sidecars for main deployment
  • Loading branch information
pmint93 authored Nov 23, 2023
2 parents c0125ab + 1c35c27 commit 55066b4
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/metabase/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description:
The easy, open source way for everyone in your company to ask questions
and learn from data.
name: metabase
version: 2.10.0
version: 2.10.1
appVersion: v0.47.2
maintainers:
- name: pmint93
Expand Down
5 changes: 3 additions & 2 deletions charts/metabase/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The command removes all the Kubernetes components associated with the chart and
The following table lists the configurable parameters of the Metabase chart and their default values.

| Parameter | Description | Default |
| ----------------------------------------------- | -------------------------------------------------------------------------- | ----------------- |
|-------------------------------------------------|----------------------------------------------------------------------------|-------------------|
| replicaCount | desired number of controller pods | 1 |
| pdb.create | Enable/disable a Pod Disruption Budget creation | false |
| pdb.minAvailable | Minimum number/percentage of pods that should remain scheduled | 1 |
Expand All @@ -60,7 +60,7 @@ The following table lists the configurable parameters of the Metabase chart and
| podAnnotations | controller pods annotations | {} |
| podLabels | extra pods labels | {} |
| image.repository | controller container image repository | metabase/metabase |
| image.tag | controller container image tag | v0.47.2 |
| image.tag | controller container image tag | v0.47.2 |
| image.command | controller container image command | [] |
| image.pullPolicy | controller container image pull policy | IfNotPresent |
| image.pullSecrets | controller container image pull secrets | [] |
Expand Down Expand Up @@ -147,5 +147,6 @@ The following table lists the configurable parameters of the Metabase chart and
| session.sessionCookies | When browser is closed, user login session will expire | null |
| extraEnv | Mapping of extra environment variables | {} |
| envFrom | Mapping of extra environment variables from secret and/or configMap | [] |
| sidecars | Mapping of container sidecars for the main deployment | [] |

The above parameters map to the env variables defined in [metabase](http://github.com/metabase/metabase). For more information please refer to the [metabase documentations](https://www.metabase.com/docs/v0.41/operations-guide/environment-variables.html).
3 changes: 3 additions & 0 deletions charts/metabase/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ spec:
resources:
{{ toYaml .Values.database.googleCloudSQL.resources | indent 12 }}
{{- end }}
{{- if .Values.sidecars }}
{{ toYaml .Values.sidecars | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
Expand Down
16 changes: 16 additions & 0 deletions charts/metabase/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,19 @@ envFrom: []
# name: metabase-secret
# - type: configMap
# name: metabase-cm

sidecars: []
# - name: busybox
# image: busybox
# ports:
# - containerPort: 80
# name: http
# resources:
# requests:
# memory: 100Mi
# cpu: 10m
# limits:
# memory: 100Mi
# cpu: 10m
# command: ["/bin/sh"]
# args: ["-c", "while true; do echo hello; sleep 10;done"]

0 comments on commit 55066b4

Please sign in to comment.