mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-23 13:30:23 +00:00
eaeee8ac3d
Images that have an unqualified name (no explicit registry) come from Docker Hub. This can be made explicit by adding docker.io as prefix. In addition, the default :latest tag has been added too. Signed-off-by: Niels de Vos <ndevos@redhat.com>
29 lines
569 B
YAML
29 lines
569 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: csi-cephfs-demo-depl
|
|
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/nginx:latest
|
|
volumeMounts:
|
|
- name: mypvc
|
|
mountPath: /var/lib/www/html
|
|
volumes:
|
|
- name: mypvc
|
|
persistentVolumeClaim:
|
|
claimName: csi-cephfs-pvc
|
|
readOnly: false
|