deployment_local.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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-service:#version_num#
  25. imagePullPolicy: Always
  26. env:
  27. - name: SPRING_PROFILES_ACTIVE
  28. valueFrom:
  29. configMapKeyRef:
  30. name: env
  31. key: spring.profiles.active
  32. # Time Zone config
  33. - name: TZ
  34. value: Asia/Shanghai
  35. - name: aliyun_logs_abi-cloud-qr-platform-service-center-log
  36. value: stdout
  37. ports:
  38. - containerPort: 8080
  39. readinessProbe:
  40. tcpSocket:
  41. port: 8080
  42. initialDelaySeconds: 15
  43. periodSeconds: 10
  44. volumeMounts:
  45. - mountPath: /app/tmp
  46. name: tmp-volume
  47. volumes:
  48. - name: tmp-volume
  49. emptyDir: { }
  50. imagePullSecrets:
  51. - name: acr-credential-27b7396c3bc51e6df6ffbf8189648a39