Skip to main content

KubernetesPersistentVolume

Resource KubernetesPersistentVolume in pulumi-portainer.
2 min read

Resource KubernetesPersistentVolume in pulumi-portainer.

Pulumi type: portainer:index/kubernetesPersistentVolume:KubernetesPersistentVolume.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
environmentIdnumberyesIdentifier of the Portainer Kubernetes environment the volume belongs to.
kubernetesPersistentVolumeIdstringno
namestringnoName of an existing PersistentVolume. Portainer has no API to create one, so this resource adopts a volume created by a manifest, a StorageClass provisioner or a Helm chart.
reclaimPolicystringyesReclaim policy applied to the volume: Retain, Delete or Recycle. This is the one property of a bound PersistentVolume Kubernetes allows to be changed in place.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
accessModesstring[]yesAccess modes the volume supports, such as ReadWriteOnce or ReadWriteMany.
capacitystringyesStorage capacity of the volume as a Kubernetes quantity string (for example 10Gi).
claimRefstringyesPersistentVolumeClaim bound to this volume as <namespace>/<name>, empty while the volume is unbound.
environmentIdnumbernoIdentifier of the Portainer Kubernetes environment the volume belongs to.
kubernetesPersistentVolumeIdstringno
namestringnoName of an existing PersistentVolume. Portainer has no API to create one, so this resource adopts a volume created by a manifest, a StorageClass provisioner or a Helm chart.
phasestringyesLifecycle phase of the volume: Available, Bound, Released, Failed or Pending.
reclaimPolicystringnoReclaim policy applied to the volume: Retain, Delete or Recycle. This is the one property of a bound PersistentVolume Kubernetes allows to be changed in place.
storageClassstringyesStorageClass the volume belongs to, empty for a statically provisioned volume.