Fix argo cors errors
This commit is contained in:
parent
c0f79e9950
commit
df40e2c25a
@ -1,14 +1,16 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: extra-resources
|
name: raw-resources
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
project: infra
|
project: infra
|
||||||
source:
|
source:
|
||||||
repoURL: 'ssh://git@gitea-ssh.dev-tools.svc.cluster.local.:2222/dvirlabs/infra.git'
|
repoURL: 'ssh://git@gitea-ssh.dev-tools.svc.cluster.local.:2222/dvirlabs/infra.git'
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: manifests/extra-resources
|
path: manifests/raw
|
||||||
|
directory:
|
||||||
|
recurse: true
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: infra
|
namespace: infra
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
global:
|
global:
|
||||||
image:
|
image:
|
||||||
tag: v3.3.3
|
tag: v3.3.3
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
cm:
|
cm:
|
||||||
url: https://argocd.dvirlabs.com
|
url: https://argocd.dvirlabs.com
|
||||||
@ -52,7 +52,7 @@ server:
|
|||||||
extraArgs:
|
extraArgs:
|
||||||
- --insecure
|
- --insecure
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: false
|
||||||
ingressClassName: traefik
|
ingressClassName: traefik
|
||||||
annotations:
|
annotations:
|
||||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
|||||||
23
manifests/raw/argocd/ingressroute.yaml
Normal file
23
manifests/raw/argocd/ingressroute.yaml
Normal 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: {}
|
||||||
Loading…
x
Reference in New Issue
Block a user