You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
401 B
YAML
20 lines
401 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: nginx-deployment
|
|
labels:
|
|
app_name: persistantvolumes
|
|
app_kind: webserver
|
|
spec:
|
|
containers:
|
|
- image: nginx:1.17.9-alpine
|
|
name: nginx
|
|
volumeMounts:
|
|
- mountPath: /usr/share/nginx/html
|
|
name: flavien-pv
|
|
readOnly: true
|
|
volumes:
|
|
- name: flavien-pv
|
|
persistentVolumeClaim:
|
|
claimName: flavien-pvc
|
|
readOnly: true |