diff --git a/argo/config.yaml b/argo/config.yaml index cbd533a..4d94eb6 100644 --- a/argo/config.yaml +++ b/argo/config.yaml @@ -1,15 +1,10 @@ apiVersion: v1 kind: ConfigMap metadata: + name: argocd-cmd-params-cm labels: - app.kubernetes.io/name: argocd-cm + app.kubernetes.io/name: argocd-cmd-params-cm app.kubernetes.io/part-of: argocd - name: argocd-cm - namespace: argocd + data: - resource.customizations: | - networking.k8s.io/Ingress: - health.lua: | - hs = {} - hs.status = "Healthy" - return hs + server.insecure: "true" diff --git a/argo/ingress-config.yaml b/argo/ingress-config.yaml new file mode 100644 index 0000000..cbd533a --- /dev/null +++ b/argo/ingress-config.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + labels: + app.kubernetes.io/name: argocd-cm + app.kubernetes.io/part-of: argocd + name: argocd-cm + namespace: argocd +data: + resource.customizations: | + networking.k8s.io/Ingress: + health.lua: | + hs = {} + hs.status = "Healthy" + return hs diff --git a/argo/ingress.yaml b/argo/ingress.yaml new file mode 100644 index 0000000..c9234a6 --- /dev/null +++ b/argo/ingress.yaml @@ -0,0 +1,26 @@ +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: argocd-server + namespace: argocd + annotations: + kubernetes.io/ingress.class: "traefik-inter" +spec: + entryPoints: + - websecure + routes: + - kind: Rule + match: Host(`argo.beta.entos`) + priority: 10 + services: + - name: argocd-server + port: 80 + - kind: Rule + match: Host(`argo.beta.entos`) && Headers(`Content-Type`, `application/grpc`) + priority: 11 + services: + - name: argocd-server + port: 80 + scheme: h2c + tls: + certResolver: default diff --git a/argo/install.yaml b/argo/install.yaml index d645e5b..9d07d35 100644 --- a/argo/install.yaml +++ b/argo/install.yaml @@ -18605,15 +18605,6 @@ subjects: --- apiVersion: v1 - -kind: ConfigMap -metadata: - labels: - app.kubernetes.io/name: argocd-cmd-params-cm - app.kubernetes.io/part-of: argocd - name: argocd-cmd-params-cm ---- -apiVersion: v1 kind: ConfigMap metadata: labels: diff --git a/argo/kustomization.yaml b/argo/kustomization.yaml index 7ebb267..b5be77f 100644 --- a/argo/kustomization.yaml +++ b/argo/kustomization.yaml @@ -5,4 +5,6 @@ namespace: argocd resources: - namespace.yaml - config.yaml + - ingress-config.yaml + - ingress.yaml - install.yaml