1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2024-12-30 08:50:20 +00:00
ceph-csi/examples/cephfs/deployment.yaml

29 lines
577 B
YAML
Raw Normal View History

---
2018-07-18 14:49:15 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: csi-cephfs-demo-depl
2018-07-18 14:49:15 +00:00
labels:
app: web-server
spec:
replicas: 1
selector:
matchLabels:
app: web-server
template:
metadata:
labels:
app: web-server
spec:
containers:
- name: web-server
image: docker.io/library/nginx:latest
volumeMounts:
- name: mypvc
mountPath: /var/lib/www/html
2018-07-18 14:49:15 +00:00
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: csi-cephfs-pvc
readOnly: false