VolumeArgs

data class VolumeArgs(val awsElasticBlockStore: Output<AWSElasticBlockStoreVolumeSourceArgs>? = null, val azureDisk: Output<AzureDiskVolumeSourceArgs>? = null, val azureFile: Output<AzureFileVolumeSourceArgs>? = null, val cephfs: Output<CephFSVolumeSourceArgs>? = null, val cinder: Output<CinderVolumeSourceArgs>? = null, val configMap: Output<ConfigMapVolumeSourceArgs>? = null, val csi: Output<CSIVolumeSourceArgs>? = null, val downwardAPI: Output<DownwardAPIVolumeSourceArgs>? = null, val emptyDir: Output<EmptyDirVolumeSourceArgs>? = null, val ephemeral: Output<EphemeralVolumeSourceArgs>? = null, val fc: Output<FCVolumeSourceArgs>? = null, val flexVolume: Output<FlexVolumeSourceArgs>? = null, val flocker: Output<FlockerVolumeSourceArgs>? = null, val gcePersistentDisk: Output<GCEPersistentDiskVolumeSourceArgs>? = null, val gitRepo: Output<GitRepoVolumeSourceArgs>? = null, val glusterfs: Output<GlusterfsVolumeSourceArgs>? = null, val hostPath: Output<HostPathVolumeSourceArgs>? = null, val iscsi: Output<ISCSIVolumeSourceArgs>? = null, val name: Output<String>, val nfs: Output<NFSVolumeSourceArgs>? = null, val persistentVolumeClaim: Output<PersistentVolumeClaimVolumeSourceArgs>? = null, val photonPersistentDisk: Output<PhotonPersistentDiskVolumeSourceArgs>? = null, val portworxVolume: Output<PortworxVolumeSourceArgs>? = null, val projected: Output<ProjectedVolumeSourceArgs>? = null, val quobyte: Output<QuobyteVolumeSourceArgs>? = null, val rbd: Output<RBDVolumeSourceArgs>? = null, val scaleIO: Output<ScaleIOVolumeSourceArgs>? = null, val secret: Output<SecretVolumeSourceArgs>? = null, val storageos: Output<StorageOSVolumeSourceArgs>? = null, val vsphereVolume: Output<VsphereVirtualDiskVolumeSourceArgs>? = null) : ConvertibleToJava<VolumeArgs>

Volume represents a named volume in a pod that may be accessed by any container in the pod.

Constructors

Link copied to clipboard
constructor(awsElasticBlockStore: Output<AWSElasticBlockStoreVolumeSourceArgs>? = null, azureDisk: Output<AzureDiskVolumeSourceArgs>? = null, azureFile: Output<AzureFileVolumeSourceArgs>? = null, cephfs: Output<CephFSVolumeSourceArgs>? = null, cinder: Output<CinderVolumeSourceArgs>? = null, configMap: Output<ConfigMapVolumeSourceArgs>? = null, csi: Output<CSIVolumeSourceArgs>? = null, downwardAPI: Output<DownwardAPIVolumeSourceArgs>? = null, emptyDir: Output<EmptyDirVolumeSourceArgs>? = null, ephemeral: Output<EphemeralVolumeSourceArgs>? = null, fc: Output<FCVolumeSourceArgs>? = null, flexVolume: Output<FlexVolumeSourceArgs>? = null, flocker: Output<FlockerVolumeSourceArgs>? = null, gcePersistentDisk: Output<GCEPersistentDiskVolumeSourceArgs>? = null, gitRepo: Output<GitRepoVolumeSourceArgs>? = null, glusterfs: Output<GlusterfsVolumeSourceArgs>? = null, hostPath: Output<HostPathVolumeSourceArgs>? = null, iscsi: Output<ISCSIVolumeSourceArgs>? = null, name: Output<String>, nfs: Output<NFSVolumeSourceArgs>? = null, persistentVolumeClaim: Output<PersistentVolumeClaimVolumeSourceArgs>? = null, photonPersistentDisk: Output<PhotonPersistentDiskVolumeSourceArgs>? = null, portworxVolume: Output<PortworxVolumeSourceArgs>? = null, projected: Output<ProjectedVolumeSourceArgs>? = null, quobyte: Output<QuobyteVolumeSourceArgs>? = null, rbd: Output<RBDVolumeSourceArgs>? = null, scaleIO: Output<ScaleIOVolumeSourceArgs>? = null, secret: Output<SecretVolumeSourceArgs>? = null, storageos: Output<StorageOSVolumeSourceArgs>? = null, vsphereVolume: Output<VsphereVirtualDiskVolumeSourceArgs>? = null)

Properties

Link copied to clipboard

awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore

Link copied to clipboard

azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.

Link copied to clipboard

azureFile represents an Azure File Service mount on the host and bind mount to the pod.

Link copied to clipboard
val cephfs: Output<CephFSVolumeSourceArgs>? = null

cephFS represents a Ceph FS mount on the host that shares a pod's lifetime

Link copied to clipboard
val cinder: Output<CinderVolumeSourceArgs>? = null

cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md

Link copied to clipboard

configMap represents a configMap that should populate this volume

Link copied to clipboard
val csi: Output<CSIVolumeSourceArgs>? = null

csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).

Link copied to clipboard

downwardAPI represents downward API about the pod that should populate this volume

Link copied to clipboard
val emptyDir: Output<EmptyDirVolumeSourceArgs>? = null

emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir

Link copied to clipboard

ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed. Use this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity tracking are needed, c) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through a PersistentVolumeClaim (see EphemeralVolumeSource for more information on the connection between this volume type and PersistentVolumeClaim). Use PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod. Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information. A pod can use both types of ephemeral volumes and persistent volumes at the same time.

Link copied to clipboard
val fc: Output<FCVolumeSourceArgs>? = null

fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.

Link copied to clipboard
val flexVolume: Output<FlexVolumeSourceArgs>? = null

flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.

Link copied to clipboard
val flocker: Output<FlockerVolumeSourceArgs>? = null

flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running

Link copied to clipboard

gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

Link copied to clipboard
val gitRepo: Output<GitRepoVolumeSourceArgs>? = null

gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.

Link copied to clipboard

glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md

Link copied to clipboard
val hostPath: Output<HostPathVolumeSourceArgs>? = null

hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath

Link copied to clipboard
val iscsi: Output<ISCSIVolumeSourceArgs>? = null

iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md

Link copied to clipboard
val name: Output<String>

name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Link copied to clipboard
val nfs: Output<NFSVolumeSourceArgs>? = null

nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs

Link copied to clipboard

persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims

Link copied to clipboard

photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine

Link copied to clipboard

portworxVolume represents a portworx volume attached and mounted on kubelets host machine

Link copied to clipboard

projected items for all in one resources secrets, configmaps, and downward API

Link copied to clipboard
val quobyte: Output<QuobyteVolumeSourceArgs>? = null

quobyte represents a Quobyte mount on the host that shares a pod's lifetime

Link copied to clipboard
val rbd: Output<RBDVolumeSourceArgs>? = null

rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md

Link copied to clipboard
val scaleIO: Output<ScaleIOVolumeSourceArgs>? = null

scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.

Link copied to clipboard
val secret: Output<SecretVolumeSourceArgs>? = null

secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret

Link copied to clipboard

storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.

Link copied to clipboard

vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine

Functions

Link copied to clipboard
open override fun toJava(): VolumeArgs