Skip to main content
Version: v3.9.0

VolumeMount fields

Reference for kind: VolumeMount. Deploy, attach, and the Volume split are on Volume mounts.

Deploy
apiVersion: datasance.com/v3 # required, string
kind: VolumeMount # required, string
metadata:
name: app-config # required, string
namespace: my-ecn # no, string
spec:
configMapName: app-settings # one of, string. Keep configMapName or secretName
secretName: postgres-creds # one of, string. Keep configMapName or secretName

Not deployed​

These fields come back from describe. Leave them out of the file you pass to deploy.

uuid: "<uuid>" # describe only
version: "<version>" # describe only

Describe can add read-only uuid and version.

Fields​

FieldRequiredDescription
configMapNameOne ofConfigMap metadata.name in the same namespace.
secretNameOne ofSecret metadata.name in the same namespace.

Set exactly one. The CLI does not reject both. The Controller should reject an invalid combination.

Deploy​

StateAction
AbsentCreate.
PresentUpdate the backing name.

Linking​

On microservice create or update, an entry with type: volumeMount and hostDestination equal to this metadata.name links the mount to spec.agent. That link does not need a separate attach volume-mount for that node.

CommandSyntax
Attachattach volume-mount NAME AGENT [AGENT…]
Detachdetach volume-mount NAME AGENT [AGENT…]

Use attach to pre-provision a node, or to link a node that has no microservice pointing at the mount.

Microservice mapping​

FieldValue
typevolumeMount
hostDestinationVolumeMount metadata.name
containerDestinationPath inside the container
accessModero or rw
Group 3See anything wrong with the document? Help us improve it!