Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for Multiple Gateways (#6350)
* Support multiple ingress gateways in helm * Support multiple egress gateways in helm * Comments * Merged all gateways into a single list and removed ingressgatway / egressgateway * Changed to a different structure to overcome Helm issues dealing with arrays * Description updated * Minor correction * Conversion of tests values to new gateways format * Merge cleanup * Adding the 31400 port back because of testdata dependency
- Loading branch information
Showing
18 changed files
with
169 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
install/kubernetes/helm/istio/charts/egressgateway/templates/autoscale.yaml
This file was deleted.
Oops, something went wrong.
110 changes: 0 additions & 110 deletions
110
install/kubernetes/helm/istio/charts/egressgateway/templates/deployment.yaml
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
install/kubernetes/helm/istio/charts/egressgateway/templates/service.yaml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
install/kubernetes/helm/istio/charts/egressgateway/templates/serviceaccount.yaml
This file was deleted.
Oops, something went wrong.
9 changes: 5 additions & 4 deletions
9
...elm/istio/charts/egressgateway/Chart.yaml → ...tes/helm/istio/charts/gateways/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
install/kubernetes/helm/istio/charts/gateways/templates/autoscale.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- range $key, $spec := .Values -}} | ||
{{- if and (ne $key "global") (ne $key "enabled") -}} | ||
{{- if and $spec.enabled $spec.autoscaleMin -}} | ||
apiVersion: autoscaling/v2beta1 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ $key }} | ||
namespace: {{ $spec.namespace | default $.Release.Namespace }} | ||
spec: | ||
maxReplicas: {{ $spec.autoscaleMax }} | ||
minReplicas: {{ $spec.autoscaleMin }} | ||
scaleTargetRef: | ||
apiVersion: apps/v1beta1 | ||
kind: Deployment | ||
name: {{ $key }} | ||
metrics: | ||
- type: Resource | ||
resource: | ||
name: cpu | ||
targetAverageUtilization: 80 | ||
--- | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.