taide-binlog.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: taide-binlog
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. k8s-app: taide-binlog
  10. strategy:
  11. type: Recreate
  12. template:
  13. metadata:
  14. labels:
  15. k8s-app: taide-binlog
  16. spec:
  17. hostAliases:
  18. - ip: "172.16.101.16"
  19. hostnames:
  20. - "baidu06"
  21. - ip: "172.16.101.17"
  22. hostnames:
  23. - "baidu07"
  24. - ip: "172.16.101.18"
  25. hostnames:
  26. - "baidu08"
  27. - ip: "172.16.101.19"
  28. hostnames:
  29. - "baidu09"
  30. imagePullSecrets:
  31. - name: registry-key
  32. containers:
  33. - command: [ "java","-cp","/app.jar","com.cxzx.canal.CanalClientMain","canal","taide-binlog" ]
  34. env:
  35. - name: PATH
  36. value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  37. - name: TZ
  38. value: Asia/Shanghai
  39. image: { { image } }
  40. imagePullPolicy: IfNotPresent
  41. name: taide-binlog
  42. resources:
  43. limits:
  44. cpu: 100m
  45. memory: 515Mi
  46. requests:
  47. cpu: 100m
  48. memory: 50Mi
  49. dnsPolicy: ClusterFirst
  50. terminationGracePeriodSeconds: 10