From cbe539d23d77e6af18cd9ade41f099d5ea6962d6 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:24:49 +0530 Subject: [PATCH 01/88] Create 2023mysql.sh --- 2023mysql.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 2023mysql.sh diff --git a/2023mysql.sh b/2023mysql.sh new file mode 100644 index 00000000..bd6a29ca --- /dev/null +++ b/2023mysql.sh @@ -0,0 +1,5 @@ +sudo wget https://dev.mysql.com/get/mysql80-community-release-el9-1.noarch.rpm +sudo dnf install mysql80-community-release-el9-1.noarch.rpm -y +sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 +sudo dnf install mysql-community-client -y +sudo dnf install mysql-community-server -y From 3a70f96f86e247b76329e3daf2e31a4b4aa19fe7 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:53:40 +0530 Subject: [PATCH 02/88] Create whatsapp.sh --- whatsapp.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 whatsapp.sh diff --git a/whatsapp.sh b/whatsapp.sh new file mode 100644 index 00000000..d6cab3bd --- /dev/null +++ b/whatsapp.sh @@ -0,0 +1,9 @@ +#! /bin/bash +yum install httpd git -y +systemctl start httpd +systemctl status httpd +chkconfig httpd on +cd /var/www/html +git clone https://github.com/hamsahmedansari/axiom-whatsapp-ui-homePage.git +mv axiom-whatsapp-ui-homePage.git/* . +tail -100f /var/log/httpd/access_log From c8276a9c9cf52c7e42e044669237b46042af7c64 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 19 Sep 2024 09:56:33 +0530 Subject: [PATCH 03/88] Update whatsapp.sh --- whatsapp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whatsapp.sh b/whatsapp.sh index d6cab3bd..bdc9a449 100644 --- a/whatsapp.sh +++ b/whatsapp.sh @@ -5,5 +5,5 @@ systemctl status httpd chkconfig httpd on cd /var/www/html git clone https://github.com/hamsahmedansari/axiom-whatsapp-ui-homePage.git -mv axiom-whatsapp-ui-homePage.git/* . +mv axiom-whatsapp-ui-homePage/* . tail -100f /var/log/httpd/access_log From d6be5f35e61203c28a4aceba875c20eaf0798c93 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 20 Sep 2024 16:12:07 +0530 Subject: [PATCH 04/88] Update swiggy.sh --- swiggy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/swiggy.sh b/swiggy.sh index 83a86299..5d83c9bc 100644 --- a/swiggy.sh +++ b/swiggy.sh @@ -1,3 +1,4 @@ +#! /bin/bash yum install httpd git -y systemctl start httpd systemctl status httpd From de946608d5f612542164bd1cf0875dcfc2d93ffb Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:21:29 +0530 Subject: [PATCH 05/88] Create terraformer --- terraformer | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 terraformer diff --git a/terraformer b/terraformer new file mode 100644 index 00000000..3947395a --- /dev/null +++ b/terraformer @@ -0,0 +1,4 @@ +wget https://github.com/GoogleCloudPlatform/terraformer/releases/download/0.8.24/terraformer-all-linux-amd64 +chmod +x terraformer-all-linux-amd64 +sudo mv terraformer-all-linux-amd64 /usr/local/bin/terraformer +terraformer --version From b54e9d33ace945cdc8b2cd7c107887e982a8c8fb Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:44:53 +0530 Subject: [PATCH 06/88] Update jfrog.sh --- jfrog.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/jfrog.sh b/jfrog.sh index a43ecdcf..a77fa92b 100644 --- a/jfrog.sh +++ b/jfrog.sh @@ -1,7 +1,8 @@ #! /bin/bash -wget https://releases.jfrog.io/artifactory/artifactory-rpms/artifactory-rpms.repo -O jfrog-artifactory-rpms.repo -mv jfrog-artifactory-rpms.repo /etc/yum.repos.d/ -yum update -y -yum install jfrog-artifactory-oss -y -systemctl start artifactory.service -systemctl status artifactory.service +sudo yum update -y +sudo yum install java-1.8* -y +sudo wget https://jfrog.bintray.com/artifactory/jfrog-artifactory-oss-6.9.6.zip +sudo yum install unzip -y +sudo unzip jfrog-artifactory-oss-6.9.6.zip +cd /opt/jfrog-artifactory-oss-6.9.6/app/bin +sudo ./artifactory.sh start From 5733e2ae474c8fa30778c7da5a6984382752ed7c Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:35:41 +0530 Subject: [PATCH 07/88] Update terraformer --- terraformer | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/terraformer b/terraformer index 3947395a..0a043a47 100644 --- a/terraformer +++ b/terraformer @@ -2,3 +2,7 @@ wget https://github.com/GoogleCloudPlatform/terraformer/releases/download/0.8.24 chmod +x terraformer-all-linux-amd64 sudo mv terraformer-all-linux-amd64 /usr/local/bin/terraformer terraformer --version + +COMMAND: terraformer import aws --resources=sg,ec2_instance,elb --regions=us-east-1 +yum install tree -y +tree From 5b4dc650703633ad55197588baa7fe4e10573fcd Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:13:26 +0530 Subject: [PATCH 08/88] Create amazon.sh --- amazon.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 amazon.sh diff --git a/amazon.sh b/amazon.sh new file mode 100644 index 00000000..99c1e452 --- /dev/null +++ b/amazon.sh @@ -0,0 +1,8 @@ +#! /bin/bash +yum install httpd git -y +systemctl start httpd +systemctl status httpd +cd /var/www/html +git clone https://github.com/Ironhack-Archive/online-clone-amazon.git +mv online-clone-amazon/* . +tail -100f /var/log/httpd/access_log From 5cbca9548bddee8e0ad05fb492fa2a8714eef568 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:43:27 +0530 Subject: [PATCH 09/88] Update tomcat.sh --- tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tomcat.sh b/tomcat.sh index d92bcc69..7113255b 100644 --- a/tomcat.sh +++ b/tomcat.sh @@ -1,11 +1,11 @@ amazon-linux-extras install java-openjdk11 -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.91/bin/apache-tomcat-9.0.91.tar.gz -tar -zxvf apache-tomcat-9.0.91.tar.gz -sed -i '56 a\' apache-tomcat-9.0.91/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.91/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.91/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.91/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.91/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.91/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.91/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.91/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.96/bin/apache-tomcat-9.0.96.tar.gz +tar -zxvf apache-tomcat-9.0.96.tar.gz +sed -i '56 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.96/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.96/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.96/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.96/bin/startup.sh From 2b42b2d1a69345d572df7f61b648708c075eea3a Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:46:28 +0530 Subject: [PATCH 10/88] Update nexus.sh --- nexus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus.sh b/nexus.sh index 544998ac..3904177c 100644 --- a/nexus.sh +++ b/nexus.sh @@ -2,7 +2,7 @@ sudo yum update -y sudo yum install wget -y -sudo yum install java-17-amazon-corretto-jmods -y +sudo yum install java-1.8.0-openjdk -y sudo mkdir /app && cd /app sudo wget -O nexus.tar.gz https://download.sonatype.com/nexus/3/latest-unix.tar.gz sudo tar -xvf nexus.tar.gz From 2d0be38aa4ae8d2d2586b49402041d84b095efa9 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 23 Oct 2024 16:48:55 +0530 Subject: [PATCH 11/88] Update nexus.sh --- nexus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus.sh b/nexus.sh index 3904177c..590385ad 100644 --- a/nexus.sh +++ b/nexus.sh @@ -2,7 +2,7 @@ sudo yum update -y sudo yum install wget -y -sudo yum install java-1.8.0-openjdk -y +sudo yum install java-17-amazon-corretto-headless -y sudo mkdir /app && cd /app sudo wget -O nexus.tar.gz https://download.sonatype.com/nexus/3/latest-unix.tar.gz sudo tar -xvf nexus.tar.gz From bc478ae971ea83392b9ca825ee332e1afbdeabfe Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 6 Nov 2024 11:14:19 +0530 Subject: [PATCH 12/88] Update jenkins.sh --- jenkins.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins.sh b/jenkins.sh index 951bcd70..5ebaef70 100644 --- a/jenkins.sh +++ b/jenkins.sh @@ -6,7 +6,7 @@ sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/ sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key #STEP-3: DOWNLOAD JAVA11 AND JENKINS -amazon-linux-extras install java-openjdk11 -y +sudo yum install java-17-amazon-corretto -y yum install jenkins -y update-alternatives --config java From 64657ed51a1f32bb99244fd80f37d5f209b8060b Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:52:07 +0530 Subject: [PATCH 13/88] Create trivy.sh --- trivy.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 trivy.sh diff --git a/trivy.sh b/trivy.sh new file mode 100644 index 00000000..8b0442f0 --- /dev/null +++ b/trivy.sh @@ -0,0 +1,6 @@ +wget https://github.com/aquasecurity/trivy/releases/download/v0.18.3/trivy_0.18.3_Linux-64bit.tar.gz +tar zxvf trivy_0.18.3_Linux-64bit.tar.gz +sudo mv trivy /usr/local/bin/ +vim .bashrc +export PATH=$PATH:/usr/local/bin/ +source .bashrc From e33402a1d2fe356a4d6da19221d614b314aecd90 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 15 Nov 2024 20:14:54 +0530 Subject: [PATCH 14/88] Create opentofu.sh --- opentofu.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 opentofu.sh diff --git a/opentofu.sh b/opentofu.sh new file mode 100644 index 00000000..ca51164a --- /dev/null +++ b/opentofu.sh @@ -0,0 +1,4 @@ +wget https://github.com/opentofu/opentofu/releases/download/v1.6.0-alpha3/tofu_1.6.0-alpha_linux_amd64.zip +unzip tofu_1.6.0-alpha3_linux_amd64.zip +mv tofu /usr/local/bin/tofu +tofu version From 41c66296a0d136642412b853bf11f8309cc7c859 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 22 Nov 2024 09:42:49 +0530 Subject: [PATCH 15/88] Update kops.sh --- kops.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kops.sh b/kops.sh index 55b015d2..c3e1aef6 100644 --- a/kops.sh +++ b/kops.sh @@ -14,5 +14,5 @@ mv kops-linux-amd64 /usr/local/bin/kops aws s3api create-bucket --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local -kops create cluster --name rahams.k8s.local --zones us-east-1a --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.medium +kops create cluster --name rahams.k8s.local --zones us-east-1a --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.micro kops update cluster --name rahams.k8s.local --yes --admin From e2297473da3accc0ff6ff5a054eced174bd2c1bd Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 29 Nov 2024 20:15:40 +0530 Subject: [PATCH 16/88] Update terraformer --- terraformer | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/terraformer b/terraformer index 0a043a47..577130a2 100644 --- a/terraformer +++ b/terraformer @@ -4,5 +4,8 @@ sudo mv terraformer-all-linux-amd64 /usr/local/bin/terraformer terraformer --version COMMAND: terraformer import aws --resources=sg,ec2_instance,elb --regions=us-east-1 -yum install tree -y -tree +UPDATE PROVIDERS IN STATE FILE: +terraform state replace-provider -- -/aws hashicorp/aws +terraform init +terraform plan +terraform apply From 0f49c6c02da914bb275e647a07331c9c6d3c3628 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:41:01 +0530 Subject: [PATCH 17/88] Update tomcat.sh --- tomcat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomcat.sh b/tomcat.sh index 7113255b..faa5a2cc 100644 --- a/tomcat.sh +++ b/tomcat.sh @@ -1,4 +1,4 @@ -amazon-linux-extras install java-openjdk11 -y +sudo yum install java-17-amazon-corretto -y wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.96/bin/apache-tomcat-9.0.96.tar.gz tar -zxvf apache-tomcat-9.0.96.tar.gz sed -i '56 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml From 40f14d2b369b3fd4d68ffdfc299ff6d090220a80 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Sat, 7 Dec 2024 16:39:51 +0530 Subject: [PATCH 18/88] Update jfrog.sh --- jfrog.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jfrog.sh b/jfrog.sh index a77fa92b..c930e1dd 100644 --- a/jfrog.sh +++ b/jfrog.sh @@ -4,5 +4,4 @@ sudo yum install java-1.8* -y sudo wget https://jfrog.bintray.com/artifactory/jfrog-artifactory-oss-6.9.6.zip sudo yum install unzip -y sudo unzip jfrog-artifactory-oss-6.9.6.zip -cd /opt/jfrog-artifactory-oss-6.9.6/app/bin -sudo ./artifactory.sh start +sudo sh jfrog-artifactory-oss-6.9.6/app/bin/artifactory.sh start From 274bea7351a7ceaf966680485f3a78d93321a85c Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Sat, 7 Dec 2024 16:48:51 +0530 Subject: [PATCH 19/88] Update jfrog.sh --- jfrog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jfrog.sh b/jfrog.sh index c930e1dd..3e492a39 100644 --- a/jfrog.sh +++ b/jfrog.sh @@ -4,4 +4,4 @@ sudo yum install java-1.8* -y sudo wget https://jfrog.bintray.com/artifactory/jfrog-artifactory-oss-6.9.6.zip sudo yum install unzip -y sudo unzip jfrog-artifactory-oss-6.9.6.zip -sudo sh jfrog-artifactory-oss-6.9.6/app/bin/artifactory.sh start +sudo sh jfrog-artifactory-oss-6.9.6/bin/artifactory.sh start From 24149b274464511d5b25989ffbe50c0d3664b6b7 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 9 Dec 2024 19:52:58 +0530 Subject: [PATCH 20/88] Update tomcat.yml --- tomcat.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tomcat.yml b/tomcat.yml index 0a210290..48b9a84d 100644 --- a/tomcat.yml +++ b/tomcat.yml @@ -2,15 +2,15 @@ tasks: - name: download tomcat from dlcdn get_url: - url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.87/bin/apache-tomcat-9.0.87.tar.gz" + url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.98/bin/apache-tomcat-9.0.98.tar.gz" dest: "/root/" - name: untar the apache file - command: tar -zxvf apache-tomcat-9.0.87.tar.gz + command: tar -zxvf apache-tomcat-9.0.98.tar.gz - name: rename the tomcat - command: mv apache-tomcat-9.0.87 tomcat + command: mv apache-tomcat-9.0.98 tomcat tags: abc - name: install java From 4b3909da345105e40a419ac9cd7a9682728a30d1 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:26:34 +0530 Subject: [PATCH 21/88] Update tomcat.sh --- tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tomcat.sh b/tomcat.sh index faa5a2cc..f1efb953 100644 --- a/tomcat.sh +++ b/tomcat.sh @@ -1,11 +1,11 @@ sudo yum install java-17-amazon-corretto -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.96/bin/apache-tomcat-9.0.96.tar.gz -tar -zxvf apache-tomcat-9.0.96.tar.gz -sed -i '56 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.96/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.96/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.96/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.96/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.98/bin/apache-tomcat-9.0.98.tar.gz +tar -zxvf apache-tomcat-9.0.98.tar.gz +sed -i '56 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.98/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.98/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.98/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.98/bin/startup.sh From 415b3b1b778e249d6ef0573117fc9017b4024208 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Sun, 15 Dec 2024 20:58:28 +0530 Subject: [PATCH 22/88] Update amazon.sh --- amazon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amazon.sh b/amazon.sh index 99c1e452..9ad1c817 100644 --- a/amazon.sh +++ b/amazon.sh @@ -5,4 +5,4 @@ systemctl status httpd cd /var/www/html git clone https://github.com/Ironhack-Archive/online-clone-amazon.git mv online-clone-amazon/* . -tail -100f /var/log/httpd/access_log +tail -f /var/log/httpd/access_log From 467b1a6bb2cdf23fab667da5981877d698da35ec Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Sat, 4 Jan 2025 19:59:21 +0530 Subject: [PATCH 23/88] Create argocd.sh --- argocd.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 argocd.sh diff --git a/argocd.sh b/argocd.sh new file mode 100644 index 00000000..50f8ac6c --- /dev/null +++ b/argocd.sh @@ -0,0 +1,27 @@ +#INSTALL HELM: +curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 +chmod 700 get_helm.sh +./get_helm.sh +helm version + +#INSTALL ARGO CD USING HELM +helm repo add argo-cd https://argoproj.github.io/argo-helm +helm repo update +kubectl create namespace argocd +helm install argocd argo-cd/argo-cd -n argocd +kubectl get all -n argocd + + + +#EXPOSE ARGOCD SERVER: +kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}' +yum install jq -y +export ARGOCD_SERVER='kubectl get svc argocd-server -n argocd -o json | jq --raw-output '.status.loadBalancer.ingress[0].hostname'' +echo $ARGOCD_SERVER +kubectl get svc argocd-server -n argocd -o json | jq --raw-output .status.loadBalancer.ingress[0].hostname + + +#TO GET ARGO CD PASSWORD: +export ARGO_PWD='kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d' +echo $ARGO_PWD +kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d From a3f4bce5b4fbc4420021bb50159f20865cbbbe7d Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 25 Mar 2025 20:02:33 +0530 Subject: [PATCH 24/88] Update tomcat.sh --- tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tomcat.sh b/tomcat.sh index f1efb953..5b8d54cb 100644 --- a/tomcat.sh +++ b/tomcat.sh @@ -1,11 +1,11 @@ sudo yum install java-17-amazon-corretto -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.98/bin/apache-tomcat-9.0.98.tar.gz -tar -zxvf apache-tomcat-9.0.98.tar.gz -sed -i '56 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.98/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.98/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.98/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.98/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.98/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.102/bin/apache-tomcat-9.0.102.tar.gz +tar -zxvf apache-tomcat-9.0.102.tar.gz +sed -i '56 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.102/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.102/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.102/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.102/bin/startup.sh From abc8134c68cde425dc1ca15c401590a3ce848b65 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 3 Apr 2025 19:21:05 +0530 Subject: [PATCH 25/88] Update nexus.sh --- nexus.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nexus.sh b/nexus.sh index 590385ad..d02c2ab0 100644 --- a/nexus.sh +++ b/nexus.sh @@ -2,11 +2,11 @@ sudo yum update -y sudo yum install wget -y -sudo yum install java-17-amazon-corretto-headless -y +sudo yum install java-17-amazon-corretto-jmods -y sudo mkdir /app && cd /app -sudo wget -O nexus.tar.gz https://download.sonatype.com/nexus/3/latest-unix.tar.gz -sudo tar -xvf nexus.tar.gz -sudo mv nexus-3* nexus +sudo wget https://download.sonatype.com/nexus/3/nexus-unix-x86-64-3.78.2-04.tar.gz +sudo tar -xvf nexus-unix-x86-64-3.78.2-04.tar.gz +sudo mv nexus-unix* nexus sudo adduser nexus sudo chown -R nexus:nexus /app/nexus sudo chown -R nexus:nexus /app/sonatype-work @@ -32,4 +32,3 @@ EOL sudo chkconfig nexus on sudo systemctl start nexus sudo systemctl status nexus - From ce1e4de71097a00677b1bacd252d303dafc8fa59 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 3 Apr 2025 19:42:38 +0530 Subject: [PATCH 26/88] Update nexus.sh --- nexus.sh | 38 ++++++-------------------------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/nexus.sh b/nexus.sh index d02c2ab0..6c82e0af 100644 --- a/nexus.sh +++ b/nexus.sh @@ -1,34 +1,8 @@ #create amazonlinux ec2 with t2.micro and 30 gb of ebs with port 8081 -sudo yum update -y -sudo yum install wget -y -sudo yum install java-17-amazon-corretto-jmods -y -sudo mkdir /app && cd /app -sudo wget https://download.sonatype.com/nexus/3/nexus-unix-x86-64-3.78.2-04.tar.gz -sudo tar -xvf nexus-unix-x86-64-3.78.2-04.tar.gz -sudo mv nexus-unix* nexus -sudo adduser nexus -sudo chown -R nexus:nexus /app/nexus -sudo chown -R nexus:nexus /app/sonatype-work -sudo echo "run_as_user="nexus"" > /app/nexus/bin/nexus.rc -sudo tee /etc/systemd/system/nexus.service > /dev/null << EOL -[Unit] -Description=nexus service -After=network.target - -[Service] -Type=forking -LimitNOFILE=65536 -User=nexus -Group=nexus -ExecStart=/app/nexus/bin/nexus start -ExecStop=/app/nexus/bin/nexus stop -User=nexus -Restart=on-abort - -[Install] -WantedBy=multi-user.target -EOL -sudo chkconfig nexus on -sudo systemctl start nexus -sudo systemctl status nexus +wget https://download.sonatype.com/nexus/3/nexus-unix-x86-64-3.79.0-09.tar.gz\ +tar -zxvf nexus-unix-x86-64-3.79.0-09.tar.gz +yum install java-17-amazon-corretto -y +sudo useradd nexus +chown -R nexus:nexus nexus-3.79.0-09 +sudo sh nexus-3.79.0-09/bin/nexus start From 2a0105791486a14bbb95c0d97d0680ad67eeedfa Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 4 Apr 2025 19:44:58 +0530 Subject: [PATCH 27/88] Update tomcat.yml --- tomcat.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tomcat.yml b/tomcat.yml index 48b9a84d..2acfc379 100644 --- a/tomcat.yml +++ b/tomcat.yml @@ -2,15 +2,15 @@ tasks: - name: download tomcat from dlcdn get_url: - url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.98/bin/apache-tomcat-9.0.98.tar.gz" + url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.102/bin/apache-tomcat-9.0.102.tar.gz" dest: "/root/" - name: untar the apache file - command: tar -zxvf apache-tomcat-9.0.98.tar.gz + command: tar -zxvf apache-tomcat-9.0.102.tar.gz - name: rename the tomcat - command: mv apache-tomcat-9.0.98 tomcat + command: mv apache-tomcat-9.0.102 tomcat tags: abc - name: install java From db5ca370f409e5007d672606eb288914792a6d8f Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 11 Apr 2025 20:04:27 +0530 Subject: [PATCH 28/88] Create portainer --- portainer | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 portainer diff --git a/portainer b/portainer new file mode 100644 index 00000000..cfb08cc3 --- /dev/null +++ b/portainer @@ -0,0 +1,12 @@ +PORTAINER: +it is a container organizer, designed to make tasks easier, whether they are clustered or not. +abel to connect multiple clusters, access the containers, migrate stacks between clusters +it is not a testing environment mainly used for production routines in large companies. +Portainer consists of two elements, the Portainer Server and the Portainer Agent. +Both elements run as lightweight Docker containers on a Docker engine + +Must have swarm mode and all ports enable with docker engine +curl -L https://downloads.portainer.io/ce2-16/portainer-agent-stack.yml -o portainer-agent-stack.yml +docker stack deploy -c portainer-agent-stack.yml portainer + docker ps +public-ip of swamr master:9000 From 8b7c5692e63f92b1ec45a55809fad2964e66fcb8 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 8 May 2025 19:11:35 +0530 Subject: [PATCH 29/88] Update ubuntu-kops.sh --- ubuntu-kops.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ubuntu-kops.sh b/ubuntu-kops.sh index 2e43af6e..290d6c6b 100644 --- a/ubuntu-kops.sh +++ b/ubuntu-kops.sh @@ -4,9 +4,10 @@ #! /bin/bash -apt update -y -apt upgrade -y -apt install awscli -y +apt update -y && apt install unzip -y +curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +unzip awscliv2.zip +sudo ./aws/install aws configure curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" wget https://github.com/kubernetes/kops/releases/download/v1.25.0/kops-linux-amd64 @@ -14,8 +15,8 @@ chmod +x kops-linux-amd64 kubectl mv kubectl /usr/local/bin/kubectl mv kops-linux-amd64 /usr/local/bin/kops -aws s3api create-bucket --bucket cloudanddevopsbyraham007899123.k8s.local --region us-east-1 -aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham007899123.k8s.local --region us-east-1 --versioning-configuration Status=Enabled -export KOPS_STATE_STORE=s3://cloudanddevopsbyraham007899123.k8s.local +aws s3api create-bucket --bucket deploysscloudanddevopsbyraham007899123.k8s.local --region us-east-1 +aws s3api put-bucket-versioning --bucket deploysscloudanddevopsbyraham007899123.k8s.local --region us-east-1 --versioning-configuration Status=Enabled +export KOPS_STATE_STORE=s3://deploysscloudanddevopsbyraham007899123.k8s.local kops create cluster --name rahams.k8s.local --zones us-east-1a --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.micro kops update cluster --name rahams.k8s.local --yes --admin From 5d602eb68973922eb4a5043a64610f3d63bb1b93 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 8 May 2025 21:15:10 +0530 Subject: [PATCH 30/88] Create ubuntu-jenkins.sh --- ubuntu-jenkins.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 ubuntu-jenkins.sh diff --git a/ubuntu-jenkins.sh b/ubuntu-jenkins.sh new file mode 100644 index 00000000..15534878 --- /dev/null +++ b/ubuntu-jenkins.sh @@ -0,0 +1,6 @@ +sudo apt install openjdk-17-jre-headless -y +sudo wget -O /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key +echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null +sudo apt-get update +sudo apt-get install jenkins -y +systemctl status jenkins.service From 44ca688bbf6f4de28df70f41a7bff5c5cf43d70a Mon Sep 17 00:00:00 2001 From: devopsbyraham <125343344+devopsbyraham@users.noreply.github.com> Date: Tue, 17 Jun 2025 11:37:55 +0530 Subject: [PATCH 31/88] Update kops.sh --- kops.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kops.sh b/kops.sh index c3e1aef6..b57750e1 100644 --- a/kops.sh +++ b/kops.sh @@ -6,7 +6,7 @@ #! /bin/bash aws configure curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -wget https://github.com/kubernetes/kops/releases/download/v1.25.0/kops-linux-amd64 +wget https://github.com/kubernetes/kops/releases/download/v1.32.0/kops-linux-amd64 chmod +x kops-linux-amd64 kubectl mv kubectl /usr/local/bin/kubectl mv kops-linux-amd64 /usr/local/bin/kops @@ -14,5 +14,5 @@ mv kops-linux-amd64 /usr/local/bin/kops aws s3api create-bucket --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local -kops create cluster --name rahams.k8s.local --zones us-east-1a --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.micro +kops create cluster --name agoproject.k8s.local --zones ap-south-1a --image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.large --node-count=3 --node-size t2.medium kops update cluster --name rahams.k8s.local --yes --admin From 1316e68e610f9f4b2f9b1484c0600b1c74d8ac47 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 4 Jul 2025 17:27:09 +0530 Subject: [PATCH 32/88] Create 1.amazon.sh --- 1.amazon.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 1.amazon.sh diff --git a/1.amazon.sh b/1.amazon.sh new file mode 100644 index 00000000..b33685ff --- /dev/null +++ b/1.amazon.sh @@ -0,0 +1,7 @@ +#! /bin/bash +sudo -i +apt update +apt install nginx -y +cd /var/www/html/ +git clone https://github.com/Ironhack-Archive/online-clone-amazon.git +mv online-clone-amazon/* . From 67de7958967e20315e362fb0ed17e1242d57fa7e Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 8 Jul 2025 16:35:55 +0530 Subject: [PATCH 33/88] Update 1.amazon.sh --- 1.amazon.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/1.amazon.sh b/1.amazon.sh index b33685ff..b6aae3e2 100644 --- a/1.amazon.sh +++ b/1.amazon.sh @@ -1,7 +1,6 @@ #! /bin/bash sudo -i apt update -apt install nginx -y -cd /var/www/html/ +apt install apache2 -y git clone https://github.com/Ironhack-Archive/online-clone-amazon.git -mv online-clone-amazon/* . +mv online-clone-amazon/* /var/www/html From 0cf01ba4a60bf1a423da10c4cc9b71bffe91c32e Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 15 Jul 2025 19:24:38 +0530 Subject: [PATCH 34/88] Update jenkins.sh --- jenkins.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/jenkins.sh b/jenkins.sh index 5ebaef70..d07bb33d 100644 --- a/jenkins.sh +++ b/jenkins.sh @@ -1,15 +1,15 @@ -#STEP-1: INSTALLING GIT JAVA-1.8.0 MAVEN -yum install git java-1.8.0-openjdk maven -y -#STEP-2: GETTING THE REPO (jenkins.io --> download -- > redhat) -sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo -sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key +#! /bin/bash +sudo apt update -y +sudo apt install -y openjdk-17-jdk +java -version +curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \ + /usr/share/keyrings/jenkins-keyring.asc > /dev/null -#STEP-3: DOWNLOAD JAVA11 AND JENKINS -sudo yum install java-17-amazon-corretto -y -yum install jenkins -y -update-alternatives --config java - -#STEP-4: RESTARTING JENKINS (when we download service it will on stopped state) -systemctl start jenkins.service -systemctl status jenkins.service +echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ + https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ + /etc/apt/sources.list.d/jenkins.list > /dev/null +sudo apt update -y +sudo apt install -y jenkins +sudo systemctl start jenkins +sudo systemctl status jenkins From cf58765604cccfadd8105d3e16bfced3f1391547 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 22 Jul 2025 19:05:54 +0530 Subject: [PATCH 35/88] Update tomcat.sh --- tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tomcat.sh b/tomcat.sh index 5b8d54cb..2ecf954a 100644 --- a/tomcat.sh +++ b/tomcat.sh @@ -1,11 +1,11 @@ sudo yum install java-17-amazon-corretto -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.102/bin/apache-tomcat-9.0.102.tar.gz -tar -zxvf apache-tomcat-9.0.102.tar.gz -sed -i '56 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.102/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.102/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.102/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.102/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.102/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz +tar -zxvf apache-tomcat-9.0.107.tar.gz +sed -i '56 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.107/bin/startup.sh From 0f0a37f0e094abe168f88095f5dcb433d94fe1a8 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:38:01 +0530 Subject: [PATCH 36/88] Update ubuntu-jenkins.sh --- ubuntu-jenkins.sh | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ubuntu-jenkins.sh b/ubuntu-jenkins.sh index 15534878..06bfa797 100644 --- a/ubuntu-jenkins.sh +++ b/ubuntu-jenkins.sh @@ -1,6 +1,14 @@ -sudo apt install openjdk-17-jre-headless -y -sudo wget -O /usr/share/keyrings/jenkins-keyring.asc https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key -echo "deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/" | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null -sudo apt-get update -sudo apt-get install jenkins -y -systemctl status jenkins.service +#! /bin/bash +sudo apt update -y +sudo apt install -y openjdk-17-jdk +java -version +curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \ + /usr/share/keyrings/jenkins-keyring.asc > /dev/null + +echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ + https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ + /etc/apt/sources.list.d/jenkins.list > /dev/null +sudo apt update -y +sudo apt install -y jenkins +sudo systemctl start jenkins +sudo systemctl status Jenkins From 9ce00bb08129e08f82667edddb3bcedff4cb240c Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:38:41 +0530 Subject: [PATCH 37/88] Create ubuntu-nexus.sh --- ubuntu-nexus.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ubuntu-nexus.sh diff --git a/ubuntu-nexus.sh b/ubuntu-nexus.sh new file mode 100644 index 00000000..a226c6ad --- /dev/null +++ b/ubuntu-nexus.sh @@ -0,0 +1,7 @@ +#! /bin/bash +wget https://download.sonatype.com/nexus/3/nexus-unix-x86-64-3.79.0-09.tar.gz +tar -zxvf nexus-unix-x86-64-3.79.0-09.tar.gz +yum install java-17-amazon-corretto -y +sudo useradd nexus +chown -R nexus:nexus nexus-3.79.0-09 +sudo sh nexus-3.79.0-09/bin/nexus start From e9add2d23679705fb734da35ee4d6aa462ad7a07 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:40:48 +0530 Subject: [PATCH 38/88] Create ubuntu-tomcat.sh --- ubuntu-tomcat.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ubuntu-tomcat.sh diff --git a/ubuntu-tomcat.sh b/ubuntu-tomcat.sh new file mode 100644 index 00000000..0da2650c --- /dev/null +++ b/ubuntu-tomcat.sh @@ -0,0 +1,11 @@ +sudo apt install -y openjdk-17-jdk +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz +tar -zxvf apache-tomcat-9.0.107.tar.gz +sed -i '56 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.107/bin/startup.sh From baa52f477673597154c1784f1e8276a65ba2e8fb Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:44:07 +0530 Subject: [PATCH 39/88] Update ubuntu-tomcat.sh --- ubuntu-tomcat.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ubuntu-tomcat.sh b/ubuntu-tomcat.sh index 0da2650c..301f63e3 100644 --- a/ubuntu-tomcat.sh +++ b/ubuntu-tomcat.sh @@ -1,4 +1,6 @@ -sudo apt install -y openjdk-17-jdk +#! /bin/bash +sudo apt update +apt install openjdk-17-jre-headless -y wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz tar -zxvf apache-tomcat-9.0.107.tar.gz sed -i '56 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml @@ -9,3 +11,4 @@ sed -i '56d' apache-tomcat-9.0.107/conf/tomcat-users.xml sed -i '21d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml sed -i '22d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml sh apache-tomcat-9.0.107/bin/startup.sh +~ From e75e8d402f1ba0f8a9680f97cb464f5300fc2770 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 29 Jul 2025 21:28:29 +0530 Subject: [PATCH 40/88] Update ubuntu-jenkins.sh --- ubuntu-jenkins.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu-jenkins.sh b/ubuntu-jenkins.sh index 06bfa797..12eb946f 100644 --- a/ubuntu-jenkins.sh +++ b/ubuntu-jenkins.sh @@ -11,4 +11,4 @@ echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ sudo apt update -y sudo apt install -y jenkins sudo systemctl start jenkins -sudo systemctl status Jenkins +sudo systemctl status jenkins From 3c6e973517797e980f637e676236fc345935eefd Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 30 Jul 2025 21:44:59 +0530 Subject: [PATCH 41/88] Update tomcat.yml --- tomcat.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tomcat.yml b/tomcat.yml index 2acfc379..b3f8b657 100644 --- a/tomcat.yml +++ b/tomcat.yml @@ -2,15 +2,15 @@ tasks: - name: download tomcat from dlcdn get_url: - url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.102/bin/apache-tomcat-9.0.102.tar.gz" + url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz" dest: "/root/" - name: untar the apache file - command: tar -zxvf apache-tomcat-9.0.102.tar.gz + command: tar -zxvf apache-tomcat-9.0.107.tar.gz - name: rename the tomcat - command: mv apache-tomcat-9.0.102 tomcat + command: mv apache-tomcat-9.0.107 tomcat tags: abc - name: install java From 29fa71ea959f3cd9e8c21105a707c11f690c8cd6 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Sat, 9 Aug 2025 18:26:01 +0530 Subject: [PATCH 42/88] Update trivy.sh --- trivy.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trivy.sh b/trivy.sh index 8b0442f0..8432fcff 100644 --- a/trivy.sh +++ b/trivy.sh @@ -1,6 +1,5 @@ wget https://github.com/aquasecurity/trivy/releases/download/v0.18.3/trivy_0.18.3_Linux-64bit.tar.gz tar zxvf trivy_0.18.3_Linux-64bit.tar.gz sudo mv trivy /usr/local/bin/ -vim .bashrc -export PATH=$PATH:/usr/local/bin/ +echo "export PATH=$PATH:/usr/local/bin/" >> .bashrc source .bashrc From 984d4ecb6c93b48c57f86e77428b9cdff68323f3 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 12 Aug 2025 19:16:25 +0530 Subject: [PATCH 43/88] Update kops.sh --- kops.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kops.sh b/kops.sh index b57750e1..007351ad 100644 --- a/kops.sh +++ b/kops.sh @@ -14,5 +14,5 @@ mv kops-linux-amd64 /usr/local/bin/kops aws s3api create-bucket --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local -kops create cluster --name agoproject.k8s.local --zones ap-south-1a --image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.large --node-count=3 --node-size t2.medium +kops create cluster --name rahamss.k8s.local --zones us-east-1a --image ami-020cba7c55df1f615 --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.micro kops update cluster --name rahams.k8s.local --yes --admin From 0d4c3f8d05d73e57b33390c71fd3850fdef227e0 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 13 Aug 2025 18:39:43 +0530 Subject: [PATCH 44/88] Update ubuntu-kops.sh --- ubuntu-kops.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu-kops.sh b/ubuntu-kops.sh index 290d6c6b..e1e02dc6 100644 --- a/ubuntu-kops.sh +++ b/ubuntu-kops.sh @@ -10,7 +10,7 @@ unzip awscliv2.zip sudo ./aws/install aws configure curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -wget https://github.com/kubernetes/kops/releases/download/v1.25.0/kops-linux-amd64 +wget https://github.com/kubernetes/kops/releases/download/v1.33.0/kops-linux-amd64 chmod +x kops-linux-amd64 kubectl mv kubectl /usr/local/bin/kubectl mv kops-linux-amd64 /usr/local/bin/kops From ea98c92057562e01d06d5cc63bdb9980d2dadeea Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 13 Aug 2025 18:41:05 +0530 Subject: [PATCH 45/88] Update kops.sh --- kops.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kops.sh b/kops.sh index 007351ad..5fa8a884 100644 --- a/kops.sh +++ b/kops.sh @@ -6,7 +6,7 @@ #! /bin/bash aws configure curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -wget https://github.com/kubernetes/kops/releases/download/v1.32.0/kops-linux-amd64 +wget https://github.com/kubernetes/kops/releases/download/v1.33.0/kops-linux-amd64 chmod +x kops-linux-amd64 kubectl mv kubectl /usr/local/bin/kubectl mv kops-linux-amd64 /usr/local/bin/kops @@ -14,5 +14,5 @@ mv kops-linux-amd64 /usr/local/bin/kops aws s3api create-bucket --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local -kops create cluster --name rahamss.k8s.local --zones us-east-1a --image ami-020cba7c55df1f615 --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.micro +kops create cluster --name rahamss.k8s.local --zones us-east-1a --master-image ami-020cba7c55df1f615 --master-count=1 --master-size t2.medium --image ami-020cba7c55df1f615 --node-count=2 --node-size t2.micro kops update cluster --name rahams.k8s.local --yes --admin From 02f679634aca2e7bf1616cbe84aafe6a1ff4c3a6 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 13 Aug 2025 19:05:48 +0530 Subject: [PATCH 46/88] Update kops.sh --- kops.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kops.sh b/kops.sh index 5fa8a884..a0ede739 100644 --- a/kops.sh +++ b/kops.sh @@ -14,5 +14,5 @@ mv kops-linux-amd64 /usr/local/bin/kops aws s3api create-bucket --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local -kops create cluster --name rahamss.k8s.local --zones us-east-1a --master-image ami-020cba7c55df1f615 --master-count=1 --master-size t2.medium --image ami-020cba7c55df1f615 --node-count=2 --node-size t2.micro +kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.medium --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.micro kops update cluster --name rahams.k8s.local --yes --admin From 42507f1cfc694bf18687646a0dda781589bab54d Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 19 Aug 2025 18:23:36 +0530 Subject: [PATCH 47/88] Update ubuntu-kops.sh --- ubuntu-kops.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu-kops.sh b/ubuntu-kops.sh index e1e02dc6..6191fcc6 100644 --- a/ubuntu-kops.sh +++ b/ubuntu-kops.sh @@ -18,5 +18,5 @@ mv kops-linux-amd64 /usr/local/bin/kops aws s3api create-bucket --bucket deploysscloudanddevopsbyraham007899123.k8s.local --region us-east-1 aws s3api put-bucket-versioning --bucket deploysscloudanddevopsbyraham007899123.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://deploysscloudanddevopsbyraham007899123.k8s.local -kops create cluster --name rahams.k8s.local --zones us-east-1a --master-count=1 --master-size t2.medium --node-count=2 --node-size t2.micro +kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.medium --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.micro kops update cluster --name rahams.k8s.local --yes --admin From 9baab0b751bcf045054e0ecb053caa58c6f80f56 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 22 Aug 2025 19:05:05 +0530 Subject: [PATCH 48/88] Update kops.sh --- kops.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kops.sh b/kops.sh index a0ede739..1bab23b1 100644 --- a/kops.sh +++ b/kops.sh @@ -14,5 +14,5 @@ mv kops-linux-amd64 /usr/local/bin/kops aws s3api create-bucket --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local -kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.medium --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.micro +kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.large --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.medium kops update cluster --name rahams.k8s.local --yes --admin From ebad28df4b0efc5c8e820fb587bc024b866e1bd6 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 28 Aug 2025 17:24:22 +0530 Subject: [PATCH 49/88] Update ubuntu-tomcat.sh --- ubuntu-tomcat.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ubuntu-tomcat.sh b/ubuntu-tomcat.sh index 301f63e3..363294b6 100644 --- a/ubuntu-tomcat.sh +++ b/ubuntu-tomcat.sh @@ -1,14 +1,14 @@ #! /bin/bash sudo apt update apt install openjdk-17-jre-headless -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz -tar -zxvf apache-tomcat-9.0.107.tar.gz -sed -i '56 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.107/bin/startup.sh -~ +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.108/bin/apache-tomcat-9.0.108.tar.gz +tar -zxvf apache-tomcat-9.0.108.tar.gz +sed -i '56 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.108/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.108/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.108/webapps/manager/META-INF/context.xml +sudo sh apache-tomcat-9.0.108/bin/startup.sh + From 969f614a483b5c2842b7f89a6c258b47efc1c1c1 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 1 Sep 2025 19:12:34 +0530 Subject: [PATCH 50/88] Update ubuntu-kops.sh --- ubuntu-kops.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ubuntu-kops.sh b/ubuntu-kops.sh index 6191fcc6..42b35bf3 100644 --- a/ubuntu-kops.sh +++ b/ubuntu-kops.sh @@ -15,8 +15,8 @@ chmod +x kops-linux-amd64 kubectl mv kubectl /usr/local/bin/kubectl mv kops-linux-amd64 /usr/local/bin/kops -aws s3api create-bucket --bucket deploysscloudanddevopsbyraham007899123.k8s.local --region us-east-1 -aws s3api put-bucket-versioning --bucket deploysscloudanddevopsbyraham007899123.k8s.local --region us-east-1 --versioning-configuration Status=Enabled -export KOPS_STATE_STORE=s3://deploysscloudanddevopsbyraham007899123.k8s.local -kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.medium --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.micro +aws s3api create-bucket --bucket deploysscloudanddevopsbyraham007899123mnbvcxz.k8s.local --region us-east-1 +aws s3api put-bucket-versioning --bucket deploysscloudanddevopsbyraham007899123mnbvcxz.k8s.local --region us-east-1 --versioning-configuration Status=Enabled +export KOPS_STATE_STORE=s3://deploysscloudanddevopsbyraham007899123mnbvcxz.k8s.local +kops create cluster --name rahamss.k8s.local --zones us-east-1a --control-plane-image ami-0360c520857e3138f --control-plane-count=1 --control-plane-size t2.large --image ami-0360c520857e3138f --node-count=2 --node-size t2.medium kops update cluster --name rahams.k8s.local --yes --admin From 3b483054c20f08ea00f262d575c58816d004297c Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 2 Sep 2025 08:43:52 +0530 Subject: [PATCH 51/88] Create master-slave --- master-slave | 118 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 master-slave diff --git a/master-slave b/master-slave new file mode 100644 index 00000000..08bdf31f --- /dev/null +++ b/master-slave @@ -0,0 +1,118 @@ + +MASTER AND SLAVE: +it is used to distribute the builds. +it reduce the load on jenkins server. +communication blw master and slave is ssh. +Here we need to install agent (java). +SLAVE IS your instance. +slave can use any platform. +label = way of assigning work for slave. + +TIP-: + +SETUP: +#STEP-1 : Create a server and install JAVA-1.8.0 maven +sudo apt update +sudo apt install -y wget gnupg +wget -qO - https://repos.azul.com/azul-repo.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/azul.gpg +echo "deb https://repos.azul.com/zulu/deb stable main" | sudo tee /etc/apt/sources.list.d/zulu.list +sudo apt update +sudo apt install -y zulu8-jdk +sudo apt install -y maven + + +sudo apt install -y openjdk-17-jdk +update-alternatives --config java +set java to version17 + +#STEP-2: SETUP THE SLAVE SERVER +Dashboard -- > Manage Jenkins -- > Nodes -- > New node -- > nodename: abc -- > permanent agent -- > save + +CONFIGURATION OF SALVE: + +Number of executors : 3 #Number of Parallel builds +Remote root directory : /tmp #The place where our output is stored on slave sever. +Labels : one #place the op in a particular slave +useage: last option +Launch method : last option +Host: (your privte ip) +Credentials -- > add -- >jenkins -- > Kind : ssh username with privatekey -- > username: ec2-user +privatekey : pemfile of server -- > save -- > +Host Key Verification Strategy: last option + +DASHBOARD -- > JOB -- > CONFIGURE -- > RESTRTICT WHERE THIS JOB RUN -- > LABEL: SLAVE1 -- > SAVE + +BUILD FAILS -- > WHY -- > WE NEED TO INSTALL PACKAGES + +TOMCAT: + +WEBSITE: FRONTEND -- > DB IS OPT +WEBAPP: FRONTEND + BACKEND -- > DB IS MANDATORY + +WEB APPLICATION SERVER/APPLICATION SERVER/APP SERVER = TOMCAT + +ITS A WEB APPLICATION SERVER USED TO DEPLOY JAVA APPLICATIONS. +IT IS WRITTEN ON JAVA LANGUAGE. +AGENT: JAVA +PORT: 8080 +WE CAN DEPLOY OUR ARTIFACTS. +ITS FREE AND OPENSOURCE. +Its Platform Independent. +YEAR: 1999 + +war : tomcat/webapps +jar : tomcat/lib + +ALTERNATIVES: NGINX, IIS, WEBSPHERE, JBOSS, GLASSFISH, WEBLOGIC + +NOTE: USE SLAVE AS TOMCAT FOR TEMP +SETUP: CREATE A NEW SERVER +INSTALL JAVA: sudo apt install -y openjdk-17-jdk + + + +STEP-1: DOWNLOAD TOMCAT (dlcdn.apache.org) +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.108.tar.gz + +STEP-2: EXTRACT THE FILES +tar -zxvf apache-tomcat-9.0.108.tar.gz + +STEP-3: CONFIGURE USER, PASSWORD & ROLES +vim apache-tomcat-9.0.108/conf/tomcat-users.xml + + 56 + 57 + 58 + +STEP-4: DELETE LINE 21 AND 22 +vim apache-tomcat-9.0.108/webapps/manager/META-INF/context.xml + +STEP-5: STARTING TOMCAT +sh apache-tomcat-9.0.108/bin/startup.sh + +CONNECTION: +COPY PUBLIC IP:8080 +manager apps -- > username: tomcat & password: raham123 + +SCRIPT: + +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz +tar -zxvf apache-tomcat-9.0.107.tar.gz +sed -i '56 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.107/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.107/bin/startup.sh + + +DEPLOYING THE APP: +WORKSPACE IN JENKINS DASHBOARD +TARGET +CLICK ON +NETFLIX-1.2.2.war + +GO TO TOMCAT +CLICK ON WAR file to deploy - > CHOOSE FILE -- > UPLOAD NETFLIX WAR -- > DEPLOY From 2a972279fdcafef8c5dff8ebf0240e2795c75f9f Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 9 Sep 2025 16:49:17 +0530 Subject: [PATCH 52/88] Update tomcat.yml --- tomcat.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tomcat.yml b/tomcat.yml index b3f8b657..da6b76b3 100644 --- a/tomcat.yml +++ b/tomcat.yml @@ -2,15 +2,15 @@ tasks: - name: download tomcat from dlcdn get_url: - url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz" + url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.109/bin/apache-tomcat-9.0.109.tar.gz" dest: "/root/" - name: untar the apache file - command: tar -zxvf apache-tomcat-9.0.107.tar.gz + command: tar -zxvf apache-tomcat-9.0.109.tar.gz - name: rename the tomcat - command: mv apache-tomcat-9.0.107 tomcat + command: mv apache-tomcat-9.0.109 tomcat tags: abc - name: install java From c25d84668531fe0899f2b51bd2d7d42bff367c73 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 24 Sep 2025 20:32:42 +0530 Subject: [PATCH 53/88] Update ubuntu-tomcat.sh --- ubuntu-tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ubuntu-tomcat.sh b/ubuntu-tomcat.sh index 363294b6..50c38707 100644 --- a/ubuntu-tomcat.sh +++ b/ubuntu-tomcat.sh @@ -1,14 +1,14 @@ #! /bin/bash sudo apt update apt install openjdk-17-jre-headless -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.108/bin/apache-tomcat-9.0.108.tar.gz -tar -zxvf apache-tomcat-9.0.108.tar.gz -sed -i '56 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.108/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.108/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.108/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.108/webapps/manager/META-INF/context.xml -sudo sh apache-tomcat-9.0.108/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.109/bin/apache-tomcat-9.0.109.tar.gz +tar -zxvf apache-tomcat-9.0.109.tar.gz +sed -i '56 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.109/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.109/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.109/webapps/manager/META-INF/context.xml +sudo sh apache-tomcat-9.0.109/bin/startup.sh From 27376eea428a32658af0c88acaa8b289219c9568 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 14 Oct 2025 20:48:21 +0530 Subject: [PATCH 54/88] Update tomcat.yml --- tomcat.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tomcat.yml b/tomcat.yml index da6b76b3..49c144f2 100644 --- a/tomcat.yml +++ b/tomcat.yml @@ -2,15 +2,15 @@ tasks: - name: download tomcat from dlcdn get_url: - url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.109/bin/apache-tomcat-9.0.109.tar.gz" + url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.111/bin/apache-tomcat-9.0.111.tar.gz" dest: "/root/" - name: untar the apache file - command: tar -zxvf apache-tomcat-9.0.109.tar.gz + command: tar -zxvf apache-tomcat-9.0.111.tar.gz - name: rename the tomcat - command: mv apache-tomcat-9.0.109 tomcat + command: mv apache-tomcat-9.0.111 tomcat tags: abc - name: install java From 24cd3f8caaff9c54e48c585c15b13d6956d9ae87 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 15 Oct 2025 19:55:14 +0530 Subject: [PATCH 55/88] Update jenkins.sh --- jenkins.sh | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/jenkins.sh b/jenkins.sh index d07bb33d..c2a2719f 100644 --- a/jenkins.sh +++ b/jenkins.sh @@ -1,15 +1,11 @@ #! /bin/bash -sudo apt update -y -sudo apt install -y openjdk-17-jdk -java -version -curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \ - /usr/share/keyrings/jenkins-keyring.asc > /dev/null - -echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ - https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ - /etc/apt/sources.list.d/jenkins.list > /dev/null -sudo apt update -y -sudo apt install -y jenkins -sudo systemctl start jenkins -sudo systemctl status jenkins +sudo wget -O /etc/yum.repos.d/jenkins.repo \ + https://pkg.jenkins.io/redhat-stable/jenkins.repo +sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key +sudo yum upgrade +# Add required dependencies for the jenkins package +yum install java-17-amazon-corretto jenkins -y +sudo yum install jenkins -y +sudo systemctl restart jenkins +sudo systemctl daemon-reload From b4a821802afb47198452d644a8fa863dd5500b22 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 30 Oct 2025 19:38:48 +0530 Subject: [PATCH 56/88] Update kops.sh --- kops.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kops.sh b/kops.sh index 1bab23b1..1b2b3ab9 100644 --- a/kops.sh +++ b/kops.sh @@ -1,6 +1,4 @@ -#vim .bashrc -#export PATH=$PATH:/usr/local/bin/ -#source .bashrc +echo "export PATH=$PATH:/usr/local/bin/" >> source .bashrc #! /bin/bash @@ -11,8 +9,6 @@ chmod +x kops-linux-amd64 kubectl mv kubectl /usr/local/bin/kubectl mv kops-linux-amd64 /usr/local/bin/kops -aws s3api create-bucket --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 -aws s3api put-bucket-versioning --bucket cloudanddevopsbyraham0073456.k8s.local --region us-east-1 --versioning-configuration Status=Enabled export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.large --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.medium kops update cluster --name rahams.k8s.local --yes --admin From 97e686689d222e75460e4d792be377db44254caf Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 30 Oct 2025 20:43:10 +0530 Subject: [PATCH 57/88] Update kops.sh --- kops.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kops.sh b/kops.sh index 1b2b3ab9..4acf3ac1 100644 --- a/kops.sh +++ b/kops.sh @@ -1,6 +1,3 @@ -echo "export PATH=$PATH:/usr/local/bin/" >> source .bashrc - - #! /bin/bash aws configure curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" @@ -8,6 +5,7 @@ wget https://github.com/kubernetes/kops/releases/download/v1.33.0/kops-linux-amd chmod +x kops-linux-amd64 kubectl mv kubectl /usr/local/bin/kubectl mv kops-linux-amd64 /usr/local/bin/kops +echo "export PATH=$PATH:/usr/local/bin/" >> source .bashrc export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.large --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.medium From f35a0d24f5891075188ce85a3a5679b5e4c11bd3 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 4 Nov 2025 16:43:09 +0530 Subject: [PATCH 58/88] Update 1.amazon.sh --- 1.amazon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.amazon.sh b/1.amazon.sh index b6aae3e2..00b774c7 100644 --- a/1.amazon.sh +++ b/1.amazon.sh @@ -3,4 +3,4 @@ sudo -i apt update apt install apache2 -y git clone https://github.com/Ironhack-Archive/online-clone-amazon.git -mv online-clone-amazon/* /var/www/html +mv online-clone-amazon/* /var/www/html/ From 7e2f56fda33a0c8a65794d7fca548c0e55283e8b Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 12 Nov 2025 09:42:31 +0530 Subject: [PATCH 59/88] Update docker-compose.sh --- docker-compose.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker-compose.sh b/docker-compose.sh index b7a5d488..682cc067 100644 --- a/docker-compose.sh +++ b/docker-compose.sh @@ -1,5 +1,4 @@ -sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose -ls /usr/local/bin/ +curl -SL https://github.com/docker/compose/releases/download/v2.40.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose +chmod +x /usr/local/bin/docker-compose sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose -sudo chmod +x /usr/local/bin/docker-compose docker-compose version From 12f877959c9268f29a3db800d84d349481593167 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 24 Nov 2025 10:23:51 +0530 Subject: [PATCH 60/88] Update kops.sh --- kops.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kops.sh b/kops.sh index 4acf3ac1..053f65dd 100644 --- a/kops.sh +++ b/kops.sh @@ -8,5 +8,5 @@ mv kops-linux-amd64 /usr/local/bin/kops echo "export PATH=$PATH:/usr/local/bin/" >> source .bashrc export KOPS_STATE_STORE=s3://cloudanddevopsbyraham0073456.k8s.local -kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-0f918f7e67a3323f0 --control-plane-count=1 --control-plane-size t2.large --image ami-0f918f7e67a3323f0 --node-count=2 --node-size t2.medium -kops update cluster --name rahams.k8s.local --yes --admin +kops create cluster --name rahamss.k8s.local --zones ap-south-1a --control-plane-image ami-02b8269d5e85954ef --control-plane-count=1 --control-plane-size c7i-flex.large --image ami-02b8269d5e85954ef --node-count=2 --node-size c7i-flex.large +kops update cluster --name rahamss.k8s.local --yes --admin From 1e54e55aea00bbc5d0de37190953246e1e178a2f Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 7 Jan 2026 17:51:21 +0530 Subject: [PATCH 61/88] Update 1.amazon.sh --- 1.amazon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.amazon.sh b/1.amazon.sh index 00b774c7..d8d1b272 100644 --- a/1.amazon.sh +++ b/1.amazon.sh @@ -1,6 +1,6 @@ #! /bin/bash sudo -i apt update -apt install apache2 -y +apt install apache2 git -y git clone https://github.com/Ironhack-Archive/online-clone-amazon.git mv online-clone-amazon/* /var/www/html/ From 56e5b6adf357a5fdcd99f321c536562d693d094f Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 2 Feb 2026 19:33:02 +0530 Subject: [PATCH 62/88] Create k8s-class --- k8s-class | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 k8s-class diff --git a/k8s-class b/k8s-class new file mode 100644 index 00000000..17f4d489 --- /dev/null +++ b/k8s-class @@ -0,0 +1,40 @@ +STEP-0: CREATE EC2 AND S3 BUCKET ON SAME REGION (bucket name: -----------.k8s.local) + +STEP-1: INSTALL CLI & GIVING PERMISSIONS (IAM) + +KOps Is a third party tool if it want to create infrastructure on aws +aws need to give permission for it so we can use IAM user to allocate permission for the kops tool + +IAM -- > USER -- > CREATE USER -- > NAME: KOPS -- > Attach Polocies Directly -- > AdministratorAccess -- > NEXT -- > CREATE USER +USER -- > SECURTITY CREDENTIALS -- > CREATE ACCESS KEYS -- > CLI -- > CHECKBOX -- > CREATE ACCESS KEYS -- > DOWNLOAD + +GIVING THE KEYS + +apt update -y && apt install unzip -y +curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +unzip awscliv2.zip +sudo ./aws/install +aws configure (run this command on server) + +SETP-2: INSTALL KUBECTL AND KOPS + + +curl -LO https://dl.k8s.io/release/v1.35.0/bin/linux/amd64/kubectl +wget https://github.com/kubernetes/kops/releases/download/v1.25.0/kops-linux-amd64 + +chmod +x kops-linux-amd64 kubectl +mv kubectl /usr/local/bin/kubectl +mv kops-linux-amd64 /usr/local/bin/kops + + + +export KOPS_STATE_STORE=s3://give your bucket name + +SETP-5: CREATING THE CLUSTER + +kops create cluster --name rahamss.k8s.local --zones us-east-1a --master-image ami-0360c520857e3138f --master-count 1 --master-size c7i-flex.large --node-image ami-0360c520857e3138f --node-count=2 --node-size c7i-flex.large + + +kops update cluster --name rahams.k8s.local --yes --admin + +kops validate cluster --wait 10m From b6c54487b428eb1779bf447d90e8e1a53b215c8a Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 4 Mar 2026 09:28:43 +0530 Subject: [PATCH 63/88] Update 1.amazon.sh --- 1.amazon.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/1.amazon.sh b/1.amazon.sh index d8d1b272..c9838721 100644 --- a/1.amazon.sh +++ b/1.amazon.sh @@ -4,3 +4,4 @@ apt update apt install apache2 git -y git clone https://github.com/Ironhack-Archive/online-clone-amazon.git mv online-clone-amazon/* /var/www/html/ + From a498e1514bada77f062b7d7d82ae736c9bcdeeb4 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 11 Mar 2026 06:55:10 +0530 Subject: [PATCH 64/88] Update tomcat.sh --- tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tomcat.sh b/tomcat.sh index 2ecf954a..6c52e827 100644 --- a/tomcat.sh +++ b/tomcat.sh @@ -1,11 +1,11 @@ sudo yum install java-17-amazon-corretto -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.107/bin/apache-tomcat-9.0.107.tar.gz -tar -zxvf apache-tomcat-9.0.107.tar.gz -sed -i '56 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.107/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.107/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.107/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.115/bin/apache-tomcat-9.0.115.tar.gz +tar -zxvf apache-tomcat-9.0.115.tar.gz +sed -i '56 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.115/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.115/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.115/bin/startup.sh From c0753233bde6dc4c5a5f040c11a16b0e5b620c1c Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 11 Mar 2026 06:55:25 +0530 Subject: [PATCH 65/88] Update ubuntu-tomcat.sh --- ubuntu-tomcat.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ubuntu-tomcat.sh b/ubuntu-tomcat.sh index 50c38707..01e27817 100644 --- a/ubuntu-tomcat.sh +++ b/ubuntu-tomcat.sh @@ -1,14 +1,15 @@ #! /bin/bash sudo apt update apt install openjdk-17-jre-headless -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.109/bin/apache-tomcat-9.0.109.tar.gz -tar -zxvf apache-tomcat-9.0.109.tar.gz -sed -i '56 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.109/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.109/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.109/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.109/webapps/manager/META-INF/context.xml -sudo sh apache-tomcat-9.0.109/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.115/bin/apache-tomcat-9.0.115.tar.gz +tar -zxvf apache-tomcat-9.0.115.tar.gz +sed -i '56 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.115/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.115/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.115/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.115/bin/startup.sh + From 44aeb29663be424a14854fb9635282a01b22fa5c Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 11 Mar 2026 06:55:55 +0530 Subject: [PATCH 66/88] Update ubuntu-jenkins.sh --- ubuntu-jenkins.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ubuntu-jenkins.sh b/ubuntu-jenkins.sh index 12eb946f..0a131709 100644 --- a/ubuntu-jenkins.sh +++ b/ubuntu-jenkins.sh @@ -2,13 +2,14 @@ sudo apt update -y sudo apt install -y openjdk-17-jdk java -version -curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \ - /usr/share/keyrings/jenkins-keyring.asc > /dev/null -echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ +sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \ + https://pkg.jenkins.io/debian-stable/jenkins.io-2026.key +echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc]" \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null -sudo apt update -y -sudo apt install -y jenkins +sudo apt update +sudo apt install jenkins + sudo systemctl start jenkins sudo systemctl status jenkins From a68fe33c3cb72a2df3478b3404ef54ae47bfe519 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 30 Mar 2026 23:47:45 +0530 Subject: [PATCH 67/88] Add script to install k3s and deploy Argo CD This script installs k3s, sets up kubectl, and deploys Argo CD in a new namespace. --- argocd-n.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 argocd-n.sh diff --git a/argocd-n.sh b/argocd-n.sh new file mode 100644 index 00000000..1bc5f5b7 --- /dev/null +++ b/argocd-n.sh @@ -0,0 +1,19 @@ +#! /bin/bash + +sudo apt update && sudo apt upgrade -y +sudo apt install -y curl wget git apt-transport-https ca-certificates gnupg lsb-release +sudo swapoff -a +sudo sed -i '/swap/d' /etc/fstab +curl -sfL https://get.k3s.io | sh - +sudo kubectl get nodes +mkdir -p ~/.kube +sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config +sudo chown $USER:$USER ~/.kube/config +kubectl get pods -A + +sleep 10 +kubectl create namespace argocd +kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml +kubectl get pods -n argocd +kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}' +kubectl get svc argocd-server -n argocd From 032181365d3d4ef0157ef9ccb20360ed55c468cc Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 31 Mar 2026 19:24:39 +0530 Subject: [PATCH 68/88] Update 1.amazon.sh --- 1.amazon.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/1.amazon.sh b/1.amazon.sh index c9838721..07783d65 100644 --- a/1.amazon.sh +++ b/1.amazon.sh @@ -5,3 +5,4 @@ apt install apache2 git -y git clone https://github.com/Ironhack-Archive/online-clone-amazon.git mv online-clone-amazon/* /var/www/html/ + From 25e052c5f2ad52d4244c3fbfa60ae6d455ef4641 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 3 Apr 2026 10:00:16 +0530 Subject: [PATCH 69/88] Rename pegion-ubuntu.sh to ubuntu-pegion.sh --- pegion-ubuntu.sh => ubuntu-pegion.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename pegion-ubuntu.sh => ubuntu-pegion.sh (100%) diff --git a/pegion-ubuntu.sh b/ubuntu-pegion.sh similarity index 100% rename from pegion-ubuntu.sh rename to ubuntu-pegion.sh From 6c4d13bf9ecc26ab2e2c6201eb503475d61382d2 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 9 Apr 2026 10:24:53 +0530 Subject: [PATCH 70/88] Create alertmanager.sh --- alertmanager.sh | 86 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 alertmanager.sh diff --git a/alertmanager.sh b/alertmanager.sh new file mode 100644 index 00000000..a5af04aa --- /dev/null +++ b/alertmanager.sh @@ -0,0 +1,86 @@ +#!/bin/bash + +set -e + +# Variables +VERSION="0.18.0" +USER="alertmanager" +INSTALL_DIR="/usr/local/bin" +CONFIG_DIR="/etc/alertmanager" +DATA_DIR="/data/alertmanager" + +# Download Alertmanager +cd /tmp +wget https://github.com/prometheus/alertmanager/releases/download/v${VERSION}/alertmanager-${VERSION}.linux-amd64.tar.gz + +# Extract +tar -xvzf alertmanager-${VERSION}.linux-amd64.tar.gz + +# Move binaries +sudo mv alertmanager-${VERSION}.linux-amd64/alertmanager ${INSTALL_DIR}/ +sudo mv alertmanager-${VERSION}.linux-amd64/amtool ${INSTALL_DIR}/ + +# Create user (if not exists) +id -u ${USER} &>/dev/null || sudo useradd -rs /bin/false ${USER} + +# Create directories +sudo mkdir -p ${CONFIG_DIR} +sudo mkdir -p ${DATA_DIR} + +# Create basic config (edit later for email/slack) +sudo tee ${CONFIG_DIR}/alertmanager.yml > /dev/null </dev/null || true +sudo systemctl disable alertmanager 2>/dev/null || true +sudo systemctl unmask alertmanager 2>/dev/null || true +sudo rm -f /etc/systemd/system/alertmanager.service +sudo rm -f /lib/systemd/system/alertmanager.service + +# Create systemd service (CORRECT LOCATION) +sudo tee /etc/systemd/system/alertmanager.service > /dev/null <:9093" From 4104e81dc8fb9bfb6dad2891bee4c5851dd7ec50 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 10 Apr 2026 17:57:31 +0530 Subject: [PATCH 71/88] Update ubuntu-tomcat.sh --- ubuntu-tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ubuntu-tomcat.sh b/ubuntu-tomcat.sh index 01e27817..f065e392 100644 --- a/ubuntu-tomcat.sh +++ b/ubuntu-tomcat.sh @@ -1,15 +1,15 @@ #! /bin/bash sudo apt update apt install openjdk-17-jre-headless -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.115/bin/apache-tomcat-9.0.115.tar.gz -tar -zxvf apache-tomcat-9.0.115.tar.gz -sed -i '56 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.115/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.115/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.115/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.115/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.115/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.117/bin/apache-tomcat-9.0.117.tar.gz +tar -zxvf apache-tomcat-9.0.117.tar.gz +sed -i '56 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.117/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.117/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.117/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.117/bin/startup.sh From 49f97b51e80e1eab8009b3af1e0111a4ad503f90 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 10 Apr 2026 18:25:00 +0530 Subject: [PATCH 72/88] Create ubuntu-awscli --- ubuntu-awscli | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ubuntu-awscli diff --git a/ubuntu-awscli b/ubuntu-awscli new file mode 100644 index 00000000..21e6b32a --- /dev/null +++ b/ubuntu-awscli @@ -0,0 +1,4 @@ +curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +apt install unzip curl -y +unzip awscliv2.zip +sudo ./aws/install From 6f89fe890cebbc50e8dae266c41559e6c4766da1 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:31:18 +0530 Subject: [PATCH 73/88] Update tomcat.yml --- tomcat.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tomcat.yml b/tomcat.yml index 49c144f2..00a3dcdd 100644 --- a/tomcat.yml +++ b/tomcat.yml @@ -2,15 +2,15 @@ tasks: - name: download tomcat from dlcdn get_url: - url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.111/bin/apache-tomcat-9.0.111.tar.gz" + url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.117/bin/apache-tomcat-9.0.117.tar.gz" dest: "/root/" - name: untar the apache file - command: tar -zxvf apache-tomcat-9.0.111.tar.gz + command: tar -zxvf apache-tomcat-9.0.117.tar.gz - name: rename the tomcat - command: mv apache-tomcat-9.0.111 tomcat + command: mv apache-tomcat-9.0.117 tomcat tags: abc - name: install java From f93462c27f3dc00b3df255f7be6fe18629401637 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 20 Apr 2026 17:48:29 +0530 Subject: [PATCH 74/88] Update jenkins.sh --- jenkins.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkins.sh b/jenkins.sh index c2a2719f..7ed488e4 100644 --- a/jenkins.sh +++ b/jenkins.sh @@ -5,7 +5,7 @@ sudo wget -O /etc/yum.repos.d/jenkins.repo \ sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io-2023.key sudo yum upgrade # Add required dependencies for the jenkins package -yum install java-17-amazon-corretto jenkins -y +sudo yum install java-21-amazon-corretto sudo yum install jenkins -y sudo systemctl restart jenkins sudo systemctl daemon-reload From 00b7d9c1acff0ba11c2109dfdbc5984a8bc40ad2 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 24 Apr 2026 11:11:47 +0530 Subject: [PATCH 75/88] Update ubuntu-pegion.sh --- ubuntu-pegion.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ubuntu-pegion.sh b/ubuntu-pegion.sh index 3d58edcd..fa18c183 100644 --- a/ubuntu-pegion.sh +++ b/ubuntu-pegion.sh @@ -19,14 +19,10 @@ global: scrape_interval: 10s scrape_configs: - - job_name: 'prometheus_metrics' + - job_name: 'metrics' scrape_interval: 5s static_configs: - - targets: ['localhost:9090'] - - job_name: 'node_exporter_metrics' - scrape_interval: 5s - static_configs: - - targets: ['localhost:9100','worker-1:9100','worker-2:9100'] + - targets: [''] EOF From 95c6534f62791f51f86d06253a4e1c84788daf29 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Fri, 24 Apr 2026 11:25:07 +0530 Subject: [PATCH 76/88] Update alertmanager.sh --- alertmanager.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/alertmanager.sh b/alertmanager.sh index a5af04aa..acf3561c 100644 --- a/alertmanager.sh +++ b/alertmanager.sh @@ -21,6 +21,7 @@ sudo mv alertmanager-${VERSION}.linux-amd64/alertmanager ${INSTALL_DIR}/ sudo mv alertmanager-${VERSION}.linux-amd64/amtool ${INSTALL_DIR}/ # Create user (if not exists) +sudo useradd alertmanager id -u ${USER} &>/dev/null || sudo useradd -rs /bin/false ${USER} # Create directories From 350f54fa6ee888c2460aeae0c68a1749d43df7d1 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 11 Jun 2026 19:34:37 +0530 Subject: [PATCH 77/88] Update ubuntu-nexus.sh --- ubuntu-nexus.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubuntu-nexus.sh b/ubuntu-nexus.sh index a226c6ad..bdc289b9 100644 --- a/ubuntu-nexus.sh +++ b/ubuntu-nexus.sh @@ -1,7 +1,8 @@ #! /bin/bash wget https://download.sonatype.com/nexus/3/nexus-unix-x86-64-3.79.0-09.tar.gz tar -zxvf nexus-unix-x86-64-3.79.0-09.tar.gz -yum install java-17-amazon-corretto -y +sudo apt update -y +sudo apt install -y openjdk-17-jdk sudo useradd nexus chown -R nexus:nexus nexus-3.79.0-09 sudo sh nexus-3.79.0-09/bin/nexus start From 7c1caf97591882758e26069b2975a25fdfcc4267 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 15 Jun 2026 19:25:02 +0530 Subject: [PATCH 78/88] Update ubuntu-jenkins.sh --- ubuntu-jenkins.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ubuntu-jenkins.sh b/ubuntu-jenkins.sh index 0a131709..bb8d0ea9 100644 --- a/ubuntu-jenkins.sh +++ b/ubuntu-jenkins.sh @@ -1,6 +1,6 @@ #! /bin/bash -sudo apt update -y -sudo apt install -y openjdk-17-jdk +sudo apt update +sudo apt install fontconfig openjdk-21-jre -y java -version sudo wget -O /etc/apt/keyrings/jenkins-keyring.asc \ @@ -9,7 +9,7 @@ echo "deb [signed-by=/etc/apt/keyrings/jenkins-keyring.asc]" \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt update -sudo apt install jenkins +sudo apt install jenkins -y sudo systemctl start jenkins sudo systemctl status jenkins From c24c1a9c5c8c470e7a9965307170c99e0063f5af Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Mon, 15 Jun 2026 19:26:27 +0530 Subject: [PATCH 79/88] Update ubuntu-tomcat.sh --- ubuntu-tomcat.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ubuntu-tomcat.sh b/ubuntu-tomcat.sh index f065e392..f6c24ada 100644 --- a/ubuntu-tomcat.sh +++ b/ubuntu-tomcat.sh @@ -1,15 +1,15 @@ #! /bin/bash sudo apt update apt install openjdk-17-jre-headless -y -wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.117/bin/apache-tomcat-9.0.117.tar.gz -tar -zxvf apache-tomcat-9.0.117.tar.gz -sed -i '56 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml -sed -i '57 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml -sed -i '58 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml -sed -i '59 a\' apache-tomcat-9.0.117/conf/tomcat-users.xml -sed -i '56d' apache-tomcat-9.0.117/conf/tomcat-users.xml -sed -i '21d' apache-tomcat-9.0.117/webapps/manager/META-INF/context.xml -sed -i '22d' apache-tomcat-9.0.117/webapps/manager/META-INF/context.xml -sh apache-tomcat-9.0.117/bin/startup.sh +wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.118/bin/apache-tomcat-9.0.118.tar.gz +tar -zxvf apache-tomcat-9.0.118.tar.gz +sed -i '56 a\' apache-tomcat-9.0.118/conf/tomcat-users.xml +sed -i '57 a\' apache-tomcat-9.0.118/conf/tomcat-users.xml +sed -i '58 a\' apache-tomcat-9.0.118/conf/tomcat-users.xml +sed -i '59 a\' apache-tomcat-9.0.118/conf/tomcat-users.xml +sed -i '56d' apache-tomcat-9.0.118/conf/tomcat-users.xml +sed -i '21d' apache-tomcat-9.0.118/webapps/manager/META-INF/context.xml +sed -i '22d' apache-tomcat-9.0.118/webapps/manager/META-INF/context.xml +sh apache-tomcat-9.0.118/bin/startup.sh From 90898ddf63d90fa533ff61d423bd67ceb1bd9b27 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 7 Jul 2026 07:33:46 +0530 Subject: [PATCH 80/88] Update argocd-n.sh --- argocd-n.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/argocd-n.sh b/argocd-n.sh index 1bc5f5b7..d2c5b280 100644 --- a/argocd-n.sh +++ b/argocd-n.sh @@ -13,7 +13,8 @@ kubectl get pods -A sleep 10 kubectl create namespace argocd -kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml +kubectl create namespace argocd +kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml kubectl get pods -n argocd kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}' kubectl get svc argocd-server -n argocd From 671dd3d805f6fb92940ad82ce1cd76cd1e90874e Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 21 Jul 2026 06:10:10 +0530 Subject: [PATCH 81/88] Update argocd.sh --- argocd.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/argocd.sh b/argocd.sh index 50f8ac6c..75145a34 100644 --- a/argocd.sh +++ b/argocd.sh @@ -15,13 +15,6 @@ kubectl get all -n argocd #EXPOSE ARGOCD SERVER: kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}' -yum install jq -y -export ARGOCD_SERVER='kubectl get svc argocd-server -n argocd -o json | jq --raw-output '.status.loadBalancer.ingress[0].hostname'' -echo $ARGOCD_SERVER -kubectl get svc argocd-server -n argocd -o json | jq --raw-output .status.loadBalancer.ingress[0].hostname +kubectl get svc -n argocd - -#TO GET ARGO CD PASSWORD: -export ARGO_PWD='kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d' -echo $ARGO_PWD -kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d +kubectl -n argocd get secret argocd-initial-admin-secret | base64 -d; echo From 1986ae50899fe8b7225925265918d80d9a9842b2 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 21 Jul 2026 06:32:32 +0530 Subject: [PATCH 82/88] Create helm-Pegion --- helm-Pegion | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 helm-Pegion diff --git a/helm-Pegion b/helm-Pegion new file mode 100644 index 00000000..12a67608 --- /dev/null +++ b/helm-Pegion @@ -0,0 +1,60 @@ +INSTALLATION OF HELM: +curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 +chmod 700 get_helm.sh +./get_helm.sh +helm version + + +INSTALLATION OF METRIC SERVER: +kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/high-availability-1.21+.yaml + +CHARTS WEBSITE LINK: https://artifacthub.io/ + +DOWNLOADING CHARTS PROMETHEUS & GRAFANA: +helm repo add prometheus-community https://prometheus-community.github.io/helm-charts +helm repo add grafana https://grafana.github.io/helm-charts + + +UPDATE HELM CHART REPOS: +helm repo update +helm repo list + +CREATE PROMETHEUS NAMESPACE: +kubectl create namespace prometheus +kubectl get ns + +INSTALL PROMETHEUS: +helm template prometheus-community/prometheus + +helm install prometheus prometheus-community/prometheus --namespace prometheus --set alertmanager.persistentVolume.storageClass="gp2" --set server.persistentVolume.storageClass="gp2" +kubectl get all -n prometheus + +CREATE GRAFANA NAMESPACE: +kubectl create namespace grafana + +INSTALL GRAFANA: +helm template grafana grafana/grafana + +helm uninstall grafana grafana/grafana --namespace grafana + +helm install grafana grafana/grafana --namespace grafana --set persistence.storageClassName="gp2" --set persistence.enabled=true --set adminPassword='RahamDevOps' --set service.type=LoadBalancer +kubectl get all -n grafana +kubectl get svc -n grafana + + +#use for kubeadm/killerkoda +helm install grafana grafana/grafana --namespace grafana --set adminPassword='RahamDevOps' --set service.type=NodePort + + +NOTE: ALLOW PORTS ON SG + +Copy the EXTERNAL-IP and paste in browser + +Go to Grafana Dashboard → Add the Datasource → Select the Prometheus +add the below url in Connection and save and test +http://prometheus-server.prometheus.svc.cluster.local/ + + +Import Grafana dashboard from Grafana Labs +grafana dashboard → new → Import → 6417 → load → select prometheus → import + From 7fa10acb76991926fa19c490e6575f7b76b0e73d Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Tue, 21 Jul 2026 06:35:43 +0530 Subject: [PATCH 83/88] Update helm-Pegion --- helm-Pegion | 4 ---- 1 file changed, 4 deletions(-) diff --git a/helm-Pegion b/helm-Pegion index 12a67608..8970deb0 100644 --- a/helm-Pegion +++ b/helm-Pegion @@ -34,12 +34,8 @@ kubectl create namespace grafana INSTALL GRAFANA: helm template grafana grafana/grafana - -helm uninstall grafana grafana/grafana --namespace grafana - helm install grafana grafana/grafana --namespace grafana --set persistence.storageClassName="gp2" --set persistence.enabled=true --set adminPassword='RahamDevOps' --set service.type=LoadBalancer kubectl get all -n grafana -kubectl get svc -n grafana #use for kubeadm/killerkoda From ee48977b289f2d61d8407c8d08240707f0115087 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Wed, 22 Jul 2026 00:23:06 +0530 Subject: [PATCH 84/88] Update argocd-n.sh --- argocd-n.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/argocd-n.sh b/argocd-n.sh index d2c5b280..defd7e58 100644 --- a/argocd-n.sh +++ b/argocd-n.sh @@ -12,7 +12,7 @@ sudo chown $USER:$USER ~/.kube/config kubectl get pods -A sleep 10 -kubectl create namespace argocd + kubectl create namespace argocd kubectl apply -n argocd --server-side --force-conflicts -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml kubectl get pods -n argocd From af922d24f56e5c0ebf3c71a906beb98ac14c53a6 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 23 Jul 2026 06:47:08 +0530 Subject: [PATCH 85/88] Create eks.sh --- eks.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 eks.sh diff --git a/eks.sh b/eks.sh new file mode 100644 index 00000000..669ea789 --- /dev/null +++ b/eks.sh @@ -0,0 +1,48 @@ +SETUP: TAKE UBUNTU AMI M7I-FLEX.LARGE AND 30 GB EBS FOR THIS CONCEPT + +#STEP-1: UPDATE + +sudo -i +apt update && apt install unzip -y + +#STEP-2: AWS CLI INSTALLATION & EKS & KUBECTL + +curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" +unzip awscliv2.zip +sudo ./aws/install +aws configure + +curl -LO https://dl.k8s.io/release/v1.35.0/bin/linux/amd64/kubectl +chmod +x kubectl +mv kubectl /usr/local/bin/kubectl + + +sudo wget https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz +sudo tar -xzvf eksctl_$(uname -s)_amd64.tar.gz -C /usr/local/bin +eksctl version + + +#STEP-3: CREATE CLUSTER +eksctl create cluster --name=raham-cluster --version 1.32 --zones=ap-south-1a,ap-south-1b,ap-south-1c --without-nodegroup + + +kubectl cluster-info +kubectl cluster-info dump + +eksctl utils associate-iam-oidc-provider --region ap-south-1 --cluster raham-cluster --approve + +#STEP-4: CREATE NODEGROUP +eksctl create nodegroup --cluster=raham-cluster --region=ap-south-1 \ +--name=raham-cluster-ng-1 --node-type=t2.medium \ +--nodes=2 --nodes-min=2 --nodes-max=4 --node-volume-size=20 \ +--ssh-access --ssh-public-key=Mac \ +--managed --asg-access --external-dns-access --full-ecr-access \ +--appmesh-access --alb-ingress-access + + +eksctl get clusters +eksctl get nodegroup --cluster raham-cluster + +#STEP-5: DELETE RESOURCES +eksctl delete nodegroup --cluster raham-cluster --name raham-cluster-ng-1 +eksctl delete cluster --name=raham-cluster From 0c20b0b35f82152d4a4d1da638db5dfab882ae37 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 30 Jul 2026 06:46:36 +0530 Subject: [PATCH 86/88] Add Helm installation instructions for monitoring tools Added installation instructions for Prometheus, Grafana, and Argo CD using Helm, including namespace creation and service exposure steps. --- helm-tools.sh | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 helm-tools.sh diff --git a/helm-tools.sh b/helm-tools.sh new file mode 100644 index 00000000..7be8b655 --- /dev/null +++ b/helm-tools.sh @@ -0,0 +1,90 @@ +#PROMETHEUS GRAFANA + +INSTALLATION OF HELM: +curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 +chmod 700 get_helm.sh +./get_helm.sh +helm version + + +INSTALLATION OF METRIC SERVER: +kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/high-availability-1.21+.yaml + +CHARTS WEBSITE LINK: https://artifacthub.io/ + +DOWNLOADING CHARTS PROMETHEUS & GRAFANA: +helm repo add prometheus-community https://prometheus-community.github.io/helm-charts +helm repo add grafana https://grafana.github.io/helm-charts + + +UPDATE HELM CHART REPOS: +helm repo update +helm repo list + +CREATE PROMETHEUS NAMESPACE: +kubectl create namespace prometheus +kubectl create namespace grafana +kubectl get ns + +INSTALL PROMETHEUS: + +helm install prometheus prometheus-community/prometheus --namespace prometheus --set alertmanager.persistentVolume.storageClass="gp2" --set server.persistentVolume.storageClass="gp2" +kubectl get all -n prometheus + +INSTALL GRAFANA: + +helm install grafana grafana/grafana --namespace grafana --set adminPassword='RahamDevOps' --set service.type=NodePort +kubectl get all -n grafana +kubectl get svc -n grafana + +NOTE: ALLOW PORTS ON SG + +Copy the EXTERNAL-IP and paste in browser + +Go to Grafana Dashboard → Add the Datasource → Select the Prometheus +add the below url in Connection and save and test +http://prometheus-server.prometheus.svc.cluster.local/ + +Import Grafana dashboard from Grafana Labs +grafana dashboard → new → Import → 14623 → load → select prometheus → import + + +#ARGOCD INSTALLATION + + +STEP-1: INSTALL ARGO CD USING HELM +helm repo add argo-cd https://argoproj.github.io/argo-helm +helm repo update +kubectl create namespace argocd +helm install argocd argo-cd/argo-cd -n argocd +kubectl get all -n argocd + + +EXPOSE ARGOCD SERVER: +kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "LoadBalancer"}}' +kubectl get all -n argocd +NOTE: GIVE OR CHECK SG FOR PORTS + +COPY PASTE DNS TO BROWSER -- > ADVANCE -- > LOGIN PAGE + +username: admin +passowd: + +TO GET ARGO CD PASSWORD: + +kubectl -n argocd get secret argocd-initial-admin-secret -o yaml +decode the above secret (echo -n "data" | base64 -d) + + +The above command to provide password to access argo cd + +# DEPLOYMENT +NEW APP +NAME: APP1 +PROJECT NAME: default +Sync Policy: Manual +REPO: https://github.com/devopsbyraham/argocd.git +PATH: ./ +CLUSTER URL: https://kubernetes.default.svc +NAMESPACE: default +CREATE From 51b0957a03d5f8369bbe06bde61738956c732b67 Mon Sep 17 00:00:00 2001 From: RAHAMSHAIK <81603735+RAHAMSHAIK007@users.noreply.github.com> Date: Thu, 30 Jul 2026 06:48:49 +0530 Subject: [PATCH 87/88] Update helm-tools.sh --- helm-tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-tools.sh b/helm-tools.sh index 7be8b655..9b6cad6e 100644 --- a/helm-tools.sh +++ b/helm-tools.sh @@ -46,7 +46,7 @@ add the below url in Connection and save and test http://prometheus-server.prometheus.svc.cluster.local/ Import Grafana dashboard from Grafana Labs -grafana dashboard → new → Import → 14623 → load → select prometheus → import +grafana dashboard → new → Import → 15757 → load → select prometheus → import #ARGOCD INSTALLATION From 08a5fa52d262a66ed48b93cef163af6227911de0 Mon Sep 17 00:00:00 2001 From: Kiran-devops-aws Date: Thu, 20 Aug 2026 09:00:02 +0530 Subject: [PATCH 88/88] Update nexus.sh --- nexus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus.sh b/nexus.sh index 6c82e0af..57023601 100644 --- a/nexus.sh +++ b/nexus.sh @@ -2,7 +2,7 @@ wget https://download.sonatype.com/nexus/3/nexus-unix-x86-64-3.79.0-09.tar.gz\ tar -zxvf nexus-unix-x86-64-3.79.0-09.tar.gz -yum install java-17-amazon-corretto -y +yum install java-21-amazon-corretto -y sudo useradd nexus chown -R nexus:nexus nexus-3.79.0-09 sudo sh nexus-3.79.0-09/bin/nexus start