deployment.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ob-server
  5. namespace: observe
  6. labels:
  7. app.kubernetes.io/name: ob-server
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: ob-server
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: ob-server
  17. spec:
  18. shareProcessNamespace: true
  19. containers:
  20. # - name: autoinstrumentation-go
  21. # image: otel/autoinstrumentation-go
  22. # imagePullPolicy: IfNotPresent
  23. # env:
  24. # - name: OTEL_GO_AUTO_TARGET_EXE
  25. # value: /app/observe
  26. # - name: OTEL_EXPORTER_OTLP_ENDPOINT
  27. # value: "http://otel-collector-opentelemetry-collector.observe.svc.cluster.local:4318"
  28. # - name: OTEL_SERVICE_NAME
  29. # value: "observe-server-service"
  30. # securityContext:
  31. # runAsUser: 0
  32. # privileged: true
  33. - name: observe-server
  34. image: reg.cestong.com.cn/cecf/observe-server
  35. imagePullPolicy: Always
  36. resources:
  37. limits:
  38. cpu: "4"
  39. memory: "8Gi"
  40. requests:
  41. cpu: "1"
  42. memory: "2048Mi"
  43. ports:
  44. - name: web
  45. containerPort: 8000
  46. protocol: TCP
  47. securityContext:
  48. allowPrivilegeEscalation: false
  49. #runAsGroup: ''
  50. env:
  51. - name: TZ
  52. value: "Asia/Shanghai"
  53. - name: RAIKK
  54. value: "n"
  55. - name: DRAYY
  56. value: "MjAyMzEyMzA="
  57. volumeMounts:
  58. - name: cm-settings
  59. mountPath: /app/settings.yml
  60. subPath: settings.yaml
  61. volumes:
  62. - name: cm-settings
  63. configMap:
  64. name: ob-server-settings