50c2fe2a1e
ci / lint (push) Successful in 1m19s
ci / unit (push) Failing after 1m2s
ci / integration (push) Has been skipped
ci / types (push) Successful in 1m37s
ci / security (push) Failing after 38s
ci / dockerfile (push) Successful in 14s
ci / image (api) (push) Has been skipped
ci / image (reconciler) (push) Has been skipped
ci / image (worker) (push) Has been skipped
ci / bump (push) Has been skipped
Complete working build of the system learn-python/ teaches. 164 tests, mypy --strict clean, domain coverage 99%.
34 lines
983 B
YAML
34 lines
983 B
YAML
{{- if .Values.api.ingress.enabled }}
|
|
{{/* Only the api is exposed. The worker and reconciler have no Service at all. */}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "svcforge.fullname" . }}-api
|
|
labels:
|
|
{{- include "svcforge.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: api
|
|
{{- with .Values.api.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
ingressClassName: {{ .Values.api.ingress.className }}
|
|
{{- if .Values.api.ingress.tls.enabled }}
|
|
tls:
|
|
- hosts:
|
|
- {{ .Values.api.ingress.host | quote }}
|
|
secretName: {{ .Values.api.ingress.tls.secretName }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.api.ingress.host | quote }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ include "svcforge.fullname" . }}-api
|
|
port:
|
|
name: http
|
|
{{- end }}
|