Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add istio enable #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
22 changes: 22 additions & 0 deletions charts/kafka-ui/templates/virtualservice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{- if .Values.istio.enabled }}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ include "kafka-ui.fullname" . }}
labels:
{{- include "kafka-ui.labels" . | nindent 4 }}
spec:
hosts:
{{- toYaml .Values.istio.virtualService.hosts | nindent 4 }}
gateways:
{{- toYaml .Values.istio.virtualService.gateways | nindent 4 }}
http:
- match:
- uri:
prefix: "/"
route:
- destination:
host: {{ include "kafka-ui.fullname" . }}
port:
number: 80
{{- end }}
12 changes: 12 additions & 0 deletions charts/kafka-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ service:
# if you want to force a specific nodePort. Must be use with service.type=NodePort
# nodePort:

# Istio configuration
istio:
# Enable istio resource
enabled: false
# Settings istio VirtualService
virtualService:
hosts:
- "example.com"
# Settings gateway istio
gateways:
- "istio-system/gateway"

# Ingress configuration
ingress:
# Enable ingress resource
Expand Down