Skip to content

Commit

Permalink
istio compatibility with appProtocol: https (kedacore#678)
Browse files Browse the repository at this point in the history
Despite Istio docs stating that setting the name of the port to https
should result in the protocol being https (TLS not intercepted),
it doesn't appear to work for us, and only works by explicitly setting
appProtocol.

https://istio.io/latest/docs/ops/configuration/traffic-management/protocol-selection/#explicit-protocol-selection

Signed-off-by: Sean Liao <sean+git@liao.dev>
  • Loading branch information
seankhliao authored and wozniakjan committed Nov 28, 2024
1 parent f353d95 commit e2d2da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions keda/templates/metrics-server/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ spec:
port: {{ .Values.service.portHttps }}
targetPort: {{ .Values.service.portHttpsTarget }}
protocol: TCP
appProtocol: https
- name: {{ .Values.prometheus.metricServer.portName }}
port: {{ .Values.prometheus.metricServer.port }}
targetPort: {{ .Values.prometheus.metricServer.port }}
Expand Down
1 change: 1 addition & 0 deletions keda/templates/webhooks/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
port: 443
protocol: TCP
targetPort: {{ .Values.webhooks.port | default 9443 }}
appProtocol: https
{{- if .Values.prometheus.webhooks.enabled }}
- name: {{ .Values.prometheus.webhooks.serviceMonitor.port }}
port: {{ .Values.prometheus.webhooks.port }}
Expand Down

0 comments on commit e2d2da4

Please sign in to comment.