github.com/argoproj/argo-cd@v1.8.7/resource_customizations/apps/StatefulSet/actions/testdata/statefulset-restarted.yaml (about)

     1  apiVersion: apps/v1
     2  kind: StatefulSet
     3  metadata:
     4    creationTimestamp: "2019-09-13T08:52:54Z"
     5    generation: 2
     6    labels:
     7      app.kubernetes.io/instance: extensions
     8    name: statefulset
     9    namespace: statefulset
    10    resourceVersion: "7471813"
    11    selfLink: /apis/apps/v1/namespaces/statefulset/statefulsets/statefulset
    12    uid: dfe8fadf-d603-11e9-9e69-42010aa8005f
    13  spec:
    14    podManagementPolicy: OrderedReady
    15    replicas: 3
    16    revisionHistoryLimit: 10
    17    selector:
    18      matchLabels:
    19        app: statefulset
    20    serviceName: statefulset
    21    template:
    22      metadata:
    23        labels:
    24          app: statefulset
    25        annotations:
    26          kubectl.kubernetes.io/restartedAt: "0001-01-01T00:00:00Z"
    27      spec:
    28        containers:
    29        - image: k8s.gcr.io/nginx-slim:0.8
    30          imagePullPolicy: IfNotPresent
    31          name: nginx
    32          resources: {}
    33          terminationMessagePath: /dev/termination-log
    34          terminationMessagePolicy: File
    35        dnsPolicy: ClusterFirst
    36        restartPolicy: Always
    37        schedulerName: default-scheduler
    38        securityContext: {}
    39        terminationGracePeriodSeconds: 30
    40    updateStrategy:
    41      rollingUpdate:
    42        partition: 0
    43      type: RollingUpdate
    44  status:
    45    collisionCount: 0
    46    currentReplicas: 3
    47    currentRevision: statefulset-85b7f767c6
    48    observedGeneration: 2
    49    readyReplicas: 3
    50    replicas: 3
    51    updateRevision: statefulset-85b7f767c6
    52    updatedReplicas: 3