app-of-apps bootstrap + argocd ingress

This commit is contained in:
Sergei Poljanski 2026-03-21 01:30:26 +03:00
commit bd4cd49208
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
4 changed files with 62 additions and 0 deletions

21
app-of-apps.yaml Normal file
View file

@ -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

18
apps/argocd.yaml Normal file
View file

@ -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

View file

@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cmd-params-cm
namespace: argocd
data:
server.insecure: "true"

16
apps/argocd/ingress.yaml Normal file
View file

@ -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