deployment.yaml 1.4 KB

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