Skip to content
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
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
name: plausible-analytics
description: A Helm Chart for Plausible Analytics - Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
type: application
version: 0.4.0
version: 0.4.1
appVersion: 3.0.1
keywords:
- web analytics
Expand Down
16 changes: 11 additions & 5 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
- key: DATABASE_CA
path: database-ca.pem
{{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.plausibleInitContainers.enabled }}
initContainers:
- name: wait-for-postgres
Expand All @@ -56,6 +59,11 @@ spec:
volumeMounts:
- name: scripts-volume
mountPath: /scripts
{{- if .Values.databaseCA }}
- name: database-ca
mountPath: /etc/ssl/certs/plausible/
readOnly: true
{{- end }}
{{- if not .Values.plausibleInitContainers.curl.enabled }}
- name: wait-for-clickhouse
image: "{{ .Values.plausibleInitContainers.clickhouse.image.repository }}:{{ .Values.plausibleInitContainers.clickhouse.image.tag | default "latest" }}"
Expand All @@ -81,11 +89,6 @@ spec:
volumeMounts:
- name: scripts-volume
mountPath: /scripts
{{- if .Values.databaseCA }}
- name: database-ca
mountPath: /etc/ssl/certs/plausible/
readOnly: true
{{- end }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand All @@ -104,6 +107,9 @@ spec:
mountPath: /etc/ssl/certs/plausible/
readOnly: true
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
env:
{{- if .Values.baseURL }}
- name: BASE_URL
Expand Down
15 changes: 15 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,18 @@ affinity: {}

## Extra environment variables definition
extraEnv: []

## Extra volumes definition
## Refer to ".spec.volumes" specification : https://kubernetes.io/docs/concepts/storage/volumes/
extraVolumes: []
# - name: my_volume
# secret:
# secretName: my_secret
# optional: false

## Extra volumes mounts' definition
## Refer to ".spec.containers.volumeMounts" specification : https://kubernetes.io/docs/concepts/storage/volumes/
extraVolumeMounts: []
# - name: mounted_secret
# mountPath: "/etc/mounted_secret"
# readOnly: true