Skip to main content
Version: v3.8.0

Volume distribution

Microservices often need files on the Edgelet node before a container starts. With potctl, you push directories from your operator machine to selected nodes using the Volume kind.

This is orchestrator-driven file distribution. It is separate from:

Volume YAML

---
apiVersion: datasance.com/v3
kind: Volume
spec:
name: secret
source: /tmp/
destination: /tmp/secrets/
permissions: 666
agents:
- zebra-1
- zebra-2

Deploy:

potctl deploy -f volume.yaml

With the example above, everything under /tmp/ on your operator machine is pushed to /tmp/secrets/ on zebra-1 and zebra-2.

Use in microservices

After the Volume is deployed, reference the destination path in microservice volume mappings. See Application YAML for mount syntax.

List, describe, and delete Volumes like any other potctl resource:

potctl get volumes
potctl describe volume secret
potctl delete volume secret

See also

Group 3See anything wrong with the document? Help us improve it!