Class HostPathVolume
A Kubernetes HostPath volume.
Inherited Members
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class HostPathVolume : EksVolume
Syntax (vb)
Public Class HostPathVolume Inherits EksVolume
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var hostPathVolume = new HostPathVolume(new HostPathVolumeOptions {
HostPath = "hostPath",
Name = "name",
// the properties below are optional
MountPath = "mountPath",
Readonly = false
});
Synopsis
Constructors
HostPathVolume(IHostPathVolumeOptions) | A Kubernetes HostPath volume. |
Properties
Path | The path of the file or directory on the host to mount into containers on the pod. |
Methods
IsHostPathVolume(object) | returns |
Constructors
HostPathVolume(IHostPathVolumeOptions)
A Kubernetes HostPath volume.
public HostPathVolume(IHostPathVolumeOptions options)
Parameters
- options IHostPathVolumeOptions
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Batch;
var hostPathVolume = new HostPathVolume(new HostPathVolumeOptions {
HostPath = "hostPath",
Name = "name",
// the properties below are optional
MountPath = "mountPath",
Readonly = false
});
Properties
Path
The path of the file or directory on the host to mount into containers on the pod.
public virtual string Path { get; }
Property Value
Remarks
Note: HothPath Volumes present many security risks, and should be avoided when possible.
See: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
Methods
IsHostPathVolume(object)
returns true
if x
is a HostPathVolume, false
otherwise.
public static bool IsHostPathVolume(object x)
Parameters
- x object
Returns
Remarks
See: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath
ExampleMetadata: fixture=_generated