1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/storage-persistent-storage-efs-configmap.adoc
2025-08-12 09:20:08 +00:00

43 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// storage/persistent_storage/persistent-storage-efs.adoc
:_mod-docs-content-type: PROCEDURE
[id="efs-creating-configmap_{context}"]
= Store the EFS variables in a config map
It is recommended to use a config map to contain all the environment
variables that are required for the EFS provisioner.
.Procedure
. Define an {product-title} `ConfigMap` object that contains the environment
variables by creating a `configmap.yaml` file that contains following contents:
+
[source,yaml]
----
apiVersion: v1
kind: ConfigMap
metadata:
name: efs-provisioner
data:
file.system.id: <file-system-id> <1>
aws.region: <aws-region> <2>
provisioner.name: openshift.org/aws-efs <3>
dns.name: "" <4>
----
<1> Defines the Amazon Web Services (AWS) EFS file system ID.
<2> The AWS region of the EFS file system, such as `us-east-1`.
<3> The name of the provisioner for the associated storage class.
<4> An optional argument that specifies the new DNS name where the EFS volume
is located. If no DNS name is provided, the provisioner will search for the
EFS volume at `<file-system-id>.efs.<aws-region>.amazonaws.com`.
. After the file has been configured, create it in your cluster
by running the following command:
+
[source,terminal]
----
$ oc create -f configmap.yaml -n <namespace>
----