diff options
Diffstat (limited to 'contrib/k8s-emc/_graveyard_/grafana-statefulset.yml')
-rw-r--r-- | contrib/k8s-emc/_graveyard_/grafana-statefulset.yml | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/contrib/k8s-emc/_graveyard_/grafana-statefulset.yml b/contrib/k8s-emc/_graveyard_/grafana-statefulset.yml new file mode 100644 index 0000000..3251fa6 --- /dev/null +++ b/contrib/k8s-emc/_graveyard_/grafana-statefulset.yml @@ -0,0 +1,65 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + namespace: emc + name: stats-grafana + labels: + app: grafana + tier: stats +spec: + serviceName: stats-grafana + replicas: 1 + selector: + matchLabels: + app: grafana + tier: stats + updateStrategy: + type: RollingUpdate + template: + metadata: + labels: + app: grafana + tier: stats + spec: + nodeName: emc-ctrl + initContainers: + - name: prepare-grafana-data + image: busybox + command: ['sh', '-c', 'mkdir -p /srv/data/lib /srv/data/log'] + volumeMounts: + - name: grafana-data + mountPath: /srv/data + containers: + - name: grafana + image: grafana/grafana:6.6.2 + imagePullPolicy: Always + resources: + limits: + memory: 3072Mi + requests: + memory: 2048Mi + env: + - name: GF_SERVER_ROOT_URL + value: https://emc-stats.elev8.at/grafana + - name: GF_SECURITY_ADMIN_PASSWORD + value: secret + - name: GF_ANALYTICS_CHECK_FOR_UPDATES + value: "false" + - name: GF_SECURITY_DISABLE_GRAVATAR + value: "true" + - name: GF_USERS_ALLOW_SIGN_UP + value: "false" + - name: GF_USERS_ALLOW_ORG_CREATE + value: "false" + volumeMounts: + - name: grafana-data + mountPath: /var/lib/grafana + subPath: lib + - name: grafana-data + mountPath: /var/log/grafana + subPath: log + volumes: + - name: grafana-data + hostPath: + type: DirectoryOrCreate + path: /srv/stats/grafana |