forked from github-mirrorer/taskchampion-sync-server
* Adding health probes and fixing container permissions * Bump version * Cleanup * No ServiceAccount anymore * No ServiceAccount anymore * Update pull secrets * Fixing yaml issue * Fixed resource requests and limits * Bumping version
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
{{- if .Values.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "taskchampion-sync-server.fullname" . }}
|
|
labels:
|
|
{{- include "taskchampion-sync-server.labels" . | nindent 4 }}
|
|
{{- with .Values.ingress.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.ingress.className }}
|
|
ingressClassName: {{ .Values.ingress.className }}
|
|
{{- end }}
|
|
{{- if .Values.ingress.tls }}
|
|
tls:
|
|
{{- toYaml .Values.ingress.tls | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
{{- $svcName := include "taskchampion-sync-server.fullname" . -}}
|
|
{{- $svcPort := $.Values.service.port -}}
|
|
{{- range .Values.ingress.hosts }}
|
|
{{- if kindIs "string" . }}
|
|
- host: {{ . | quote }}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ $svcName }}
|
|
port:
|
|
number: {{ $svcPort }}
|
|
{{- else }}
|
|
- host: {{ .host | quote }}
|
|
http:
|
|
paths:
|
|
{{- range .paths }}
|
|
- path: {{ .path | default "/" | quote }}
|
|
pathType: {{ .pathType | default "Prefix" }}
|
|
backend:
|
|
service:
|
|
name: {{ $svcName }}
|
|
port:
|
|
number: {{ $svcPort }}
|
|
{{- else }}
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: {{ $svcName }}
|
|
port:
|
|
number: {{ $svcPort }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|