-
Notifications
You must be signed in to change notification settings - Fork 0
AWS EFS file system
-
In AWS, create an EFS file system.
For more information on the steps to create an EFS file system, see Amazon EFS documentation. Specify the Kubernetes cluster Virtual Private Cloud (VPC) and Security Group while creating a mount target for the file system. On the File Systems page, verify that the mount target shows the Life Cycle State as Available. Under File system access, you see the file system DNS name. Make a note of this DNS name.
After successful creation of the EFS file system, note its File System ID, which can be used for creating EFS provisioner.
-
Create the EFS provisioner and other associated resources. Specify all the connection setup values for the EFS file system in a manifest.yaml file and run the
kubectl
command to create the EFS provisioner.-
Download the sample manifest.yaml file and edit it according to your setup.
-
In the
configmap
section, specify File System ID of the newly created EFS as the value of thefile.system.id:
variable and Availability Zone of the newly created EFS as the value of theaws.region:
variables. -
In the
Deployment
section, specify DNS name of the newly created EFS as the value of theserver:
variable. -
Run the
kubectl
command to apply the settings in manifest.yaml.kubectl apply -f manifest.yaml
-
Ensure that the EFS provisioner pod is in the running state using the
kubectl
command.kubectl get pods
-
- For RMS continue to setp 4
-
As RMS is running in a Docker container, separate external storage must be set up for required files and artifacts. For this, create EFS based
PersistentVolumeClaim
(PVC) using the configuration files (YAML format).The sample YAML file
berms-efs-persistent-volume-claims.yaml
for creating storage class and PVCs is located at BE_HOME\cloud\kubernetes\AWS\rms. Theberms-efs-persistent-volume-claims.yaml
file set up the following PVC:PVC Name Description efs-webstudio
Set up the PVC for storing TIBCO BusinessEvents project files. efs-security Set up the PVC for storing TIBCO BusinessEvents project ACL files, such as, CreditCardApplication.ac
.efs-shared
Set up the PVC for storing RMS artifacts after hot deployment, such as, rule template instances. efs-notify
Set up the PVC for storing Email notification files, such as, message.stg
.For more information about the Kubernetes object spec files, see Kubernetes documentation.
-
Run the
create
command ofkubectl
utility using the YAML files to create PVCs on the EFS file system.For example, create PVCs using the sample files:
kubectl create -f berms-efs-persistent-volume-claims.yaml
-
Mount the EFS file system into the Kubernetes EC2 instance nodes.
For more information on how to mount EFS file system on EC2 instance, refer AWS Documentation.
After successful mounting, PVCs on EFS are available for uploading files.
Next Topic: Continue to RMS Deployments