class Pyrite::Api::Core::V1::GCEPersistentDiskVolumeSource

Overview

Represents a Persistent Disk resource in Google Compute Engine.

A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as [read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.](read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.)

Defined in:

versions/v1.14/api/core/v1/gce_persistent_disk_volume_source.cr

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

Represents a Persistent Disk resource in Google Compute Engine.

A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as [read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.](read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.)


def self.new(pull : JSON::PullParser) #

Represents a Persistent Disk resource in Google Compute Engine.

A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as [read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.](read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.)


def self.new(*, fs_type : String? = nil, partition : Int32? = nil, pd_name : String, read_only : Bool? = nil) #

Instance Method Detail

def fs_type : String? #

def fs_type=(fs_type : String?) #

def partition : Int32? #

def partition=(partition : Int32?) #

def pd_name : String #

def pd_name=(pd_name : String) #

def read_only : Bool? #

def read_only=(read_only : Bool?) #