Resource Type: kubernetes_volume

Defined in:
lib/puppet/type/kubernetes_volume.rb
Providers:
swagger

Overview

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

Properties

  • aws_elastic_block_store

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

  • azure_disk

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

  • azure_file

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

  • cephfs

    CephFS represents a Ceph FS mount on the host that shares a pod’s lifetime

  • cinder

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

  • config_map

    ConfigMap represents a configMap that should populate this volume

  • downward_api

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

  • empty_dir

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

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • fc

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

  • flex_volume

    FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. This is an alpha feature and may change in future.

  • flocker

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

  • gce_persistent_disk

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

  • git_repo

    GitRepo represents a git repository at a particular revision.

  • glusterfs

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

  • host_path

    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: kubernetes.io/docs/concepts/storage/volumes#hostpath

  • iscsi

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

  • name (namevar)

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

  • nfs

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

  • persistent_volume_claim

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

  • photon_persistent_disk

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

  • portworx_volume

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

  • projected

    Items for all in one resources secrets, configmaps, and downward API

  • quobyte

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

  • rbd

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

  • scale_io

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

  • secret

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

  • storageos

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

  • vsphere_volume

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

Parameters

  • name

    Name of the volume.

  • provider

    The specific backend to use for this ‘kubernetes_volume` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.