init argo config

This commit is contained in:
JonaKl
2026-03-17 15:28:15 +01:00
commit fcec50f08b
4 changed files with 76 additions and 0 deletions

12
argocd/argocd-cm.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
data:
url: https://argo.k8s.bittehackmichnicht.de
oidc.config: |
name: Keycloak
issuer: https://keycloak.controller.bittehackmichnicht.de
clientID: argocd
# clientSecret is provided via Secret argocd-oidc-secret in namespace argocd

38
argocd/argocd-istio.yaml Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: argocd-gateway
namespace: argocd
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https-argocd
protocol: HTTPS
hosts:
- argo.k8s.bittehackmichnicht.de
tls:
mode: PASSTHROUGH
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: argocd-vs
namespace: argocd
spec:
hosts:
- argo.k8s.bittehackmichnicht.de
gateways:
- argocd-gateway
tls:
- match:
- port: 443
sniHosts:
- argo.k8s.bittehackmichnicht.de
route:
- destination:
host: argocd-server.argocd.svc.cluster.local
port:
number: 443

View File

@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd-self
namespace: argocd
spec:
project: default
source:
repoURL: https://gitea.controller.bittehackmichnicht.de/argocd/kubernetes-config.git
targetRevision: main
path: argocd
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- argocd-cm.yaml
- argocd-istio.yaml
- argocd-self-application.yaml