deployment-dev.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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
  22. labels:
  23. app: abi-cloud-qr-platform-service
  24. spec:
  25. tolerations:
  26. - key: node-role.kubernetes.io/schedule
  27. value: mq-platform
  28. effect: NoSchedule
  29. containers:
  30. - name: abi-cloud-qr-platform-service
  31. image: registry-vpc.cn-shanghai.aliyuncs.com/ab-inbev-apac/abi-cloud-qr-platform-service:${currentVersion}
  32. #image: ${image_tag}
  33. imagePullPolicy: Always
  34. resources:
  35. # limits:
  36. # cpu: 2048m
  37. # memory: 4096Mi
  38. requests:
  39. cpu: 2048m
  40. memory: 4096Mi
  41. env:
  42. - name: SPRING_PROFILES_ACTIVE
  43. valueFrom:
  44. configMapKeyRef:
  45. name: env
  46. key: spring.profiles.active
  47. # Time Zone config
  48. - name: TZ
  49. value: Asia/Shanghai
  50. - name: aliyun_logs_abi-cloud-qr-platform-service-center-log
  51. value: stdout
  52. ports:
  53. - containerPort: 8080
  54. readinessProbe:
  55. tcpSocket:
  56. port: 8080
  57. initialDelaySeconds: 30
  58. periodSeconds: 10
  59. volumeMounts:
  60. - mountPath: /app/tmp
  61. name: tmp-volume
  62. volumes:
  63. - name: tmp-volume
  64. emptyDir: { }
  65. imagePullSecrets:
  66. - name: acr-credential-27b7396c3bc51e6df6ffbf8189648a39