diff --git a/config/configStructs/tapConfig.go b/config/configStructs/tapConfig.go index cd56b6c87..dfa1547fe 100644 --- a/config/configStructs/tapConfig.go +++ b/config/configStructs/tapConfig.go @@ -188,6 +188,7 @@ type IngressConfig struct { Enabled bool `yaml:"enabled" json:"enabled" default:"false"` ClassName string `yaml:"className" json:"className" default:""` Host string `yaml:"host" json:"host" default:"ks.svc.cluster.local"` + Path string `yaml:"path" json:"path" default:"/"` TLS []networking.IngressTLS `yaml:"tls" json:"tls" default:"[]"` Annotations map[string]string `yaml:"annotations" json:"annotations" default:"{}"` } diff --git a/helm-chart/templates/10-ingress.yaml b/helm-chart/templates/10-ingress.yaml index 14cf948db..cc09d0c77 100644 --- a/helm-chart/templates/10-ingress.yaml +++ b/helm-chart/templates/10-ingress.yaml @@ -28,7 +28,7 @@ spec: name: kubeshark-front port: number: 80 - path: / + path: {{ default "/" (((.Values).tap).ingress).path }} pathType: Prefix {{- if .Values.tap.ingress.tls }} tls: diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index 22a368a2d..ab584a758 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -139,6 +139,7 @@ tap: enabled: false className: "" host: ks.svc.cluster.local + path: / tls: [] annotations: {} priorityClass: ""