mirror of
https://codeberg.org/27/inception-of-things.git
synced 2025-12-31 21:56:41 +01:00
feat(bonus) : added new yml and "fixed" .sh
This commit is contained in:
@ -6,7 +6,7 @@ metadata:
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/Namonay/vvaas42.git
|
||||
repoURL: http://gitlab-webservice-default.gitlab.svc.cluster.local:8080/root/vvaas42.git
|
||||
targetRevision: HEAD
|
||||
path: '.'
|
||||
destination:
|
||||
|
||||
@ -8,7 +8,7 @@ if [ -z "$KUBECONFIG" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
set -x
|
||||
# set -x
|
||||
|
||||
### === Initial K3D Setup ===
|
||||
k3d cluster create inception-of-things
|
||||
@ -25,7 +25,11 @@ kubectl create namespace argocd
|
||||
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
|
||||
|
||||
echo "> ArgoCD is starting (this takes around ~6 minutes)..."
|
||||
sleep 10
|
||||
kubectl wait --namespace argocd \
|
||||
--for=condition=ready pod \
|
||||
--selector=app.kubernetes.io/name=argocd-server \
|
||||
--timeout=300s \
|
||||
1>/dev/null 2>/dev/null
|
||||
echo '> Starting watch...'
|
||||
sleep 5
|
||||
|
||||
@ -47,6 +51,7 @@ done
|
||||
echo "ArgoCD is ready!"
|
||||
echo '> To setup port-forwarding, run:'
|
||||
echo '> kubectl port-forward -n argocd svc/argocd-server 8080:443'
|
||||
kubectl port-forward -n argocd svc/argocd-server 8080:443 1>/dev/null 2>/dev/null &
|
||||
|
||||
#TODO: The app will be imported via Gitlab, don't import it here
|
||||
# so we don't have 2 of the same deployment.
|
||||
@ -100,7 +105,7 @@ echo
|
||||
echo '> To setup port-forwarding, run:'
|
||||
echo '> kubectl port-forward -n gitlab svc/gitlab-webservice-default 8081:8181'
|
||||
|
||||
|
||||
kubectl port-forward -n gitlab svc/gitlab-webservice-default 8081:8181 1>/dev/null 2>/dev/null &
|
||||
### === Setup /etc/hosts ===
|
||||
function add_host() {
|
||||
local ip=$1
|
||||
@ -130,7 +135,7 @@ echo
|
||||
echo "==============================="
|
||||
echo
|
||||
echo "=== Login into Gitlab with: ==="
|
||||
echo Username: admin
|
||||
echo Username: root
|
||||
echo -n "Password: "
|
||||
kubectl -n gitlab get secret gitlab-gitlab-initial-root-password -o jsonpath='{.data.password}' | base64 -d
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user