Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
cbe539d
Create 2023mysql.sh
RAHAMSHAIK007 Sep 18, 2024
3a70f96
Create whatsapp.sh
RAHAMSHAIK007 Sep 19, 2024
c8276a9
Update whatsapp.sh
RAHAMSHAIK007 Sep 19, 2024
d6be5f3
Update swiggy.sh
RAHAMSHAIK007 Sep 20, 2024
de94660
Create terraformer
RAHAMSHAIK007 Oct 4, 2024
b54e9d3
Update jfrog.sh
RAHAMSHAIK007 Oct 5, 2024
5733e2a
Update terraformer
RAHAMSHAIK007 Oct 7, 2024
5b4dc65
Create amazon.sh
RAHAMSHAIK007 Oct 7, 2024
5cbca95
Update tomcat.sh
RAHAMSHAIK007 Oct 16, 2024
2b42b2d
Update nexus.sh
RAHAMSHAIK007 Oct 23, 2024
2d0be38
Update nexus.sh
RAHAMSHAIK007 Oct 23, 2024
bc478ae
Update jenkins.sh
RAHAMSHAIK007 Nov 6, 2024
64657ed
Create trivy.sh
RAHAMSHAIK007 Nov 11, 2024
e33402a
Create opentofu.sh
RAHAMSHAIK007 Nov 15, 2024
41c6629
Update kops.sh
RAHAMSHAIK007 Nov 22, 2024
e229747
Update terraformer
RAHAMSHAIK007 Nov 29, 2024
0f49c6c
Update tomcat.sh
RAHAMSHAIK007 Dec 3, 2024
40f14d2
Update jfrog.sh
RAHAMSHAIK007 Dec 7, 2024
274bea7
Update jfrog.sh
RAHAMSHAIK007 Dec 7, 2024
24149b2
Update tomcat.yml
RAHAMSHAIK007 Dec 9, 2024
4b3909d
Update tomcat.sh
RAHAMSHAIK007 Dec 9, 2024
415b3b1
Update amazon.sh
RAHAMSHAIK007 Dec 15, 2024
467b1a6
Create argocd.sh
RAHAMSHAIK007 Jan 4, 2025
a3f4bce
Update tomcat.sh
RAHAMSHAIK007 Mar 25, 2025
abc8134
Update nexus.sh
RAHAMSHAIK007 Apr 3, 2025
ce1e4de
Update nexus.sh
RAHAMSHAIK007 Apr 3, 2025
2a01057
Update tomcat.yml
RAHAMSHAIK007 Apr 4, 2025
db5ca37
Create portainer
RAHAMSHAIK007 Apr 11, 2025
8b7c569
Update ubuntu-kops.sh
RAHAMSHAIK007 May 8, 2025
5d602eb
Create ubuntu-jenkins.sh
RAHAMSHAIK007 May 8, 2025
44ca688
Update kops.sh
devopsbyraham Jun 17, 2025
e53d879
Merge pull request #23 from devopsbyraham/patch-2
RAHAMSHAIK007 Jun 17, 2025
1316e68
Create 1.amazon.sh
RAHAMSHAIK007 Jul 4, 2025
67de795
Update 1.amazon.sh
RAHAMSHAIK007 Jul 8, 2025
0cf01ba
Update jenkins.sh
RAHAMSHAIK007 Jul 15, 2025
cf58765
Update tomcat.sh
RAHAMSHAIK007 Jul 22, 2025
0f0a37f
Update ubuntu-jenkins.sh
RAHAMSHAIK007 Jul 28, 2025
9ce00bb
Create ubuntu-nexus.sh
RAHAMSHAIK007 Jul 28, 2025
e9add2d
Create ubuntu-tomcat.sh
RAHAMSHAIK007 Jul 28, 2025
baa52f4
Update ubuntu-tomcat.sh
RAHAMSHAIK007 Jul 28, 2025
e75e8d4
Update ubuntu-jenkins.sh
RAHAMSHAIK007 Jul 29, 2025
3c6e973
Update tomcat.yml
RAHAMSHAIK007 Jul 30, 2025
29fa71e
Update trivy.sh
RAHAMSHAIK007 Aug 9, 2025
984d4ec
Update kops.sh
RAHAMSHAIK007 Aug 12, 2025
0d4c3f8
Update ubuntu-kops.sh
RAHAMSHAIK007 Aug 13, 2025
ea98c92
Update kops.sh
RAHAMSHAIK007 Aug 13, 2025
02f6796
Update kops.sh
RAHAMSHAIK007 Aug 13, 2025
42507f1
Update ubuntu-kops.sh
RAHAMSHAIK007 Aug 19, 2025
9baab0b
Update kops.sh
RAHAMSHAIK007 Aug 22, 2025
ebad28d
Update ubuntu-tomcat.sh
RAHAMSHAIK007 Aug 28, 2025
969f614
Update ubuntu-kops.sh
RAHAMSHAIK007 Sep 1, 2025
3b48305
Create master-slave
RAHAMSHAIK007 Sep 2, 2025
2a97227
Update tomcat.yml
RAHAMSHAIK007 Sep 9, 2025
c25d846
Update ubuntu-tomcat.sh
RAHAMSHAIK007 Sep 24, 2025
27376ee
Update tomcat.yml
RAHAMSHAIK007 Oct 14, 2025
24cd3f8
Update jenkins.sh
RAHAMSHAIK007 Oct 15, 2025
b4a8218
Update kops.sh
RAHAMSHAIK007 Oct 30, 2025
97e6866
Update kops.sh
RAHAMSHAIK007 Oct 30, 2025
f35a0d2
Update 1.amazon.sh
RAHAMSHAIK007 Nov 4, 2025
7e2f56f
Update docker-compose.sh
RAHAMSHAIK007 Nov 12, 2025
12f8779
Update kops.sh
RAHAMSHAIK007 Nov 24, 2025
1e54e55
Update 1.amazon.sh
RAHAMSHAIK007 Jan 7, 2026
56e5b6a
Create k8s-class
RAHAMSHAIK007 Feb 2, 2026
b6c5448
Update 1.amazon.sh
RAHAMSHAIK007 Mar 4, 2026
a498e15
Update tomcat.sh
RAHAMSHAIK007 Mar 11, 2026
c075323
Update ubuntu-tomcat.sh
RAHAMSHAIK007 Mar 11, 2026
44aeb29
Update ubuntu-jenkins.sh
RAHAMSHAIK007 Mar 11, 2026
a68fe33
Add script to install k3s and deploy Argo CD
RAHAMSHAIK007 Mar 30, 2026
0321813
Update 1.amazon.sh
RAHAMSHAIK007 Mar 31, 2026
25e052c
Rename pegion-ubuntu.sh to ubuntu-pegion.sh
RAHAMSHAIK007 Apr 3, 2026
6c4d13b
Create alertmanager.sh
RAHAMSHAIK007 Apr 9, 2026
4104e81
Update ubuntu-tomcat.sh
RAHAMSHAIK007 Apr 10, 2026
49f97b5
Create ubuntu-awscli
RAHAMSHAIK007 Apr 10, 2026
6f89fe8
Update tomcat.yml
RAHAMSHAIK007 Apr 17, 2026
f93462c
Update jenkins.sh
RAHAMSHAIK007 Apr 20, 2026
00b7d9c
Update ubuntu-pegion.sh
RAHAMSHAIK007 Apr 24, 2026
95c6534
Update alertmanager.sh
RAHAMSHAIK007 Apr 24, 2026
350f54f
Update ubuntu-nexus.sh
RAHAMSHAIK007 Jun 11, 2026
7c1caf9
Update ubuntu-jenkins.sh
RAHAMSHAIK007 Jun 15, 2026
c24c1a9
Update ubuntu-tomcat.sh
RAHAMSHAIK007 Jun 15, 2026
90898dd
Update argocd-n.sh
RAHAMSHAIK007 Jul 7, 2026
671dd3d
Update argocd.sh
RAHAMSHAIK007 Jul 21, 2026
1986ae5
Create helm-Pegion
RAHAMSHAIK007 Jul 21, 2026
7fa10ac
Update helm-Pegion
RAHAMSHAIK007 Jul 21, 2026
ee48977
Update argocd-n.sh
RAHAMSHAIK007 Jul 21, 2026
af922d2
Create eks.sh
RAHAMSHAIK007 Jul 23, 2026
0c20b0b
Add Helm installation instructions for monitoring tools
RAHAMSHAIK007 Jul 30, 2026
51b0957
Update helm-tools.sh
RAHAMSHAIK007 Jul 30, 2026
08a5fa5
Update nexus.sh
Kiran-devops-aws Aug 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions 1.amazon.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/bash
sudo -i
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/


