Files
k3s-gitops/helm/jenkins/templates/ingress.yaml
2026-03-08 15:24:07 +00:00

29 lines
780 B
YAML

{{- if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "jenkins.name" . }}
namespace: {{ .Values.namespace }}
labels:
{{- include "jenkins.labels" . | nindent 4 }}
annotations:
kubernetes.io/ingress.class: traefik
cert-manager.io/cluster-issuer: {{ .Values.ingress.certIssuer }}
spec:
tls:
- hosts:
- {{ .Values.ingress.host }}
secretName: {{ .Values.ingress.tlsSecretName }}
rules:
- host: {{ .Values.ingress.host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ include "jenkins.name" . }}
port:
number: {{ .Values.service.httpPort }}
{{- end }}