VolumeMount YAML Specification
potctl allows users to deploy and manage volumeMounts.
The VolumeMount has a very simple definition
apiVersion: datasance.com/v3
kind: VolumeMount
metadata:
name: test-vm-from-configmap
spec:
configMapName: configmap-name
apiVersion: datasance.com/v3
kind: VolumeMount
metadata:
name: test-vm-from-secret
spec:
secretName: configmap-name
| Field | Description |
|---|---|
| spec.configMapName | The name of ConfigMap that you are going to create a VolumeMount from |
| spec.secretName | The name of Secret that you are going to create a VolumeMount from |
Attach VolumeMount to Agents
potctl attach volume-mount test-vm-from-configmap agentName-1 agentName-2 agentName-3
When you attach volumeMount to Agents, each Agent will create local volume with volumeMount's secret or configMap, then you can easily attach those volumes to running microservices.
volumes:
- hostDestination: $VolumeMount/test-vm-from-configmap
containerDestination: /home/foo
accessMode: 'rw'
type: 'bind'
- hostDestination: $VolumeMount/test-vm-from-secret
containerDestination: /home/foo
accessMode: 'rw'
type: 'bind'
Detach VolumeMount from Agents
potctl detach volume-mount test-vm-from-configmap agentName-1 agentName-2 agentName-3
See anything wrong with the document? Help us improve it!