SecretPathVolumeOptions Struct
Options for a Kubernetes SecretPath Volume.
Example
ts
declare const jobDefn: batch.EksJobDefinition;
jobDefn.container.addVolume(batch.EksVolume.emptyDir({
name: 'emptyDir',
mountPath: '/Volumes/emptyDir',
}));
jobDefn.container.addVolume(batch.EksVolume.hostPath({
name: 'hostPath',
hostPath: '/sys',
mountPath: '/Volumes/hostPath',
}));
jobDefn.container.addVolume(batch.EksVolume.secret({
name: 'secret',
optional: true,
mountPath: '/Volumes/secret',
secretName: 'mySecret',
}));
Properties
mountPathstringmount_pathstrmountPathStringMountPathstringMountPath*string= the volume is not mounted#The path on the container where the volume is mounted.
The name of this volume.
The name must be a valid DNS subdomain name.
Specifies whether the secret or the secret's keys must be defined.
If specified, the container has readonly access to the volume.
Otherwise, the container has read/write access.
The name of the secret.
Must be a valid DNS subdomain name.