2017-10-02 08:16:28 +00:00
|
|
|
kind: Deployment
|
|
|
|
apiVersion: extensions/v1beta1
|
2015-05-18 23:44:41 +00:00
|
|
|
metadata:
|
2016-08-26 10:17:00 +00:00
|
|
|
name: monitoring-influxdb-grafana-v4
|
2015-06-25 04:55:40 +00:00
|
|
|
namespace: kube-system
|
2017-10-02 08:16:28 +00:00
|
|
|
labels:
|
2015-05-18 23:44:41 +00:00
|
|
|
k8s-app: influxGrafana
|
2016-08-26 10:17:00 +00:00
|
|
|
version: v4
|
2015-02-26 18:40:08 +00:00
|
|
|
kubernetes.io/cluster-service: "true"
|
2017-02-25 00:53:12 +00:00
|
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
2017-10-02 08:16:28 +00:00
|
|
|
spec:
|
2015-02-26 18:40:08 +00:00
|
|
|
replicas: 1
|
2017-10-02 08:16:28 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: influxGrafana
|
|
|
|
version: v4
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2015-05-18 23:44:41 +00:00
|
|
|
k8s-app: influxGrafana
|
2016-08-26 10:17:00 +00:00
|
|
|
version: v4
|
2017-10-02 08:16:28 +00:00
|
|
|
annotations:
|
|
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
|
|
spec:
|
|
|
|
tolerations:
|
|
|
|
- key: node-role.kubernetes.io/master
|
|
|
|
effect: NoSchedule
|
|
|
|
- key: "CriticalAddonsOnly"
|
|
|
|
operator: "Exists"
|
|
|
|
containers:
|
|
|
|
- name: influxdb
|
2017-12-22 22:36:16 +00:00
|
|
|
image: gcr.io/google_containers/heapster-influxdb-amd64:v1.3.3
|
2015-07-01 21:39:10 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 100m
|
2016-02-25 15:12:43 +00:00
|
|
|
memory: 500Mi
|
2015-12-04 15:21:12 +00:00
|
|
|
requests:
|
|
|
|
cpu: 100m
|
2016-02-25 15:12:43 +00:00
|
|
|
memory: 500Mi
|
2017-10-02 08:16:28 +00:00
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: 8083
|
|
|
|
- name: api
|
|
|
|
containerPort: 8086
|
2015-06-29 22:30:41 +00:00
|
|
|
volumeMounts:
|
2016-08-02 21:03:37 +00:00
|
|
|
- name: influxdb-persistent-storage
|
2015-06-29 22:30:41 +00:00
|
|
|
mountPath: /data
|
2017-10-02 08:16:28 +00:00
|
|
|
- name: grafana
|
2017-12-22 22:36:16 +00:00
|
|
|
image: gcr.io/google_containers/heapster-grafana-amd64:v4.4.3
|
2015-10-09 00:01:16 +00:00
|
|
|
env:
|
2015-07-01 21:39:10 +00:00
|
|
|
resources:
|
2015-12-04 15:21:12 +00:00
|
|
|
# keep request = limit to keep this container in guaranteed class
|
2015-07-01 21:39:10 +00:00
|
|
|
limits:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
2015-12-04 15:21:12 +00:00
|
|
|
requests:
|
|
|
|
cpu: 100m
|
|
|
|
memory: 100Mi
|
2015-09-28 17:27:01 +00:00
|
|
|
env:
|
2015-10-09 00:01:16 +00:00
|
|
|
# This variable is required to setup templates in Grafana.
|
|
|
|
- name: INFLUXDB_SERVICE_URL
|
|
|
|
value: http://monitoring-influxdb:8086
|
|
|
|
# The following env variables are required to make Grafana accessible via
|
|
|
|
# the kubernetes api-server proxy. On production clusters, we recommend
|
|
|
|
# removing these env variables, setup auth for grafana, and expose the grafana
|
|
|
|
# service using a LoadBalancer or a public IP.
|
|
|
|
- name: GF_AUTH_BASIC_ENABLED
|
2015-09-28 17:27:01 +00:00
|
|
|
value: "false"
|
2015-10-09 00:01:16 +00:00
|
|
|
- name: GF_AUTH_ANONYMOUS_ENABLED
|
2015-09-28 17:27:01 +00:00
|
|
|
value: "true"
|
2015-10-09 00:01:16 +00:00
|
|
|
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
|
|
|
|
value: Admin
|
|
|
|
- name: GF_SERVER_ROOT_URL
|
|
|
|
value: /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/
|
2017-10-02 08:16:28 +00:00
|
|
|
ports:
|
|
|
|
- name: ui
|
|
|
|
containerPort: 3000
|
2015-09-28 17:27:01 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: grafana-persistent-storage
|
|
|
|
mountPath: /var
|
2015-06-29 22:30:41 +00:00
|
|
|
volumes:
|
2016-08-02 21:03:37 +00:00
|
|
|
- name: influxdb-persistent-storage
|
2016-08-04 15:08:46 +00:00
|
|
|
emptyDir: {}
|
2015-09-28 17:27:01 +00:00
|
|
|
- name: grafana-persistent-storage
|
|
|
|
emptyDir: {}
|