diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-03-08 03:10:37 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-03-08 03:10:37 +0100 |
commit | 8d7444f4ff20b70e98bad03d3b1e35981eac4932 (patch) | |
tree | 141402f1c2d26fccdeded0c25a6293bb275ee55d /contrib/k8s-emc/matomo-deploy.yml | |
parent | added improvised onion service site (diff) |
initial matomo deployment (not working yet)
Diffstat (limited to 'contrib/k8s-emc/matomo-deploy.yml')
-rw-r--r-- | contrib/k8s-emc/matomo-deploy.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/contrib/k8s-emc/matomo-deploy.yml b/contrib/k8s-emc/matomo-deploy.yml new file mode 100644 index 0000000..29cbd87 --- /dev/null +++ b/contrib/k8s-emc/matomo-deploy.yml @@ -0,0 +1,48 @@ +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-stats + 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:2 + imagePullPolicy: Always + volumeMounts: + - name: matomo-html + mountPath: /var/www/html + volumes: + - name: matomo-html + hostPath: + type: DirectoryOrCreate + path: /srv/stats/matomo |