From fc4581724020b3133b4922689507e9c64e3c1591 Mon Sep 17 00:00:00 2001 From: Kirby Date: Thu, 5 Feb 2026 09:25:52 +0100 Subject: [PATCH] adding argoCD --- argocd/tips.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 argocd/tips.md diff --git a/argocd/tips.md b/argocd/tips.md new file mode 100644 index 0000000..c4d0135 --- /dev/null +++ b/argocd/tips.md @@ -0,0 +1,39 @@ +## ArgoCD config + +### Create a Kube secrets storing git token +- This token will be used for every repo in the /kirby path +``` +--- +apiVersion: v1 +kind: Secret +metadata: + name: private-repo-creds + namespace: argocd + labels: + argocd.argoproj.io/secret-type: repo-creds +stringData: + type: git + url: https://git.hyrule.ovh/kirby + password: myToken + username: kirby +``` + + +### Create an app of Apps stored in a repo +``` +argocd app create apps --dest-namespace argocd --dest-server https://kubernetes.default.svc --repo https://git.hyrule.ovh/kirby/argocd-conf.git --path apps +argocd app sync apps +``` + +### Service health stuck Progressing +* TLDR : if service type is LoadBalancer, IngressController does not provide status.LoadBalancer.ip field. Fix : change healtcheck behavior +``` +kubectl edit configmap argocd-cm -n argocd +data: | +resource.customizations: | +Service: + health.lua: | + hs = {} + hs.status = "Healthy" + return hs +```