openfalcon-dashboard.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: open-falcon-dashboard
  5. labels:
  6. app: monitor
  7. spec:
  8. type: NodePort
  9. ports:
  10. - name: web
  11. port: 8081
  12. selector:
  13. name: open-falcon-dashboard
  14. ---
  15. apiVersion: extensions/v1beta1
  16. kind: Deployment
  17. metadata:
  18. name: open-falcon-dashboard
  19. labels:
  20. app: monitor
  21. spec:
  22. replicas: 1
  23. template:
  24. metadata:
  25. labels:
  26. name: open-falcon-dashboard
  27. spec:
  28. containers:
  29. - name: open-falcon-dashboard
  30. image: openfalcon/falcon-dashboard:v0.2.1
  31. command: ["sh","-c","cd /open-falcon/dashboard && ./control startfg"]
  32. imagePullPolicy: IfNotPresent
  33. ports:
  34. - containerPort: 8081
  35. env:
  36. - name: API_ADDR
  37. value: http://open-falcon:8080/api/v1
  38. - name: PORTAL_DB_HOST
  39. value: mysql
  40. - name: PORTAL_DB_PORT
  41. value: "3306"
  42. - name: PORTAL_DB_USER
  43. value: root
  44. - name: PORTAL_DB_PASS
  45. value: 1qazxsw2
  46. - name: PORTAL_DB_NAME
  47. value: falcon_portal
  48. - name: ALARM_DB_HOST
  49. value: mysql
  50. - name: ALARM_DB_PORT
  51. value: "3306"
  52. - name: ALARM_DB_USER
  53. value: root
  54. - name: ALARM_DB_PASS
  55. value: 1qazxsw2
  56. - name: ALARM_DB_NAME
  57. value: alarms