message
This commit is contained in:
parent
7d38a52b4f
commit
c045dc851a
18
pv-pod.yaml
Normal file
18
pv-pod.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
kind: Pod
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: pv-pod
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: pv-storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: pv-claim
|
||||||
|
containers:
|
||||||
|
- name: pv-container
|
||||||
|
image: nginx
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: "http-server"
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: "/usr/share/nginx/html"
|
||||||
|
name: pv-storage
|
||||||
Loading…
Reference in New Issue
Block a user