fix repo URL and branch refs

This commit is contained in:
Alexander Rogov
2026-06-12 18:21:11 +03:00
parent 589cadd8fc
commit 0b698ccfcc
8 changed files with 594 additions and 27 deletions

View File

@@ -1,13 +1,12 @@
#!/bin/bash
set -e
KUBECONFIG="/home/mrt0rtikize/infra/yandex-prod/kubeconfig"
KCTL="kubectl --kubeconfig ${KUBECONFIG}"
export KUBECONFIG="$(dirname "$(realpath "$0")")/../../kubeconfig"
echo "=== Installing ArgoCD ==="
helm repo add argo https://argoproj.github.io/argo-helm 2>/dev/null || true
helm repo update
helm repo update argo
helm upgrade --install argocd argo/argo-cd \
--namespace argocd \
@@ -20,10 +19,10 @@ echo ""
echo "=== ArgoCD installed ==="
echo ""
echo "To access ArgoCD UI:"
echo " kubectl --kubeconfig ${KUBECONFIG} port-forward svc/argocd-server -n argocd 8080:80"
echo " kubectl port-forward svc/argocd-server -n argocd 8080:80"
echo ""
echo "Admin password:"
kubectl --kubeconfig ${KUBECONFIG} -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
echo ""
echo ""
echo "Login with username: admin"