AWS-Logo_White-Color
1.
Introduction
2.
Preparation
2.1
Preparing VPC and EC2
2.1.1
Create VPC
2.1.2
Create Public Subnet
2.1.3
Create Private Subnet
2.1.4
Create security groups
2.1.5
Create Public instance
2.1.6
Configure EC2 bastion host
2.2
Create IAM Role
2.2.1
Create EKS Cluster role
2.2.2
Create NodeGroups role
3.
Create EKS Cluster
3.1.
Create EKS cluster
3.2.
Create Node groups
3.3.
Configure the EKS cluster
4.
Create EFS
4.1
Create EFS CSI driver role
4.2
Create EFS
4.3
Configure EFS CSI driver
4.4
Configure NodeGroup role
5.
Install ALB Controller
6.
Wordpress deployment
7.
Cleanup
7.1
Cleanup Wordpress deployments
7.2
Cleanup EKS cluster
7.3
Cleanup EFS
7.4
Cleanup EC2 linux instance
7.5
Cleanup VPC
7.6
Cleanup IAM
More
AWS Study Group
English
Tiếng Việt
Clear History
Workshop
Cloud Journey
Last Updated
01-10-2024
Team
Trung Châu
Gia Hưng
Thanh Hiệp
Edit this page
Wordpress deployment on EKS
>
Preparation
>
Preparing VPC and EC2
> Create Private Subnet
Create Private Subnet
Create Private Subnet
Click
Subnets
.
Click
Create subnet
.
At the
Create subnet
page.
In the
VPC ID
section, click
labVPC01
.
Click on
Add new subnet
.
At the
Subnet 1 of 1
section.
In the
Subnet name
field, enter
labPrivateSubnet01
.
In the
Availability Zone
section, select the
US EAST (N. Virginia) / us-east-1a
.
In the field
IPv4 CIDR block
enter
10.0.11.0/24
.
Click
Add new subnet
.
At the
Subnet 2 of 2
section.
In the
Subnet name
field, enter
labPrivateSubnet02
.
In the
Availability Zone
section, select the
US EAST (N. Virginia) / us-east-1b
.
In the field
IPv4 CIDR block
enter
10.0.12.0/24
.
Click
Create subnet
.
At the
VPC dashboard
.
Click
NAT gateways
.
Click
Create NAT gateway
button.
At the
Create NAT gateway
page.
Enter
labNATGW01
value at
Name
field.
Choose
labPublicSubnet01
subnet.
Choose
Public
Connectivity type.
Click
Allocate Elastic IP
at
Elastic IP allocation ID
field.
Click
Create NAT gateway
.
At the
VPC dashboard
.
Click
Route tables
.
Click
Create route table
button.
At the
Create route table
page.
Enter
labPrivateRT01
at
Name
field.
Choose
labVPC01
at
VPC
field.
Click
Create route table
.
At the
labPrivateRT01
page.
Choose
Subnets associations
tab.
Click
Edit subnets associations
.
At the
Edit subnet associations
page.
Choose
labPrivateSubnet01
and
labPrivateSubnet02
.
Click
Save associations
.
At the
labPrivateRT01
page.
Choose
Routes
tab.
Click
Edit routes
.
At the
Edit routes
page.
Click
Add route
.
Choose
0.0.0.0/0
at
Destination
field.
Choose
NAT gateway
and click on the
NAT gateway
created before.
Click
Save changes
.
The next step is to create the necessary security groups for the lab.