mirror of
https://gitlab.durp.info/durfy/homelab/gitops.git
synced 2026-05-08 00:11:21 -05:00
update
This commit is contained in:
parent
4deba4cd8a
commit
b043a61a71
1 changed files with 33 additions and 0 deletions
33
durpapi/templates/ingress.yaml
Normal file
33
durpapi/templates/ingress.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: "{{ .Chart.Name }}-ingress"
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host("{{ .Values.ingress.host }}") && PathPrefix(`/`)
|
||||
middlewares:
|
||||
- name: authentik-proxy-provider
|
||||
namespace: traefik
|
||||
kind: Rule
|
||||
services:
|
||||
- name: "{{ .Chart.Name }}-service"
|
||||
port: {{ .Values.service.port }}
|
||||
tls:
|
||||
secretName: {{ .Values.ingress.tls }}
|
||||
|
||||
---
|
||||
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: {{ .Values.ingress.tls }}
|
||||
spec:
|
||||
secretName: {{ .Values.ingress.tls }}
|
||||
issuerRef:
|
||||
name: {{ .Values.ingress.clusterissuer }}
|
||||
kind: ClusterIssuer
|
||||
commonName: {{ .Values.ingress.host }}
|
||||
dnsNames:
|
||||
- {{ .Values.ingress.host }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue