Skip to content

Commit

Permalink
update istio-service charts
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinon committed Dec 26, 2023
1 parent 7e15d41 commit 5de8b94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/istio-service/templates/service_entry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ spec:
addresses:
- {{ $service.ip }}
ports:
{{- if $service.ports }}
{{ toYaml $service.ports | indent 4 }}
{{- else }}
- number: {{ $service.port }}
name: http
protocol: HTTP
{{- end }}
resolution: STATIC
endpoints:
- address: {{ $service.ip }}
Expand Down
4 changes: 4 additions & 0 deletions charts/istio-service/templates/virtual_service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ spec:
gateways:
- {{ $service.name }}-gateway
http:
{{- if $service.routes }}
{{ toYaml $service.routes | indent 4 }}
{{- else }}
- route:
- destination:
host: {{$service.hosts | first}}
port:
number: {{ $service.port }}
weight: 100
{{- end }}
{{- end }}

0 comments on commit 5de8b94

Please sign in to comment.