mosquitto/deploy/pv.yaml aktualisiert
This commit is contained in:
@@ -4,7 +4,31 @@ kind: PersistentVolume
|
||||
metadata:
|
||||
annotations:
|
||||
pv.kubernetes.io/provisioned-by: nfs.csi.k8s.io
|
||||
name: mosquitto-pv
|
||||
name: mosquitto-config-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 20Mi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: nfs-csi
|
||||
mountOptions:
|
||||
- nfsvers=4.1
|
||||
csi:
|
||||
driver: nfs.csi.k8s.io
|
||||
# volumeHandle format: {nfs-server-address}#{sub-dir-name}#{share-name}
|
||||
# make sure this value is unique for every share in the cluster
|
||||
volumeHandle: nfs-server.default.svc.cluster.local/share##
|
||||
volumeAttributes:
|
||||
server: 192.168.0.40
|
||||
share: /volume1/kubernetes/mosquitto/config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
annotations:
|
||||
pv.kubernetes.io/provisioned-by: nfs.csi.k8s.io
|
||||
name: mosquitto-data-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
@@ -21,4 +45,28 @@ spec:
|
||||
volumeHandle: nfs-server.default.svc.cluster.local/share##
|
||||
volumeAttributes:
|
||||
server: 192.168.0.40
|
||||
share: /volume1/kubernetes/mosquitto
|
||||
share: /volume1/kubernetes/mosquitto/data
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
annotations:
|
||||
pv.kubernetes.io/provisioned-by: nfs.csi.k8s.io
|
||||
name: mosquitto-logs-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: nfs-csi
|
||||
mountOptions:
|
||||
- nfsvers=4.1
|
||||
csi:
|
||||
driver: nfs.csi.k8s.io
|
||||
# volumeHandle format: {nfs-server-address}#{sub-dir-name}#{share-name}
|
||||
# make sure this value is unique for every share in the cluster
|
||||
volumeHandle: nfs-server.default.svc.cluster.local/share##
|
||||
volumeAttributes:
|
||||
server: 192.168.0.40
|
||||
share: /volume1/kubernetes/mosquitto/logs
|
||||
|
||||
Reference in New Issue
Block a user