mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
29 lines
570 B
YAML
29 lines
570 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: gcr.io/google_containers/nginx-slim:0.7
|
|
ports:
|
|
- containerPort: 80
|
|
name: web
|
|
command:
|
|
- sh
|
|
- -c
|
|
- 'while true; do sleep 1; done'
|