ceph-csi/vendor/k8s.io/kubernetes/hack/testdata/rollingupdate-statefulset-rv2.yaml

34 lines
677 B
YAML
Raw Normal View History

2018-01-09 18:57:14 +00:00
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
2018-03-06 22:33:18 +00:00
image: k8s.gcr.io/nginx-slim:0.8
2018-01-09 18:57:14 +00:00
ports:
- containerPort: 80
name: web
command:
- sh
- -c
- 'while true; do sleep 1; done'
- name: pause
2018-03-06 22:33:18 +00:00
image: k8s.gcr.io/pause:2.0
2018-01-09 18:57:14 +00:00
ports:
- containerPort: 81
name: web-2