diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-07-31 19:03:31 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-07-31 19:03:31 +0200 |
commit | ab772e828868d6a7a2df23f87c0819d7652465f1 (patch) | |
tree | feff8a60795104bbf3702e9640e93bb89331643c /contrib/k8s-emc/_graveyard_/matomo-deploy.yml | |
parent | move stream-site deployment to new cdn repo (diff) |
k8s-emc: matomo is no part of new cdn repo
Diffstat (limited to 'contrib/k8s-emc/_graveyard_/matomo-deploy.yml')
-rw-r--r-- | contrib/k8s-emc/_graveyard_/matomo-deploy.yml | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/contrib/k8s-emc/_graveyard_/matomo-deploy.yml b/contrib/k8s-emc/_graveyard_/matomo-deploy.yml new file mode 100644 index 0000000..37fff0c --- /dev/null +++ b/contrib/k8s-emc/_graveyard_/matomo-deploy.yml @@ -0,0 +1,75 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: emc + name: stats-matomo + labels: + app: matomo + tier: stats +spec: + replicas: 1 + selector: + matchLabels: + app: matomo + tier: stats + strategy: + type: Recreate + revisionHistoryLimit: 5 + template: + metadata: + labels: + app: matomo + tier: stats + spec: + nodeName: emc-ctrl + securityContext: + runAsUser: 998 + fsGroup: 998 + initContainers: + - name: prepare-matomo-html + image: busybox + command: ['sh', '-c', 'chown 998:998 /srv/html && chmod 700 /srv/html'] + securityContext: + runAsUser: 0 + volumeMounts: + - name: matomo-html + mountPath: /srv/html + containers: + - name: matomo + image: spreadspace/matomo:4 + imagePullPolicy: Always + volumeMounts: + - name: matomo-html + mountPath: /var/www/html + - name: nginx + image: spreadspace/nginx:4 + imagePullPolicy: Always + args: + - nginx + - -c + - /srv/config/nginx.conf + - -g + - "daemon off;" + volumeMounts: + - name: home + mountPath: /srv + - name: nginx-lib + mountPath: /var/lib/nginx + - name: nginx-config + mountPath: /srv/config + - name: matomo-html + mountPath: /var/www/html + volumes: + - name: home + emptyDir: + medium: Memory + - name: nginx-lib + emptyDir: + medium: Memory + - name: nginx-config + configMap: + name: stats-matomo + - name: matomo-html + hostPath: + type: DirectoryOrCreate + path: /srv/stats/matomo |