package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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 Se_linux relabeling.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?read_only:bool -> pd_name:string -> ?partition:int -> ?fs_type:string -> unit -> t
val fs_type : t -> string option

Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

val partition : t -> int option

The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

val pd_name : t -> string

Unique name of the Pd resource in Gce. Used to identify the disk in Gce. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

val read_only : t -> bool option

Read_only here will force the Read_only setting in Volume_mounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk

module Object : Object.S with type value := t
OCaml

Innovation. Community. Security.