-
Installation of RKE2 on the admin, dev and prod cluster
-
Installation of metalLB by creating a namespace
-
kubectl create namespace metallb-system -
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.15.2/config/manifests/metallb-native.yaml
-
-
Install argoCD
-
kubectl create namespace argocd -
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
-
-
nano metallb-config.yaml
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: default-pool
namespace: metallb-system
spec:
addresses:
- 192.168.56.100-192.168.56.120
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: default
namespace: metallb-systemssh -L 8081:192.168.56.100:443 arcade@117.250.206.138
kubectl -n argocd get secret argocd-initial-admin-secret \-o jsonpath="{.data.password}" | base64 -d && echo
scp worker1@192.168.56.11:/etc/rancher/rke2/rke2.yaml ~/dev.yaml
scp worker2@192.168.56.12:/etc/rancher/rke2/rke2.yaml ~/prod.yaml
nano ~/dev.yaml
server: https://127.0.0.1:6443
With this
server: https://192.168.56.11:6443
kubectl --kubeconfig=/home/master/dev.yaml get nodes
scp worker2@192.168.56.12:/etc/rancher/rke2/rke2.yaml ~/prod.yaml
nano ~/prod.yaml
server: https://192.168.56.12:6443
kubectl --kubeconfig=/home/master/prod.yaml get nodes
argocd login 192.168.56.100 --insecure
master@mastervm:~$ argocd login 192.168.56.100 --insecure
Username: admin
Password:
'admin:login' logged in successfully
Context '192.168.56.100' updated
master@mastervm:~$ Enter the password tht u changed after u logged in using UI
argocd cluster add --kubeconfig /home/master/dev.yaml default
argocd cluster add --kubeconfig /home/master/prod.yaml default
argocd cluster list
prajwal-inna@Victus:~/Desktop/Custom_Merch_file$ tree
.
├── application
│ ├── admin-dashboard
│ ├── frontend
│ ├── merchant-portal
│ ├── node-backend
│ ├── notification-service
│ └── python-service
├── bootstrap
│ ├── argocd
│ └── metallb
├── Implementation.md
├── infrastructure
│ ├── kafka
│ ├── keycloak
│ ├── minio
│ └── mongodb
└── platform
├── alertmanager
├── grafana
├── jenkins
│ ├── base
│ │ ├── deployment.yaml
│ │ ├── kustomization.yaml
│ │ ├── namespace.yaml
│ │ ├── pvc.yaml
│ │ └── service.yaml
│ └── overlays
│ └── admin
├── loki
├── nexus
└── prometheus
26 directories, 6 files
prajwal-inna@Victus:~/Desktop/Custom_Merch_file$ cd platform/jenkins/base/
touch namespace.yaml pvc.yaml deployment.yaml service.yaml kustomization.yaml kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml