gke-deploy/core/resource/testing/statefulset-unready.yaml (58 lines of code) (raw):
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apps/v1","kind":"StatefulSet","metadata":{"annotations":{},"labels":{"app":"test-app"},"name":"test-app-statefulset","namespace":"default"},"spec":{"replicas":2,"selector":{"matchLabels":{"app":"test-app"}},"serviceName":"test-app-statefulset-service","template":{"metadata":{"labels":{"app":"test-app"}},"spec":{"containers":[{"image":"gcr.io/cbd-test/test-app:latest","name":"test-app","ports":[{"containerPort":80,"name":"web"}]}]}}}}
creationTimestamp: 2019-06-10T14:33:23Z
generation: 4
labels:
app: test-app
name: test-app-statefulset
namespace: default
resourceVersion: "5158920"
selfLink: /apis/apps/v1/namespaces/default/statefulsets/test-app-statefulset
uid: b3a3ce0c-8b8c-11e9-8840-42010a8e00dc
spec:
podManagementPolicy: OrderedReady
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
app: test-app
serviceName: test-app-statefulset-service
template:
metadata:
creationTimestamp: null
labels:
app: test-app
spec:
containers:
- image: gcr.io/cbd-test/test-app:latest
imagePullPolicy: Always
name: test-app
ports:
- containerPort: 80
name: web
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
status:
collisionCount: 0
currentReplicas: 2
currentRevision: test-app-statefulset-5d6686ff68
observedGeneration: 4
readyReplicas: 1
replicas: 2
updateRevision: test-app-statefulset-5d6686ff68
updatedReplicas: 2