diff --git a/argocd/templates/kong.yaml b/argocd/templates/kong.yaml index 99aec8b..d74bc6c 100644 --- a/argocd/templates/kong.yaml +++ b/argocd/templates/kong.yaml @@ -1,20 +1,20 @@ -#apiVersion: argoproj.io/v1alpha1 -#kind: Application -#metadata: -# name: kong -# namespace: argocd -#spec: -# project: default -# source: -# repoURL: https://gitlab.com/developerdurp/homelab.git -# targetRevision: main -# path: kong -# destination: -# namespace: kong -# name: in-cluster -# syncPolicy: -# automated: -# prune: true -# selfHeal: true -# syncOptions: -# - CreateNamespace=true +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: kong + namespace: argocd +spec: + project: default + source: + repoURL: https://gitlab.com/developerdurp/homelab.git + targetRevision: main + path: kong + destination: + namespace: kong + name: in-cluster + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/durpapi/templates/ingress.yaml b/durpapi/templates/ingress.yaml index 9877b2b..0fc9ecf 100644 --- a/durpapi/templates/ingress.yaml +++ b/durpapi/templates/ingress.yaml @@ -1,45 +1,45 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute -metadata: - name: "{{ .Chart.Name }}-ingress" -spec: - entryPoints: - - websecure - routes: - - match: Host("api.durp.info") && PathPrefix(`/durpapi`) - middlewares: - - name: authentik-proxy-provider - namespace: traefik - - name: durpapi-stripprefix - kind: Rule - services: - - name: durpapi-service - port: 80 - tls: - secretName: durpapi-tls - ---- - -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: durpapi-tls -spec: - secretName: durpapi-tls - issuerRef: - name: letsencrypt-production - kind: ClusterIssuer - commonName: api.durp.info - dnsNames: - - api.durp.info - ---- - -apiVersion: traefik.containo.us/v1alpha1 -kind: Middleware -metadata: - name: durpapi-stripprefix -spec: - stripPrefix: - prefixes: - - /durpapi +#apiVersion: traefik.containo.us/v1alpha1 +#kind: IngressRoute +#metadata: +# name: "{{ .Chart.Name }}-ingress" +#spec: +# entryPoints: +# - websecure +# routes: +# - match: Host("api.durp.info") && PathPrefix(`/durpapi`) +# middlewares: +# - name: authentik-proxy-provider +# namespace: traefik +# - name: durpapi-stripprefix +# kind: Rule +# services: +# - name: durpapi-service +# port: 80 +# tls: +# secretName: durpapi-tls +# +#--- +# +#apiVersion: cert-manager.io/v1 +#kind: Certificate +#metadata: +# name: durpapi-tls +#spec: +# secretName: durpapi-tls +# issuerRef: +# name: letsencrypt-production +# kind: ClusterIssuer +# commonName: api.durp.info +# dnsNames: +# - api.durp.info +# +#--- +# +#apiVersion: traefik.containo.us/v1alpha1 +#kind: Middleware +#metadata: +# name: durpapi-stripprefix +#spec: +# stripPrefix: +# prefixes: +# - /durpapi diff --git a/kong/templates/ingress.yaml b/kong/templates/ingress.yaml index 0ea5a12..b25fb17 100644 --- a/kong/templates/ingress.yaml +++ b/kong/templates/ingress.yaml @@ -82,6 +82,9 @@ spec: - websecure routes: - match: Host(`api.durp.info`) && PathPrefix(`/`) + middlewares: + - name: authentik-proxy-provider + namespace: traefik kind: Rule services: - name: kong-kong-proxy