Deploying WordPress in Amazon EKS with RDS in Backend

Deploying WordPress in Amazon EKS with RDS in Backend

ARTH-TASK-23

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database.

Let's begin with configuring EKS cluster

No alt text provided for this image

select the appropriate Cluster Service Role or create a new one

No alt text provided for this image

the endpoint should be public so that we can access the site.

No alt text provided for this image

Create the cluster and wait till it becomes active. Now we need to add a Node group to this cluster, where the pods will be launched

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

In the Node IAM role this policy have to be attached ->

AmazonEKSWorkerNodePolicy

AmazonEC2ContainerRegistryReadOnly

AmazonEKS_CNI_Policy

No alt text provided for this image

select the instance type as needed

No alt text provided for this image

select the minimum and max nodes to be present in case the load keeps varying

No alt text provided for this image

wait for the node-group to get ready

No alt text provided for this image

now connect to the cluster by ->

aws eks --region <region-code> update-kubeconfig --name <cluster-name>

It is necessary to be using the aws commands with same user that created the cluster.

No alt text provided for this image

Let's create a deployment with the wordpress image ->

kubectl create deployment <name> --image=<image-name> 

No alt text provided for this image

Let's scale the deployment to 2 replicas ->

kubectl scale deployment <name> --replicas=<number>
No alt text provided for this image

Now we see two pods running

No alt text provided for this image

Expose port no. 80 so that client and the database can connect to pod

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

CREATING THE DATABASE WITH AWS RDS

Let's use MySQL database

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

Wait till the database is Available

connect to mysql server and create the database on it

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

Now open the wordpress webui and enter the details as required, when everything is correct then this page will appear

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

After successful login this page appears, now we can use WordPress!

Harold Achiando

Smart Contract Developer @ Strategies Optimales | Cloud Computing

2 年

Amazing work!

回复
Adarsh Kumar

Cloud Technical Solutions Engineer @ Google

3 年

Great Work Yash Indane ?? ??

要查看或添加评论,请登录

Yash Indane的更多文章

  • Use of K-mean clustering in security domain

    Use of K-mean clustering in security domain

    Summer Task-10 & ARTH Task 42 Github -> What is K-means Clustering? K-means clustering is one of the simplest and…

  • OSPF Routing Protocol using Dijkastra Algorithm

    OSPF Routing Protocol using Dijkastra Algorithm

    What is OSPF? The OSPF (Open Shortest Path First) protocol is one of a family of IP Routing protocols, and is an…

  • Using Face Recognition for automation

    Using Face Recognition for automation

    SUMMER-TASK-6 (Team Task) and ARTH TASK 38 GitHub -> In this article I will explain how we can use Face Recognition and…

    3 条评论
  • JavaScript use cases in Industry

    JavaScript use cases in Industry

    Summer Task 7.2 What is JavaScript? JavaScript, often abbreviated as JS, is a programming language that conforms to the…

    1 条评论
  • Use of confusion matrix in detecting cyber crime

    Use of confusion matrix in detecting cyber crime

    Summer 2021 Task 05 ??????? Particularly in the last decade, Internet usage has been growing rapidly. However, as the…

  • Running Chrome in Docker container

    Running Chrome in Docker container

    Summer - Task 02 ??????? By default containers don't support GUI, but by some way we can achieve that, let's discuss…

    3 条评论
  • Training a ML model inside a container

    Training a ML model inside a container

    Task 01 ??????? Task Description ?? ?? Pull the Docker container image of CentOS image from DockerHub and create a new…

    4 条评论
  • How industry uses MongoDB

    How industry uses MongoDB

    ARTH-TASK-32 What is MongoDB? MongoDB is a source-available cross-platform document-oriented database program…

  • Creating a Multicloud Setup of Kubernetes using Ansible Roles

    Creating a Multicloud Setup of Kubernetes using Ansible Roles

    TASK 28 Task Description ?? ?? CREATE A MULTI-CLOUD SETUP of K8S cluster: ?? Lunch node in AWS ?? Lunch node in Azure…

    2 条评论
  • Helm and Charts in Kubernetes

    Helm and Charts in Kubernetes

    ARTH TASK 24 What are Charts ? A chart is a collection of files that describe a related set of Kubernetes resources. A…

社区洞察

其他会员也浏览了