Skip to content

Instantly share code, notes, and snippets.

@shiveshabhishek
Last active April 16, 2023 20:45
Show Gist options
  • Save shiveshabhishek/c974bc86c86f9c77ecf3c959acfeef8f to your computer and use it in GitHub Desktop.
Save shiveshabhishek/c974bc86c86f9c77ecf3c959acfeef8f to your computer and use it in GitHub Desktop.
Installation useful commands : ArgoCD v2.6.7
#!/bin/bash
#~~~Creator: Shivesh Abhishek~~~
#Video: https://youtu.be/mDdnsnnNPDI
#Make sure to be a root user/user with root privileges.
sudo su -
#docker installation
sudo apt install docker.io
#curl installation
sudo apt install curl
#kind installation
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.18.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
#Kind cluster config file
tee -a kind-cluster.yaml <<EOF
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 32100
hostPort: 32100
listenAddress: "0.0.0.0" # Optional, defaults to "0.0.0.0"
protocol: tcp # Optional, defaults to tcp
- role: worker
EOF
#create Kind cluster:
kind create cluster --config kind-cluster.yaml
#kubectl installation
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
#argoCD config file download
wget https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
#Get the password for the admin user
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d && echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment