diff --git a/deploy/templates/ingress.yaml b/deploy/templates/ingress.yaml index a4e731c..3229e90 100644 --- a/deploy/templates/ingress.yaml +++ b/deploy/templates/ingress.yaml @@ -24,10 +24,24 @@ spec: - static.gitdata.ai secretName: {{ $fullName }}-tls rules: - # Frontend + # Frontend (default), with /api and /ws routed to app - host: gitdata.ai http: paths: + - path: /api + pathType: Prefix + backend: + service: + name: {{ $fullName }}-app + port: + number: {{ .Values.app.service.port }} + - path: /ws + pathType: Prefix + backend: + service: + name: {{ $fullName }}-app + port: + number: {{ .Values.app.service.port }} - path: / pathType: Prefix backend: @@ -35,7 +49,7 @@ spec: name: {{ $fullName }}-frontend port: number: 80 - # API + # Dedicated API host - host: api.gitdata.ai http: paths: