kubernetes-handbook/manifests/istio/grafana.yaml

51 lines
1.0 KiB
YAML
Raw Normal View History

2017-06-01 20:18:05 +08:00
---
apiVersion: v1
kind: Service
metadata:
name: grafana
spec:
ports:
- port: 3000
protocol: TCP
name: grafana
selector:
app: grafana
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: grafana
spec:
replicas: 1
template:
metadata:
annotations:
alpha.istio.io/sidecar: ignore
labels:
app: grafana
spec:
containers:
- name: grafana
2018-05-04 19:53:39 +08:00
image: harbor-001.jimmysong.io/library/grafana:0.1.5
2017-06-01 20:18:05 +08:00
imagePullPolicy: Always
ports:
- containerPort: 3000
env:
- name: GRAFANA_PORT
value: "3000"
- name: GF_AUTH_BASIC_ENABLED
value: "false"
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "true"
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
value: Admin
- name: GF_PATHS_DATA
value: /data/grafana
volumeMounts:
- mountPath: /data/grafana
name: grafana-data
volumes:
- name: grafana-data
emptyDir: {}
---