grafana.deployment.yaml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. deployment.kubernetes.io/revision: '4'
  6. labels:
  7. k8s-app: grafana
  8. task: monitoring
  9. name: grafana
  10. namespace: power-monitoring
  11. spec:
  12. progressDeadlineSeconds: 600
  13. replicas: 1
  14. revisionHistoryLimit: 10
  15. selector:
  16. matchLabels:
  17. k8s-app: grafana
  18. task: monitoring
  19. strategy:
  20. rollingUpdate:
  21. maxSurge: 1
  22. maxUnavailable: 1
  23. type: RollingUpdate
  24. template:
  25. metadata:
  26. creationTimestamp: null
  27. labels:
  28. k8s-app: grafana
  29. task: monitoring
  30. spec:
  31. containers:
  32. - env:
  33. - name: INFLUXDB_HOST
  34. value: influxdb
  35. - name: GF_SERVER_HTTP_PORT
  36. value: '3000'
  37. - name: GF_AUTH_BASIC_ENABLED
  38. value: 'false'
  39. - name: GF_AUTH_ANONYMOUS_ENABLED
  40. value: 'true'
  41. - name: GF_AUTH_ANONYMOUS_ORG_ROLE
  42. value: Viewer
  43. - name: GF_SERVER_ROOT_URL
  44. value: /
  45. image: k8s.gcr.io/heapster-grafana-amd64:v4.4.3
  46. imagePullPolicy: IfNotPresent
  47. name: grafana
  48. ports:
  49. - containerPort: 3000
  50. protocol: TCP
  51. resources: {}
  52. terminationMessagePath: /dev/termination-log
  53. terminationMessagePolicy: File
  54. volumeMounts:
  55. - mountPath: /etc/ssl/certs
  56. name: ca-certificates
  57. readOnly: true
  58. - mountPath: /var
  59. name: grafana-storage
  60. dnsPolicy: ClusterFirst
  61. restartPolicy: Always
  62. schedulerName: default-scheduler
  63. securityContext: {}
  64. terminationGracePeriodSeconds: 30
  65. volumes:
  66. - hostPath:
  67. path: /etc/ssl/certs
  68. type: ''
  69. name: ca-certificates
  70. - name: grafana-storage
  71. persistentVolumeClaim:
  72. claimName: grafana-data