
// Module included in the following assemblies:
//
// * rosa_architecture/rosa_policy_service_definition/rosa-service-definition.adoc
// * rosa_architecture/rosa_policy_service_definition/rosa-hcp-service-definition.adoc

ifeval::["{context}" == "rosa-hcp-service-definition"]
:rosa-with-hcp:
endif::[]

:_mod-docs-content-type: CONCEPT
[id="rosa-sdpolicy-storage_{context}"]
= Storage

This section provides information about the service definition for
ifdef::openshift-rosa-hcp[]
{hcp-title-first}
endif::openshift-rosa-hcp[]
ifndef::openshift-rosa-hcp[]
{product-title}
endif::openshift-rosa-hcp[]
storage.

[id="rosa-sdpolicy-encrytpted-at-rest-storage_{context}"]
== Encrypted-at-rest OS and node storage

ifdef::openshift-rosa-hcp[]
Worker
endif::openshift-rosa-hcp[]
ifndef::openshift-rosa-hcp[]
Control plane, infrastructure, and worker
endif::openshift-rosa-hcp[]
nodes use encrypted-at-rest Amazon Elastic Block Store (Amazon EBS) storage.

[id="rosa-sdpolicy-encrytpted-at-rest-pv_{context}"]
== Encrypted-at-rest PV
EBS volumes that are used for PVs are encrypted-at-rest by default.

[id="rosa-sdpolicy-block-storage_{context}"]
== Block storage (RWO)
Persistent volumes (PVs) are backed by Amazon Elastic Block Store (Amazon EBS), which is Read-Write-Once.

PVs can be attached only to a single node at a time and are specific to the availability zone in which they were provisioned. However, PVs can be attached to any node in the availability zone.

Each cloud provider has its own limits for how many PVs can be attached to a single node. See link:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/volume_limits.html#instance-type-volume-limits[AWS instance type limits] for details.

== Shared Storage (RWX)

The AWS CSI Driver can be used to provide RWX support for
ifdef::openshift-rosa-hcp[]
{hcp-title-first}.
endif::openshift-rosa-hcp[]
ifndef::openshift-rosa-hcp[]
{product-title}.
endif::openshift-rosa-hcp[]
A community Operator is provided to simplify setup. See link:https://access.redhat.com/articles/5025181[Amazon Elastic File Storage Setup for Red Hat OpenShift Service on AWS] for details.

ifeval::["{context}" == "rosa-hcp-service-definition"]
:!rosa-with-hcp:
endif::[]