From eb295580de435881829c675425cd88e639f0ea8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=B3=D0=BE=D0=BC=D0=B5=D0=B4=20=D0=9D=D0=BE?= =?UTF-8?q?=D0=B6=D0=B0=D0=B5=D0=B2?= Date: Fri, 1 Mar 2024 18:20:51 +0300 Subject: [PATCH 1/2] add istio enable --- .idea/.gitignore | 8 +++++++ .idea/inspectionProfiles/Project_Default.xml | 6 +++++ .../inspectionProfiles/profiles_settings.xml | 6 +++++ .idea/kafka-ui-charts.iml | 15 +++++++++++++ .idea/misc.xml | 7 ++++++ .idea/modules.xml | 8 +++++++ .idea/vcs.xml | 6 +++++ charts/kafka-ui/templates/virtualservice.yaml | 22 +++++++++++++++++++ charts/kafka-ui/values.yaml | 12 ++++++++++ 9 files changed, 90 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/kafka-ui-charts.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 charts/kafka-ui/templates/virtualservice.yaml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..13566b81 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..03d9549e --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 00000000..105ce2da --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/kafka-ui-charts.iml b/.idea/kafka-ui-charts.iml new file mode 100644 index 00000000..1255220d --- /dev/null +++ b/.idea/kafka-ui-charts.iml @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..812ab5a6 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..9d57b92d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/charts/kafka-ui/templates/virtualservice.yaml b/charts/kafka-ui/templates/virtualservice.yaml new file mode 100644 index 00000000..3fdfde89 --- /dev/null +++ b/charts/kafka-ui/templates/virtualservice.yaml @@ -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 }} diff --git a/charts/kafka-ui/values.yaml b/charts/kafka-ui/values.yaml index 72038e9b..4c317a56 100644 --- a/charts/kafka-ui/values.yaml +++ b/charts/kafka-ui/values.yaml @@ -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 From e8e0fe9665338597306e1131395dd5b95cbee281 Mon Sep 17 00:00:00 2001 From: 0xfe9 Date: Fri, 1 Mar 2024 15:56:38 +0000 Subject: [PATCH 2/2] fix --- .idea/.gitignore | 8 -------- .idea/inspectionProfiles/Project_Default.xml | 6 ------ .idea/inspectionProfiles/profiles_settings.xml | 6 ------ .idea/kafka-ui-charts.iml | 15 --------------- .idea/misc.xml | 7 ------- .idea/modules.xml | 8 -------- .idea/vcs.xml | 6 ------ 7 files changed, 56 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/inspectionProfiles/Project_Default.xml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/kafka-ui-charts.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b81..00000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549e..00000000 --- a/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2da..00000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/kafka-ui-charts.iml b/.idea/kafka-ui-charts.iml deleted file mode 100644 index 1255220d..00000000 --- a/.idea/kafka-ui-charts.iml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 812ab5a6..00000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 9d57b92d..00000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1ddf..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file