This commit is contained in:
2024-08-23 13:03:51 +02:00
parent 20ebb398ec
commit 0d7bcbc1c3
14 changed files with 506 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ template "url-shortener.fullname" . }}-public
labels:
{{- include "url-shortener.labels" . | nindent 4 }}
annotations:
{{- with omit .Values.ingress.annotations "traefik.ingress.kubernetes.io/router.middlewares" -}}
{{ toYaml . | nindent 4 }}
{{- end }}
traefik.ingress.kubernetes.io/router.pathmatcher: PathRegexp
spec:
rules:
- host: {{ (.Values.ingress.hosts | first).host }}
http:
paths:
- path: /[^/]+
pathType: ImplementationSpecific
backend:
service:
name: url-shortener
port:
number: 4567