deployment.yaml 1.7 KB

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