mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-24 07:10:20 +00:00
1f18e876f0
Docker Hub offers a way to pull official images without any project prefix, like "docker.io/vault:latest". This does a redirect to the images located under "docker.io/library". By using the full qualified image name, a redirect gets removed while pulling the images. This reduces the likelyhood of hittin Docker Hub pull rate-limits. Signed-off-by: Niels de Vos <ndevos@redhat.com>
29 lines
577 B
YAML
29 lines
577 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/library/nginx:latest
|
|
volumeMounts:
|
|
- name: mypvc
|
|
mountPath: /var/lib/www/html
|
|
volumes:
|
|
- name: mypvc
|
|
persistentVolumeClaim:
|
|
claimName: csi-cephfs-pvc
|
|
readOnly: false
|