Show / Hide Table of Contents

Class HostPathVolume

A Kubernetes HostPath volume.

Inheritance
object
EksVolume
HostPathVolume
Inherited Members
EksVolume.EmptyDir(IEmptyDirVolumeOptions)
EksVolume.HostPath(IHostPathVolumeOptions)
EksVolume.Secret(ISecretPathVolumeOptions)
EksVolume.Name
EksVolume.ContainerPath
EksVolume.Readonly
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 true if x is a HostPathVolume, false otherwise.

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

string

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

bool

Remarks

See: https://kubernetes.io/docs/concepts/storage/volumes/#hostpath

ExampleMetadata: fixture=_generated

Back to top Generated by DocFX