Deploying WordPress & MySQL on EKS

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.

No alt text provided for this image

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 .

No alt text provided for this image

After the cluster is created you can verify it by running the below command :

No alt text provided for this image

We can also verify in our Cloudformation dashboard .

No alt text provided for this image

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 :

No alt text provided for this image
No alt text provided for this image

Installing amazon-efs-utils on each node created

No alt text provided for this image

Creating storage class and deployments for WordPress and MySQL

Now the cluster is created , we have to deploy WordPress and MySQL .

No alt text provided for this image

Mention the file system id and server that is created by you .

No alt text provided for this image

Create MySQL deployment :

No alt text provided for this image
No alt text provided for this image

Create WordPress deployment :

No alt text provided for this image
No alt text provided for this image

Create kustomization file

No alt text provided for this image

Run the below command :

No alt text provided for this image

Now your WordPress site is ready .

No alt text provided for this image



THANK YOU

To view or add a comment, sign in

More articles by Venu Dadi

Others also viewed

Explore content categories