12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: abi-cloud-qr-platform-service
- labels:
- app: abi-cloud-qr-platform-service
- spec:
- replicas: 1
- strategy:
- type: RollingUpdate
- rollingUpdate:
- maxSurge: 1
- maxUnavailable: 25%
- selector:
- matchLabels:
- app: abi-cloud-qr-platform-service
- template:
- metadata:
- annotations:
- armsPilotAutoEnable: "on"
- armsPilotCreateAppName: "abi-cloud-qr-platform-#env#"
- labels:
- app: abi-cloud-qr-platform-service
- spec:
- nodeName: cn-shanghai.10.182.19.29
- tolerations:
- - key: node-role.kubernetes.io/schedule
- value: mq-platform
- effect: NoSchedule
- containers:
- - name: abi-cloud-qr-platform-service
- image: registry-vpc.cn-shanghai.aliyuncs.com/ab-inbev-apac/abi-cloud-qr-platform-service:${currentVersion}
- #image: ${image_tag}
- imagePullPolicy: Always
- resources:
- # limits:
- # cpu: 2048m
- # memory: 4096Mi
- requests:
- cpu: 2048m
- memory: 4096Mi
- env:
- - name: SPRING_PROFILES_ACTIVE
- valueFrom:
- configMapKeyRef:
- name: env
- key: spring.profiles.active
- # Time Zone config
- - name: TZ
- value: Asia/Shanghai
- - name: aliyun_logs_abi-cloud-qr-platform-service-center-log
- value: stdout
- ports:
- - containerPort: 8080
- readinessProbe:
- tcpSocket:
- port: 8080
- initialDelaySeconds: 30
- periodSeconds: 10
- volumeMounts:
- - mountPath: /app/tmp
- name: tmp-volume
- volumes:
- - name: tmp-volume
- emptyDir: { }
- imagePullSecrets:
- - name: acr-credential-27b7396c3bc51e6df6ffbf8189648a39
|