5 changes: 5 additions & 0 deletions 2023mysql.sh
Original file line number Diff line number Diff line change
@@ -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
87 changes: 87 additions & 0 deletions alertmanager.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
#!/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)
sudo useradd alertmanager
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 <<EOF
global:
resolve_timeout: 5m

route:
receiver: "default"

receivers:
- name: "default"
EOF

# Set permissions
sudo chown -R ${USER}:${USER} ${CONFIG_DIR}
sudo chown -R ${USER}:${USER} ${DATA_DIR}
sudo chown ${USER}:${USER} ${INSTALL_DIR}/alertmanager ${INSTALL_DIR}/amtool

# Remove old/masked service if exists
sudo systemctl stop alertmanager 2>/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 <<EOF
[Unit]
Description=Prometheus Alertmanager
Wants=network-online.target
After=network-online.target

[Service]
User=${USER}
Group=${USER}
Type=simple
ExecStart=${INSTALL_DIR}/alertmanager \\
--config.file=${CONFIG_DIR}/alertmanager.yml \\
--storage.path=${DATA_DIR}

Restart=always

[Install]
WantedBy=multi-user.target
EOF

# Reload systemd
sudo systemctl daemon-reexec
sudo systemctl daemon-reload

# Enable & start service
sudo systemctl enable alertmanager
sudo systemctl start alertmanager

