Products | Versions |
---|---|
TIBCO ModelOps | 1.2 and following |
Can I use a hostPath in the ModelOps file system for file-based Source and Sink Channels?
kubectl apply -f - <<! apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume-source labels: type: local usage: task-pv-volume-source annotations: description: "file-datasource-local" spec: capacity: storage: 10Gi accessModes: - ReadWriteMany hostPath: path: "/tmp/source" !
kubectl apply -f - <<! apiVersion: v1 kind: PersistentVolumeClaim metadata: name: task-pv-claim namespace: datachannels annotations: description: "file-datasource-local" volume.beta.kubernetes.io/storage-class: "" spec: accessModes: - ReadWriteMany resources: requests: storage: 10Gi selector: matchLabels: usage: task-pv-volume-source !
kubectl apply -f - <<! apiVersion: v1 kind: PersistentVolume metadata: name: task-pv-volume-sink labels: type: local usage: task-pv-volume-sink annotations: description: "file-datasink-local" spec: capacity: storage: 10Gi accessModes: - ReadWriteMany hostPath: path: "/tmp/sink" !
kubectl apply -f - <<! apiVersion: v1 kind: PersistentVolumeClaim metadata: name: task-pv-claim-sink namespace: datachannels annotations: description: "file-datasink-local" volume.beta.kubernetes.io/storage-class: "" spec: accessModes: - ReadWriteMany resources: requests: storage: 10Gi selector: matchLabels: usage: task-pv-volume-sink !
chmod 777 /tmp/sink