Fix argo cors errors

This commit is contained in:
dvirlabs 2026-03-16 03:58:10 +02:00
parent c0f79e9950
commit df40e2c25a
4 changed files with 29 additions and 4 deletions

View File

@ -1,14 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: extra-resources
name: raw-resources
namespace: argocd
spec:
project: infra
source:
repoURL: 'ssh://git@gitea-ssh.dev-tools.svc.cluster.local.:2222/dvirlabs/infra.git'
targetRevision: HEAD
path: manifests/extra-resources
path: manifests/raw
directory:
recurse: true
destination:
server: https://kubernetes.default.svc
namespace: infra

View File

@ -1,7 +1,7 @@
global:
image:
tag: v3.3.3
configs:
cm:
url: https://argocd.dvirlabs.com
@ -52,7 +52,7 @@ server:
extraArgs:
- --insecure
ingress:
enabled: true
enabled: false
ingressClassName: traefik
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure

View File

@ -0,0 +1,23 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: argocd-server
namespace: argocd
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`argocd.dvirlabs.com`) && Header(`Content-Type`, `application/grpc`)
priority: 11
services:
- name: argocd-server
port: 80
scheme: h2c
- kind: Rule
match: Host(`argocd.dvirlabs.com`)
priority: 10
services:
- name: argocd-server
port: 80
tls: {}