Deploying WordPress & MySQL on EKS
What is EKS?
Amazon EKS is a managed service that makes it easy for you to run Kubernetes on AWS without needing to install, operate, and maintain your own Kubernetes control plane or nodes. Kubernetes is an open-source system for automating the deployment, scaling, and management of containerized applications.
Prerequisites :
- AWS CLI configured
- IAM user created
- eksctl and kubectl configured
Creating Cluster :
Here we create can create cluster using yml code.
Run the following command in command prompt :
eksctl create cluster -f myekscode.yml
After running the above command , we have to wait for 10-15 minutes .
After the cluster is created you can verify it by running the below command :
We can also verify in our Cloudformation dashboard .
After the cluster is successfully created , create namespace , update the kube config file and set the namespace as default . Run the following commands to achieve the above :
Installing amazon-efs-utils on each node created
Creating storage class and deployments for WordPress and MySQL
Now the cluster is created , we have to deploy WordPress and MySQL .
Mention the file system id and server that is created by you .
Create MySQL deployment :
Create WordPress deployment :
Create kustomization file
Run the below command :
Now your WordPress site is ready .
All the best
Venu Dadi amazed by your work. All the best