deployment.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: ob-event
  6. namespace: observe
  7. labels:
  8. app.kubernetes.io/name: ob-event
  9. spec:
  10. selector:
  11. matchLabels:
  12. app.kubernetes.io/name: ob-event
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app.kubernetes.io/name: ob-event
  18. spec:
  19. containers:
  20. - name: ob-event
  21. image: reg.cestong.com.cn/cecf/observe-server
  22. imagePullPolicy: Always
  23. command: ["/app/observe", "alert", "-c", "/app/settings.yml"]
  24. securityContext:
  25. allowPrivilegeEscalation: false
  26. #runAsGroup: ''
  27. env:
  28. - name: TZ
  29. value: "Asia/Shanghai"
  30. - name: "RULECHANLENGTH"
  31. value: "200"
  32. - name: "INTERVAL"
  33. value: "30"
  34. - name: "GORUNTIMES"
  35. value: "200"
  36. - name: "MAXRETRY"
  37. value: "0"
  38. volumeMounts:
  39. - name: cm-settings
  40. mountPath: /app/settings.yml
  41. subPath: settings.yaml
  42. volumes:
  43. - name: cm-settings
  44. configMap:
  45. name: ob-server-settings