deployment.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: ob-server
  6. namespace: observe
  7. labels:
  8. app.kubernetes.io/name: ob-server
  9. spec:
  10. selector:
  11. matchLabels:
  12. app.kubernetes.io/name: ob-server
  13. replicas: 1
  14. template:
  15. metadata:
  16. labels:
  17. app.kubernetes.io/name: ob-server
  18. spec:
  19. containers:
  20. - name: nginx
  21. image: reg.cestong.com.cn/cecf/observe-server
  22. imagePullPolicy: Always
  23. ports:
  24. - name: web
  25. containerPort: 8000
  26. protocol: TCP
  27. securityContext:
  28. allowPrivilegeEscalation: false
  29. #runAsGroup: ''
  30. env:
  31. - name: TZ
  32. value: "Asia/Shanghai"
  33. - name: RAIKK
  34. value: "n"
  35. - name: DRAYY
  36. value: "MjAyMzEyMzA="
  37. volumeMounts:
  38. - name: cm-settings
  39. mountPath: /app/settings.yml
  40. subPath: settings.yaml
  41. volumes:
  42. - name: cm-settings
  43. configMap:
  44. name: ob-server-settings
  45. ---
  46. apiVersion: apps/v1
  47. kind: Deployment
  48. metadata:
  49. name: ob-server-consumer-trace-url
  50. namespace: observe
  51. labels:
  52. app.kubernetes.io/name: ob-server-consumer-trace-url
  53. spec:
  54. selector:
  55. matchLabels:
  56. app.kubernetes.io/name: ob-server-consumer-trace-url
  57. replicas: 1
  58. template:
  59. metadata:
  60. labels:
  61. app.kubernetes.io/name: ob-server-consumer-trace-url
  62. spec:
  63. containers:
  64. - name: nginx
  65. image: reg.cestong.com.cn/cecf/observe-server
  66. command: ["/app/observe","consumer", "traceurl","-c", "/app/settings.yml"]
  67. imagePullPolicy: Always
  68. ports:
  69. - name: web
  70. containerPort: 8000
  71. protocol: TCP
  72. securityContext:
  73. allowPrivilegeEscalation: false
  74. #runAsGroup: ''
  75. env:
  76. - name: TZ
  77. value: "Asia/Shanghai"
  78. volumeMounts:
  79. - name: cm-settings
  80. mountPath: /app/settings.yml
  81. subPath: settings.yaml
  82. volumes:
  83. - name: cm-settings
  84. configMap:
  85. name: ob-server-settings