deployment-dev.yaml 1.8 KB

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