feat: Add Matomo Chart for analytics
Also adds the Digitalist Chart as Backup in case the bitnami one stops working.
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
---
|
||||
{{- if .Values.matomo.queuedTrackingMonitor.enabled }}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: matomo-queuedtracking-monitor
|
||||
namespace: {{.Values.namespace}}
|
||||
labels:
|
||||
app: matomo-queuedtracking-monitor
|
||||
{{- if .Values.matomo.extralabels }}
|
||||
{{ toYaml .Values.matomo.extralabels | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
replicas: {{.Values.matomo.queuedTrackingMonitor.replicas | default 1}}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: matomo-queuedtracking-monitor
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: matomo-queuedtracking-monitor
|
||||
{{- if .Values.matomo.extralabels }}
|
||||
{{ toYaml .Values.matomo.extralabels | indent 8 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap-matomo.yaml") . | sha256sum }}
|
||||
spec:
|
||||
{{ include "matomo.init" . | nindent 6 }}
|
||||
containers:
|
||||
- name: matomo
|
||||
image: {{.Values.matomo.image}}
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "300m"
|
||||
limits:
|
||||
memory: "180Mi"
|
||||
cpu: "500m"
|
||||
securityContext:
|
||||
runAsUser: {{.Values.matomo.runAsUser}}
|
||||
privileged: false
|
||||
allowPrivilegeEscalation: false
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: MATOMO_DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.db.password.secretKeyRef.name }}
|
||||
key: {{ .Values.db.password.secretKeyRef.key }}
|
||||
{{ include "matomo.license" . | nindent 8 }}
|
||||
command: [ 'sh' , '-c' , 'supervisord -n' ]
|
||||
volumeMounts:
|
||||
- name: static-data
|
||||
mountPath: /var/www/html
|
||||
- name: matomo-supervisor-queuedtrackingmonitor
|
||||
mountPath: /etc/supervisor.d
|
||||
readOnly: true
|
||||
{{ include "matomo.images.pullSecrets" ( dict "images" (list .Values.matomo) "global" .Values.global) | nindent 6 }}
|
||||
volumes:
|
||||
- name: matomo-configuration
|
||||
configMap:
|
||||
name: matomo-configuration
|
||||
- name: static-data
|
||||
emptyDir: {}
|
||||
- name: matomo-supervisor-queuedtrackingmonitor
|
||||
configMap:
|
||||
name: matomo-supervisor-queuedtrackingmonitor
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user