diff --git a/helm/jenkins/templates/ingress.yaml b/helm/jenkins/templates/ingress.yaml new file mode 100644 index 0000000..8bb1327 --- /dev/null +++ b/helm/jenkins/templates/ingress.yaml @@ -0,0 +1,28 @@ +{{- 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 }}