deployment.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: kafka2rmq
  5. namespace: data
  6. labels:
  7. app.kubernetes.io/name: kafka2rmq
  8. spec:
  9. selector:
  10. matchLabels:
  11. app.kubernetes.io/name: kafka2rmq
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. app.kubernetes.io/name: kafka2rmq
  17. spec:
  18. containers:
  19. - name: kafka2rmq
  20. image: reg.cestong.com.cn/cecf/kafka2rmq:latest
  21. imagePullPolicy: Always
  22. resources:
  23. limits:
  24. cpu: "2"
  25. memory: "4Gi"
  26. requests:
  27. cpu: "1"
  28. memory: "2Gi"
  29. securityContext:
  30. allowPrivilegeEscalation: false
  31. env:
  32. - name: TZ
  33. value: "Asia/Shanghai"
  34. - name: K2R_AK
  35. value: ak123
  36. - name: K2R_SK
  37. value: sk123
  38. - name: K2R_RMQ_NS
  39. value: http://sab.def.com:9876
  40. - name: K2R_KBS
  41. value: kafka-headless.observe.svc.cluster.local:9092
  42. - name: K2R_KT
  43. value: i6000send