Skip to content

MnifR/SAST-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install ZSH,tmux, neofetch and Oh-My-ZSH framework (OPTIONAL)

sudo bash <(wget -nv -O - https://gist.githubusercontent.com/MnifR/7d0dcdb0ec1a6351cd05f7cca71c8b2a/raw/47232232a5ecee4636fd68eb7c77f24d3af76a0b/install-zsh.sh)

Install Docker CE

Install Docker CE

sudo apt install apt-transport-https ca-certificates curl software-properties-common
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
sudo apt install docker-ce
sudo systemctl status docker
sudo usermod -aG docker ${USER}

Install Kind

sudo curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.10.0/kind-linux-amd64
sudo chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
which kind
kind version
sudo kind create cluster --name demo
sudo kind get clusters
sudo kubectl get nodes
sudo grep server ~/.kube/config

Install Kubectl

sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
kubectl version

Install Helm 3

sudo curl https://baltocdn.com/helm/signing.asc | sudo apt-key add -
echo "deb https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm
helm version --short

Install metalLB

kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/master/manifests/namespace.yaml
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/master/manifests/metallb.yaml
kubectl get pods -n metallb-system --watch
kubectl -n metallb-system get all
docker network inspect -f '{{.IPAM.Config}}' kind
vim metallb-conf.yaml
kubectl create -f metallb-conf.yaml
------------- TEST Metal LB--------------
kubectl create deploy nginx --image nginx
kubectl get pods -w
kubectl expose deploy nginx --port 80 --type LoadBalancer
kubectl create deploy nginx --image nginx
kubectl get all

Install Jenkins with helm

helm repo add jenkins https://charts.jenkins.io
helm repo update
wget https://raw.githubusercontent.com/jenkinsci/helm-charts/main/charts/jenkins/values.yaml
vim values.yaml
kubectl create ns jenkins
helm install jenkins jenkins/jenkins -f values.yaml
kubectl -n jenkins get all -w
kubectl -n jenkins get secret jenkins -o yaml
kubectl exec --namespace jenkins -it svc/jenkins -c jenkins -- /bin/cat /run/secrets/chart-admin-password && echo

Install Sonarqube with helm

helm repo add oteemocharts https://oteemo.github.io/charts
helm repo update
kubectl create ns sonarqube
helm install sonarqube --namespace sonarqube  oteemocharts/sonarqube -f values.yaml
kubectl -n sonarqube get all -w
kubectl -n sonarqube logs
kubectl -n jenkins get all -w

Install Lens UI

wget https://github.com/lensapp/lens/releases/download/v4.2.4/Lens-4.2.4.amd64.deb
sudo dpkg -i Lens-4.2.4.amd64.deb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published