17 lines
264 B
YAML
17 lines
264 B
YAML
kubectl create -f - <<EOY
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: traefik
|
|
labels:
|
|
type: local-storage
|
|
spec:
|
|
storageClassName: local-storage
|
|
capacity:
|
|
storage: 128Mi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
hostPath:
|
|
path: "/data"
|
|
EOY
|