Skip to content

Commit

Permalink
Update ingress.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
etaques authored Feb 1, 2024
1 parent 0326901 commit c0acb19
Showing 1 changed file with 48 additions and 11 deletions.
59 changes: 48 additions & 11 deletions charts/orb/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,17 @@ spec:
stripPrefix:
prefixes:
- /api/v1
- /api/v1/features
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
{{- if .Values.ingress.annotationsTraefik }}
annotations:
traefik.ingress.kubernetes.io/router.middlewares: orb-stripprefix@kubernetescrd
{{ toYaml .Values.ingress.annotationsTraefik | indent 4 }}
{{- end }}
name: {{ .Release.Name }}-traefik-ingress
name: {{ .Release.Name }}-traefik-api-ingress
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
Expand Down Expand Up @@ -186,21 +188,28 @@ spec:
services:
- name: {{ .Release.Name }}-sinks
port: {{ default .Values.sinks.httpPort }}
- match: Host(`{{ .Values.ingress.hostname }}`) && PathPrefix(`/features/sinks`)
kind: Rule
services:
- name: {{ .Release.Name }}-sinks
port: {{ default .Values.sinks.httpPort }}
- match: Host(`{{ .Values.ingress.hostname }}`) && PathPrefix(`/features/authenticationtypes`)
kind: Rule
services:
- name: {{ .Release.Name }}-sinks
port: {{ default .Values.sinks.httpPort }}
- match: Host(`{{ .Values.ingress.hostname }}`) && PathPrefix(`/policies`)
kind: Rule
services:
- name: {{ .Release.Name }}-policies
port: {{ default .Values.policies.httpPort }}
tls:
secretName: {{ .Values.ingress.secret }}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
{{- if .Values.ingress.annotationsTraefik }}
annotations:
{{ toYaml .Values.ingress.annotationsTraefik | indent 4 }}
{{- end }}
name: {{ .Release.Name }}-traefik-ingress
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`{{ .Values.ingress.hostname }}`) && PathPrefix(`/version`)
kind: Rule
services:
Expand All @@ -213,4 +222,32 @@ spec:
port: {{ .Values.ui.port }}
tls:
secretName: {{ .Values.ingress.secret }}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
{{- if .Values.ingress.annotationsTraefik }}
annotations:
traefik.ingress.kubernetes.io/router.middlewares: orb-stripprefix@kubernetescrd
{{ toYaml .Values.ingress.annotationsTraefik | indent 4 }}
{{- end }}
name: {{ .Release.Name }}-traefik-feature-ingress
namespace: {{ .Release.Namespace }}
spec:
entryPoints:
- web
- websecure
routes:
- match: Host(`{{ .Values.ingress.hostname }}`) && PathPrefix(`/sinks`)
kind: Rule
services:
- name: {{ .Release.Name }}-sinks
port: {{ default .Values.sinks.httpPort }}
- match: Host(`{{ .Values.ingress.hostname }}`) && PathPrefix(`/authenticationtypes`)
kind: Rule
services:
- name: {{ .Release.Name }}-sinks
port: {{ default .Values.sinks.httpPort }}
tls:
secretName: {{ .Values.ingress.secret }}
{{- end }}

0 comments on commit c0acb19

Please sign in to comment.