Monday, March 3, 2025

twtech-EKS Cluster Provisioned in aws : Steps in provisioning the infra (via the command line interface...CLI), Apps deployment, Accessing the Apps by N-Users, Monitoring and Observability.

 

Double-click on the image to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

Using terraform (IaC) to provision infrastructure... while bootstrapping all the dependencies ( prerequisites)  

Double-click on the image to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

Connect (ssh) to instance  and verify that all the necessary packages that were bootstrapped.


verify

Double-click on the image to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

Provision twtech-EKS-Cluster in Cloud with command line: CLI

eksctl create cluster --name twtech-eks --region us-east-2 --nodegroup-name twtnode --node-type t3.medium --managed --nodes 2

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

The  following command should confirm that EKS cluster is up and running.

eksctl get cluster --name twtech-eks --region us-east-2

Update Kube config by entering below command:

aws eks update-kubeconfig  --name twtech-eks --region us-east-2

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

List the all nodes created:

kubectl get node

Deploy test applications with PVC,PV, and Storage-Class (MongoDB)
link:
https://github.com/Think-with-Tech/Ansible-k8s-helm/blob/main/twtech-apps-PVC-PV-SC.yaml

#!/bin/bash
# This manifest file would provision, pvc. pv, sc, twtech-springapp, twtech-webapp, and svc.

nono (vi or vim) into a file and create a manifest file:

sudo vi  app-pvc-pv-sc-svc.yaml

Provision the resources in the cluster:

kubectl apply -f  app-pvc-pv-sc-svc.yaml

List all resources provisioned in the eks default namespace:

kubectl get all

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

List all resources created in all eks namespaces:

kubectl get all -A

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

List the pvc created:

kubectl get pvc



List the pv created:

kubectl get pv

List the sc created:

kubectl get sc

Accessing the twtech-Apps on eks-cluster:

List the services:

kubectl get svc

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

Get the PubIP of the worker node:  GUI

10.191.132.394:31400


Browse the application: firewall to application restrict access. port must be opened to allow traffic access from N-users


Go to Security group (firewall)  and open just the required ports , 

for security reasons on the worker nodes:

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

Go back and refresh the application page:

twtech-spring-boot-mongo

Try to populate with data and see whether data will be saved on the twtech-db:


Accessing twtech-webpp:

10.191.158.190:31200/twtech

Resources created with the eks-cluster using:

Two CloudFormation stacks for:

twtech-eks-nodegroup(s) (EKS Managed Nodes (SSH access: false) [created by eksctl)

twtech-eks-cluster (EKS cluster (dedicated VPC: true, dedicated IAM: true) [created 

and managed by eksctl)

Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.




Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.



Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.




Always Double-click on the images to zoom-out ...Larger.

To return to Home page: Refresh Page or Take ESC Button on Keyboard.

How to delete the eks cluster and all its resources:  With the command line.

eksctl delete cluster --name twtech-eks --region us-east-2

No comments:

Post a Comment

Kubernetes Clusters | Upstream Vs Downstream.

  The terms "upstream" and "downstream" in the context of Kubernetes clusters often refer to the direction of code fl...