github.com/argoproj/argo-cd@v1.8.7/resource_customizations/extensions/Deployment/actions/testdata/deployment-restarted.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    annotations:
     5      deployment.kubernetes.io/revision: "1"
     6    creationTimestamp: "2019-09-12T01:33:53Z"
     7    generation: 1
     8    name: nginx-deploy
     9    namespace: default
    10    resourceVersion: "6897444"
    11    selfLink: /apis/apps/v1/namespaces/default/deployments/nginx-deploy
    12    uid: 61689d6d-d4fd-11e9-9e69-42010aa8005f
    13  spec:
    14    progressDeadlineSeconds: 600
    15    replicas: 3
    16    revisionHistoryLimit: 10
    17    selector:
    18      matchLabels:
    19        app: nginx
    20    strategy:
    21      rollingUpdate:
    22        maxSurge: 25%
    23        maxUnavailable: 25%
    24      type: RollingUpdate
    25    template:
    26      metadata:
    27        labels:
    28          app: nginx
    29        annotations:
    30          kubectl.kubernetes.io/restartedAt: "0001-01-01T00:00:00Z"
    31      spec:
    32        containers:
    33        - image: nginx:latest
    34          imagePullPolicy: Always
    35          name: nginx
    36          resources: {}
    37          terminationMessagePath: /dev/termination-log
    38          terminationMessagePolicy: File
    39        dnsPolicy: ClusterFirst
    40        restartPolicy: Always
    41        schedulerName: default-scheduler
    42        securityContext: {}
    43        terminationGracePeriodSeconds: 30
    44  status:
    45    availableReplicas: 2
    46    conditions:
    47    - lastTransitionTime: "2019-09-12T01:33:53Z"
    48      lastUpdateTime: "2019-09-12T01:33:53Z"
    49      message: Deployment does not have minimum availability.
    50      reason: MinimumReplicasUnavailable
    51      status: "False"
    52      type: Available
    53    - lastTransitionTime: "2019-09-12T01:33:53Z"
    54      lastUpdateTime: "2019-09-12T01:34:05Z"
    55      message: ReplicaSet "nginx-deploy-9cb4784bd" is progressing.
    56      reason: ReplicaSetUpdated
    57      status: "True"
    58      type: Progressing
    59    observedGeneration: 1
    60    readyReplicas: 2
    61    replicas: 3
    62    unavailableReplicas: 1
    63    updatedReplicas: 3