apiVersion: apps/v1
    kind: Deployment
    metadata:
    annotations:
    deployment.kubernetes.io/revision: ‘2’
    creationTimestamp: ‘2020-12-10T10:07:22Z’
    generation: 2
    labels:
    app: mall
    name: mall-gateway
    namespace: business
    resourceVersion: ‘2202011899’
    selfLink: /apis/apps/v1/namespaces/business/deployments/mall-gateway
    uid: 317eb0ea-2e41-4af5-b843-c6d01ee86007
    spec:
    progressDeadlineSeconds: 600
    replicas: 3
    revisionHistoryLimit: 10
    selector:
    matchLabels:
    app: mall-gateway
    strategy:
    rollingUpdate:
    maxSurge: 25%
    maxUnavailable: 25%
    type: RollingUpdate
    template:
    metadata:
    annotations:
    redeploy-timestamp: ‘1607943306967’
    labels:
    app: mall-gateway
    spec:
    containers:
    - args:
    - ‘—spring.profiles.active=${PROFILE}’
    - ‘—spring.cloud.nacos.config.server-addr=${NACOS_SERVER_ADDR}’
    - ‘—spring.cloud.nacos.discovery.server-addr=${NACOS_SERVER_ADDR}’
    env:
    - name: PROFILE
    valueFrom:
    configMapKeyRef:
    key: spring.profiles.active
    name: test-config
    - name: NACOS_SERVER_ADDR
    valueFrom:
    configMapKeyRef:
    key: spring.cloud.nacos.config.server-addr
    name: test-config
    image: >-
    registry-vpc.cn-shenzhen.aliyuncs.com/zhongka/business:mall-gateway-2.0
    imagePullPolicy: Always
    name: mall-gateway
    resources:
    limits:
    cpu: 500m
    memory: 500Mi
    requests:
    cpu: 100m
    memory: 32Mi
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    dnsPolicy: ClusterFirst
    restartPolicy: Always
    schedulerName: default-scheduler
    securityContext: {}
    terminationGracePeriodSeconds: 30
    status:
    availableReplicas: 3
    conditions:
    - lastTransitionTime: ‘2020-12-10T10:07:31Z’
    lastUpdateTime: ‘2020-12-10T10:07:31Z’
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: ‘True’
    type: Available
    - lastTransitionTime: ‘2020-12-10T10:07:22Z’
    lastUpdateTime: ‘2020-12-14T10:55:24Z’
    message: ReplicaSet “mall-gateway-6d6bc5678b” has successfully progressed.
    reason: NewReplicaSetAvailable
    status: ‘True’
    type: Progressing
    observedGeneration: 2
    readyReplicas: 3
    replicas: 3
    updatedReplicas: 3