ingress route

This commit is contained in:
ari committed 2023-02-21 04:50:34 +00:00
1 parent a775629faa
commit cf88714e5f
6 files changed
+44 -2

No files matched your search

+1
View File
@@ -0,0 +1 @@
.tmp
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
mkdir -p .tmp
helm template argocd k8s/infra/argocd \
--namespace argocd \
--create-namespace \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)" > .tmp/argocd.yaml
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
helm upgrade argocd k8s/infra/argocd \
--namespace argocd \
--create-namespace \
--set selfapp.sshkey="$(cat ~/.ssh/id_rsa)"
+24
View File
@@ -0,0 +1,24 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: argocd-server
namespace: "{{ .Release.Namespace }}"
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: {{ .Values.selfapp.traefikRule }}
priority: 10
services:
- name: argocd-server
port: 80
- kind: Rule
match: {{ .Values.selfapp.traefikRule }} && Headers(`Content-Type`, `application/grpc`)
priority: 11
services:
- name: argocd-server
port: 80
scheme: h2c
tls:
certResolver: default
+3 -1
View File
@@ -6,7 +6,9 @@ metadata:
namespace: "{{ .Release.Namespace }}"
labels:
argocd.argoproj.io/secret-type: repository
annotations:
link.argocd.argoproj.io/external-link: "https://github.com/{{ .Values.selfapp.repo }}"
stringData:
type: git
url: "{{ .Values.selfapp.repo }}"
url: "git@github.com:{{ .Values.selfapp.repo }}.git"
sshPrivateKey: {{ .Values.selfapp.sshkey | quote }}
+2 -1
View File
@@ -5,5 +5,6 @@ argo-cd:
selfapp:
commit: "stable"
repo: "git@github.com:asosnovsky/homelab.git"
repo: "asosnovsky/homelab"
sshkey: ""
traefikRule: Host(`argocd.sosnovsky.ca`)