Production ready code to deploy Joomla on AWS-EKS
$ aws eks update-kubeconfig --name mycluster
$ yum install amazon-efs-utils
$ kubectl create namespace webns
Step5: In create-efs-provisioner.yaml file, replace the FILE_SYSTEM_ID at line no. 22 and replace the nfs server at line no. 33 with the values of your EFS file system
Step6: Create the EFS Provisioner, Role and Storage Class in the webns namespace using following commands:
$ kubectl create -f create-efs-provisioner.yaml -n webns
$ kubectl create -f create-rbac.yaml -n webns
$ kubectl create -f create-storage.yaml -n webns
Step7: Run the kustomization.yaml file to setup the environment and deploy the Joomla to the EKS. Run the following command:
$ kubectl create -k .
Step8: Now our Joomla site is deployed to the EKS and can be accessed using the EXTERNAL-IP provided by joomla service.
$ kubectl get all