2019-02-07 09:59:26 +00:00
|
|
|
---
|
2018-07-18 14:49:15 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2019-05-07 14:49:45 +00:00
|
|
|
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:
|
2019-02-07 09:59:26 +00:00
|
|
|
- name: web-server
|
2020-11-23 13:29:59 +00:00
|
|
|
image: docker.io/nginx:latest
|
2019-02-07 09:59:26 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: mypvc
|
|
|
|
mountPath: /var/lib/www/html
|
2018-07-18 14:49:15 +00:00
|
|
|
volumes:
|
2019-02-07 09:59:26 +00:00
|
|
|
- name: mypvc
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: csi-cephfs-pvc
|
|
|
|
readOnly: false
|