add: bonus

This commit is contained in:
2025-05-14 10:25:56 +02:00
parent a87dc80ba1
commit 5e4d0ad564
7 changed files with 101 additions and 0 deletions

View File

@ -0,0 +1 @@
kubectl -n argocd get secrets argocd-initial-admin-secret -o jsonpath='{.data.password}' | base64 -d

View File

@ -0,0 +1,2 @@
kubectl exec -n gitlab pods/$(kubectl get pods -n gitlab -o jsonpath={.items[0].metadata.name}) -- grep Password: /etc/gitlab/initial_root_password

19
bonus/scripts/intall.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/env bash
# Install dependancies
command -v docker >/dev/null || sudo pacman -S docker
command -v kubectl >/dev/null || sudo pacman -S kubectl
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
k3d cluster create
# Install gitlab
kubectl create ns gitlab
kubectl apply -n gitlab -f ./confs/gitlab-deployement.yaml
kubectl apply -n gitlab -f ./confs/gitlab-ingress.yaml
# Install ArgoCD
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
kubectl apply -n argocd -f ./confs/argocd.yaml

View File

@ -0,0 +1 @@
kubectl port-forward svc/argocd-server -n argocd 8080:443