portainer_scripts/treafik pv.yaml

17 lines
264 B
YAML
Raw Normal View History

2021-03-29 05:45:49 +00:00
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