TABLE OF CONTENT
1. Introduction2. Deployment Architecture 3. Prerequisites4. Kubernetes Components Leveraged5. A brief overview of the steps involved6. Step-by-Step Guide7. Conclusion 8. CloudThat 9. FAQs1. Introduction
This blog will show you how to create a Kubernetes multinode Cluster in a Virtual Machine Instance, (EC2), and how to deploy a WordPress app on top of it.
Here, I am creating a cluster that gives me complete control over the nodes.
2. Deployment Architecture

3. Perquisites:
You will need the following to deploy a WordPress app in Kubernetes:
An AWS account
Kubeadm Tool
Calico Network plugin
Docker
4. Kubernetes Components Leveraged:
Deployment
Stateful set
Services
Secrets
Volumes
3 EC2 instances: One master node, two worker nodes
5. Here’s a quick overview of the steps involved.
Three instances launched
Setup kubeadm cluster
Joining the master and worker nodes
Installing WordPress application
6. Step-by-Step Guide
Step 1: Create three instances t3.medium running Ubuntu 20.14 in an AWS console in any location.
Step 2: Add Kubernetes security group port number and calico number

Step 3: Add one instance to the Master node.
Resting instances are worker one and worker two.
Enter the master and worker instances and run the following commands.
#REMOVE OLD DOCKER
sudo apt-get remove docker docker-engine docker.io contained runs1sudo apt-get remove docker docker-engine docker.io contained runs#INSTALL DOCKER PRE-REQUISITES
sudo aptget updatesudo apat-get install-y apttransport-https cur gnupg-lsb–release12sudoapt-get updatedudoapt-get aptget install-y apttransport-https cur gnupg-lsb–release#ADD GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgecho \ “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null1234curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpgecho \”deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \$(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null#INSTALL DOCKER ENGINE
sudo apt-get updatesudo apt-get install -y docker-ce docker-ce-cli containerd.iosudo docker run hello-worldcat <