From bd4cd492086fdacce8fe4e3508f1ba2d618d6eeb Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Sat, 21 Mar 2026 01:30:26 +0300 Subject: [PATCH] app-of-apps bootstrap + argocd ingress --- app-of-apps.yaml | 21 +++++++++++++++++++++ apps/argocd.yaml | 18 ++++++++++++++++++ apps/argocd/configmap.yaml | 7 +++++++ apps/argocd/ingress.yaml | 16 ++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 app-of-apps.yaml create mode 100644 apps/argocd.yaml create mode 100644 apps/argocd/configmap.yaml create mode 100644 apps/argocd/ingress.yaml diff --git a/app-of-apps.yaml b/app-of-apps.yaml new file mode 100644 index 0000000..9a937cc --- /dev/null +++ b/app-of-apps.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-of-apps + namespace: argocd +spec: + project: default + source: + repoURL: ssh://git@git.czsk.it/asxpi/k8s-asxpio-gitops.git + targetRevision: main + path: apps + directory: + recurse: false + include: "*.yaml" + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/apps/argocd.yaml b/apps/argocd.yaml new file mode 100644 index 0000000..af1151a --- /dev/null +++ b/apps/argocd.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argocd + namespace: argocd +spec: + project: default + source: + repoURL: ssh://git@git.czsk.it/asxpi/k8s-asxpio-gitops.git + targetRevision: main + path: apps/argocd + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/apps/argocd/configmap.yaml b/apps/argocd/configmap.yaml new file mode 100644 index 0000000..235e5af --- /dev/null +++ b/apps/argocd/configmap.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-cmd-params-cm + namespace: argocd +data: + server.insecure: "true" diff --git a/apps/argocd/ingress.yaml b/apps/argocd/ingress.yaml new file mode 100644 index 0000000..a41f726 --- /dev/null +++ b/apps/argocd/ingress.yaml @@ -0,0 +1,16 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: argocd-server + namespace: argocd +spec: + entryPoints: + - websecure + routes: + - match: Host(`argocd.k8s.asxp.io`) + kind: Rule + services: + - name: argocd-server + port: 80 + tls: + certResolver: letsencrypt