ceph-csi/vendor/k8s.io/kubernetes/hack/testdata/rollingupdate-statefulset.yaml
Serguei Bezverkhi e9033989a0 vendor updates
2018-03-07 11:43:06 -05:00

29 lines
556 B
YAML

apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: nginx
spec:
selector:
matchLabels:
app: nginx-statefulset
updateStrategy:
type: RollingUpdate
serviceName: "nginx"
replicas: 0
template:
metadata:
labels:
app: nginx-statefulset
spec:
terminationGracePeriodSeconds: 5
containers:
- name: nginx
image: k8s.gcr.io/nginx-slim:0.7
ports:
- containerPort: 80
name: web
command:
- sh
- -c
- 'while true; do sleep 1; done'