grafana.yaml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. apiVersion: "v1"
  2. kind: "List"
  3. items:
  4. -
  5. apiVersion: "v1"
  6. kind: "Service"
  7. metadata:
  8. labels:
  9. provider: "fabric8"
  10. component: "grafana"
  11. name: "grafana"
  12. spec:
  13. ports:
  14. -
  15. port: 80
  16. targetPort: "http"
  17. selector:
  18. provider: "fabric8"
  19. component: "grafana"
  20. -
  21. apiVersion: "v1"
  22. kind: "ReplicationController"
  23. metadata:
  24. labels:
  25. provider: "fabric8"
  26. component: "grafana"
  27. name: "grafana"
  28. spec:
  29. replicas: 1
  30. selector:
  31. provider: "fabric8"
  32. component: "grafana"
  33. template:
  34. metadata:
  35. labels:
  36. provider: "fabric8"
  37. component: "grafana"
  38. spec:
  39. containers:
  40. -
  41. env:
  42. -
  43. name: "INFLUXDB_SERVICE_NAME"
  44. value: "INFLUXDB_MONITORING"
  45. -
  46. name: "GRAFANA_DEFAULT_DASHBOARD"
  47. value: "/dashboard/file/kubernetes.json"
  48. image: "fabric8/grafana:1.9.1_2"
  49. name: "grafana"
  50. ports:
  51. -
  52. containerPort: 3000
  53. name: "http"