deployment_local.yaml 1.5 KB

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