deployment-dev.yaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: abi-cloud-qr-platform-service
  5. labels:
  6. app: abi-cloud-qr-platform-service
  7. spec:
  8. replicas: 1
  9. strategy:
  10. type: RollingUpdate
  11. rollingUpdate:
  12. maxSurge: 1
  13. maxUnavailable: 25%
  14. selector:
  15. matchLabels:
  16. app: abi-cloud-qr-platform-service
  17. template:
  18. metadata:
  19. annotations:
  20. armsPilotAutoEnable: "on"
  21. armsPilotCreateAppName: "abi-cloud-qr-platform-#env#"
  22. labels:
  23. app: abi-cloud-qr-platform-service
  24. spec:
  25. nodeName: cn-shanghai.10.182.19.29
  26. tolerations:
  27. - key: node-role.kubernetes.io/schedule
  28. value: mq-platform
  29. effect: NoSchedule
  30. containers:
  31. - name: abi-cloud-qr-platform-service
  32. image: registry-vpc.cn-shanghai.aliyuncs.com/ab-inbev-apac/abi-cloud-qr-platform-service:${currentVersion}
  33. #image: ${image_tag}
  34. imagePullPolicy: Always
  35. resources:
  36. # limits:
  37. # cpu: 2048m
  38. # memory: 4096Mi
  39. requests:
  40. cpu: 2048m
  41. memory: 4096Mi
  42. env:
  43. - name: SPRING_PROFILES_ACTIVE
  44. valueFrom:
  45. configMapKeyRef:
  46. name: env
  47. key: spring.profiles.active
  48. # Time Zone config
  49. - name: TZ
  50. value: Asia/Shanghai
  51. - name: aliyun_logs_abi-cloud-qr-platform-service-center-log
  52. value: stdout
  53. ports:
  54. - containerPort: 8080
  55. readinessProbe:
  56. tcpSocket:
  57. port: 8080
  58. initialDelaySeconds: 30
  59. periodSeconds: 10
  60. volumeMounts:
  61. - mountPath: /app/tmp
  62. name: tmp-volume
  63. volumes:
  64. - name: tmp-volume
  65. emptyDir: { }
  66. imagePullSecrets:
  67. - name: acr-credential-27b7396c3bc51e6df6ffbf8189648a39