
org.cdk8s.plus23.PersistentVolumeAccessMode Maven / Gradle / Ivy
package org.cdk8s.plus23;
/**
* Access Modes.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.75.0 (build 63bb957)", date = "2023-02-21T09:46:03.650Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = org.cdk8s.plus23.$Module.class, fqn = "cdk8s-plus-23.PersistentVolumeAccessMode")
public enum PersistentVolumeAccessMode {
/**
* The volume can be mounted as read-write by a single node.
*
* ReadWriteOnce access mode still can allow multiple pods to access
* the volume when the pods are running on the same node.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
READ_WRITE_ONCE,
/**
* The volume can be mounted as read-only by many nodes.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
READ_ONLY_MANY,
/**
* The volume can be mounted as read-write by many nodes.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
READ_WRITE_MANY,
/**
* The volume can be mounted as read-write by a single Pod.
*
* Use ReadWriteOncePod access mode if you want to ensure that
* only one pod across whole cluster can read that PVC or write to it.
* This is only supported for CSI volumes and Kubernetes version 1.22+.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
READ_WRITE_ONCE_POD,
}