Posts

How to extend a root FS EBS volume of AWS EC2 using CLI

  Query all running ec2 instances and with an instance name 'main'  for details of Block Devices or volume ids Query only running ec2 instance for the Block Devices or volume ids aws ec2 describe-instances --filters Name=instance-state-name,Values=running Name=tag:Name,Values='main' --query "Reservations[*].Instances[*].BlockDeviceMappings[*].Ebs.VolumeId" --output text Check the volume properties aws ec2 describe-volumes --volume-ids <id> Modify a Volume aws ec2 modify-volume --volume-id <id> --size <final size> Once this is done follow the below steps to extend the lsblk                – to check which is the root fs df -h                – to check the fs usage sudo growpart / dev/ xvda 1                     - To extend the partition size if the partition is 1 ...

Step by step installation and configuration of client machine for CI/CD integration - Jenkins

Image
  Step by step installation and configuration of client machine for CI/CD integration 1, Create an ubuntu Ec2 instance – volume 15 GB 2, Install awscli v2 $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" $ sudo apt install unzip $ unzip awscliv2.zip $ sudo ./aws/install 3, Configure AWS CLI to interact with AWS $ ubuntu@ip-172-31-88-76:~$ aws configure AWS Access Key ID [****************BCXU]: AWS Secret Access Key [****************cRPe]: Default region name [us-east-1]: us-east-1 Default output format [json]: $ ubuntu@ip-172-31-88-76:~$ aws eks list-clusters {                 "clusters": [                "abushad-eks"                 ] } 4, Install kubectl $ curl -o kubectl https://amazon-eks.s3.us-west-2....

How to create AWS EKS using eksctl

Image
How to create AWS EKS using eksctl   Refer the official document below for the prerequisites https://docs.aws.amazon.com/eks/latest/userguide/getting-started-eksctl.html   kubectl , aws cli are installed and configured in my ec2 instance , please refer the old blog below https://abushadtech.blogspot.com/2021/10/install-and-configure-aws-cli-and.html   Install eksctl ------------------------------------------------------------------------------- $ curl --silent --location " https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz " | tar xz -C /tmp   $ sudo mv /tmp/eksctl /usr/local/bin   $ eksctl version   To check if eksctl is able to communicate with AWS , use below command $ eksctl get clusters 2021-10-28 16:58:25 [ ℹ ]   eksctl version 0.70.0 2021-10-28 16:58:25 [ ℹ ]   using region us-east-1 NAME             REGION...

Demo: How to deploy a 4-tier application in Kubernetes

Demo: How to deploy a 4-tier application in Kubernetes   Use the below yaml code to create a deployment.yaml file and then execute $kubectl apply -f deployment.yaml   To access the frontend UI, go to AWS console and select the public ipv4 DNS of the node in EKS and then type in browser http:// ec2-18-212-27-8.compute-1.amazonaws.com:30001   To create a Load Balancer instead of NodePort then edit the type highlighted in yellow to LoadBalancer , Once the loadbalancer Is created in AWS use the loadbalancer DNS name to access the Frontend UI   -------------------------------------------------------- apiVersion: v1 kind: Service metadata:   name: redis-server   labels:     app: redis-server     tier: cache   namespace: yelb spec:   type: ClusterIP   ports:   - port: 6379   selector:      app: redis-server     tier: cache ---...