deployment.yaml 1.6 KB

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