mirror of https://github.com/k3s-io/k3s
20 lines
361 B
YAML
20 lines
361 B
YAML
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: volume-test
|
||
|
namespace: default
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: volume-test
|
||
|
image: nginx:stable-alpine
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
volumeMounts:
|
||
|
- name: volv
|
||
|
mountPath: /data
|
||
|
ports:
|
||
|
- containerPort: 80
|
||
|
volumes:
|
||
|
- name: volv
|
||
|
persistentVolumeClaim:
|
||
|
claimName: local-path-pvc
|