# Status check
sudo systemctl status alertmanager --no-pager

echo "Access Alertmanager UI: http://<your-server-ip>:9093"
8 changes: 8 additions & 0 deletions amazon.sh
Original file line number Diff line number Diff line change
@@ -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 -f /var/log/httpd/access_log
20 changes: 20 additions & 0 deletions argocd-n.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /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 --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
20 changes: 20 additions & 0 deletions argocd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#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"}}'
kubectl get svc -n argocd

kubectl -n argocd get secret argocd-initial-admin-secret | base64 -d; echo
5 changes: 2 additions & 3 deletions docker-compose.sh
Original file line number Diff line number Diff line change
@@ -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
48 changes: 48 additions & 0 deletions eks.sh
Original file line number Diff line number Diff line change
@@ -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
56 changes: 56 additions & 0 deletions helm-Pegion
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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 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


#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

90 changes: 90 additions & 0 deletions helm-tools.sh
Original file line number Diff line number Diff line change
@@ -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 → 15757 → 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
22 changes: 9 additions & 13 deletions jenkins.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
#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
#! /bin/bash
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

#STEP-3: DOWNLOAD JAVA11 AND JENKINS
amazon-linux-extras install java-openjdk11 -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
sudo yum upgrade
# Add required dependencies for the jenkins package
sudo yum install java-21-amazon-corretto
sudo yum install jenkins -y
sudo systemctl restart jenkins
sudo systemctl daemon-reload
12 changes: 6 additions & 6 deletions jfrog.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /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
sudo sh jfrog-artifactory-oss-6.9.6/bin/artifactory.sh start
Loading