mirror of
https://github.com/kubeshark/kubeshark.git
synced 2026-02-14 10:00:08 +00:00
* fixes websocket for nginx-ingress Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * update messagem when helm completes Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * force react port to be a path Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * include Authorization header to the proxy Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * remove hub from proxy Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * remove REACT_APP_HUB_PORT info Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> * include path back again to REACT_APP_HUB_PORT Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com> --------- Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
---
|
|
{{- if .Values.tap.ingress.enabled }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
annotations:
|
|
nginx.org/websocket-services: "kubeshark-front"
|
|
{{- if .Values.tap.annotations }}
|
|
{{- toYaml .Values.tap.annotations | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.tap.ingress.annotations }}
|
|
{{- toYaml .Values.tap.ingress.annotations | nindent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "kubeshark.labels" . | nindent 4 }}
|
|
name: kubeshark-ingress
|
|
namespace: {{ .Release.Namespace }}
|
|
spec:
|
|
{{- if .Values.tap.ingress.classname }}
|
|
ingressClassName: {{ .Values.tap.ingress.classname }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.tap.ingress.host }}
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: kubeshark-front
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: Prefix
|
|
{{- if .Values.tap.ingress.tls }}
|
|
tls:
|
|
{{- toYaml .Values.tap.ingress.tls | nindent 2 }}
|
|
{{- end }}
|
|
status:
|
|
loadBalancer: {}
|
|
{{- end }}
|