Show / Hide Table of Contents

Class StorageClass

StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.

StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.

Inheritance
System.Object
Resource
CustomResource
KubernetesResource
StorageClass
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Kubernetes.Storage.V1Beta1
Assembly: Pulumi.Kubernetes.dll
Syntax
public class StorageClass : KubernetesResource

Constructors

View Source

StorageClass(String, StorageClassArgs, CustomResourceOptions)

Create a StorageClass resource with the given unique name, arguments, and options.

Declaration
public StorageClass(string name, StorageClassArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

StorageClassArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AllowedTopologies

Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.

Declaration
public Output<ImmutableArray<TopologySelectorTerm>> AllowedTopologies { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<TopologySelectorTerm>>
View Source

AllowVolumeExpansion

AllowVolumeExpansion shows whether the storage class allow volume expand

Declaration
public Output<bool> AllowVolumeExpansion { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

ApiVersion

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

Declaration
public Output<string> ApiVersion { get; }
Property Value
Type Description
Output<System.String>
View Source

Kind

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

Declaration
public Output<string> Kind { get; }
Property Value
Type Description
Output<System.String>
View Source

Metadata

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

Declaration
public Output<ObjectMeta> Metadata { get; }
Property Value
Type Description
Output<ObjectMeta>
View Source

MountOptions

Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.

Declaration
public Output<ImmutableArray<string>> MountOptions { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<System.String>>
View Source

Parameters

Parameters holds the parameters for the provisioner that should create volumes of this storage class.

Declaration
public Output<ImmutableDictionary<string, string>> Parameters { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>>
View Source

Provisioner

Provisioner indicates the type of the provisioner.

Declaration
public Output<string> Provisioner { get; }
Property Value
Type Description
Output<System.String>
View Source

ReclaimPolicy

Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.

Declaration
public Output<string> ReclaimPolicy { get; }
Property Value
Type Description
Output<System.String>
View Source

VolumeBindingMode

VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.

Declaration
public Output<string> VolumeBindingMode { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, CustomResourceOptions)

Get an existing StorageClass resource's state with the given name and ID.

Declaration
public static StorageClass Get(string name, Input<string> id, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
StorageClass
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.