Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/kubernetes/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.2
version: 0.2.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes/charts/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.ingress.enabled }}
{{- if and .Values.ingress.enabled (not .Values.ingress.traefik.enabled) }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand Down
28 changes: 28 additions & 0 deletions deploy/kubernetes/charts/templates/ingress_route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- if .Values.ingress.traefik.enabled }}
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: {{ .Values.ingress.name }}
{{- with .Values.ingress.customAnnotations }}
annotations:
{{- range $k, $v := . }}
{{- if not (hasPrefix "nginx.ingress.kubernetes.io" $k) }}
{{ $k }}: {{ $v }}
{{- end }}
{{- end }}
{{- end }}
spec:
entryPoints:
- {{ .Values.ingress.traefik.entryPoint | default "web" }}
routes:
{{- range $host := .Values.ingress.hosts }}
{{- range $path := $host.paths }}
- kind: Rule
match: >
Host(`{{ $host.host }}`) && PathPrefix(`{{ $path.path }}`)
services:
- name: {{ $.Values.irisapp.name }}
port: {{ $.Values.irisapp.service.port }}
{{- end }}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions deploy/kubernetes/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ ingress:
enabled: true
name: iris-ingress
className: nginx
traefik:
enabled: false
entryPoint: web
enableTls: false
sslRedirect: false
customAnnotations:
Expand Down