OPERATING SYSTEMSOS Linux

Kubernetes Part-4-3: How to Deploy Application with EKS, CloudFormation? Also, Logging with EFK

#ThreeTierApplication #EKS #CloudFormation #Prometheus #Grafana #AWS #DevOps #Containerization #Monitoring #InfrastructureAsCode #Docker #Kubernetes #CloudComputing #CI/CD #Microservices #CloudNative #DeploymentAutomation #SoftwareArchitecture #efk #kibana #installation

#kubernetes
Project roadmap
 Create a bastion host
 Automate the installation of the pre-requisites (AWS CLI, kubectl, and eksctl) with a shell script
 Create an EKS cluster
 Create the backend deployment with environment variables in a declarative way
 Install Helm and run MySQL
 Configure the database
 Run the backend application with the help of ConfigMap to serve the environment variables
 Run the deployment with the changed resource configuration
 Incorporate the liveness probe and the readiness probe
 Create a custom Helm chart for the application and run it
 Incorporate EFK for logging

#========== AWS CLI installation ==========
curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip” -o “awscliv2.zip”
unzip awscliv2.zip
sudo ./aws/install
rm -fr awscliv2.zip aws
#========= kubectl installation ==========
curl -LO “https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl” sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl rm -f kubectl
#========= eksctl installation ==========
# for ARM systems, set ARCH to: `arm64`, `armv6` or `armv7` ARCH=amd64 PLATFORM=$(uname -s)_$ARCH curl -sLO “https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz”
# (Optional) Verify checksum
curl -sL “https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_checksums.txt” | grep $PLATFORM | sha256sum –check tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz sudo mv /tmp/eksctl /usr/local/bin

chmod +x install.sh
./install.sh
aws –version
kubectl version
eksctl version
Go to IAM, add users, name eks-user, attach Administrative policy, create user
Go inside the user, select security credentials, scroll down to hit create access key,
Choose type Cli, after acknowledgement create access key
Copy access key and secret access key
Configure AWS Cli
aws configure
aws s3 ls
Create an EKS Cluster

source

by Azizul maqsud

linux foundation