Skip to content

Commit

Permalink
feat: Add support for loadBalancerIP in service configuration (#198
Browse files Browse the repository at this point in the history
* feat: Add support for loadBalancerIP in service configuration

* refactor: use an array in service.loadBalancer values
  • Loading branch information
khenri authored Feb 27, 2023
1 parent 1c88f54 commit c72ac4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm-charts/azure-api-management-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ their default values.
| `observability.statsD.tagFormat` | Defines the [tagging format](https://github.com/prometheus/statsd_exporter#tagging-extensions) in StatsD metrics as per the official docs. Value can be `none`, `librato`, `dogStatsD`, `influxDB`. Learn more in [our documentation](https://docs.microsoft.com/azure/api-management/how-to-configure-local-metrics-logs#configure-the-self-hosted-gateway-to-emit-metrics). | N/A |
| `service.type` | Type of Kubernetes service to use to expose to serve traffic | `ClusterIP` |
| `service.annotations` | Annotations to add to the Kubernetes service | `{}` |
| `service.loadBalancer.ip` | Attach a pre-existing static IP to a `LoadBalancer` type service. Learn more in the [Kubernetes docs](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer). | |
| `service.ports.http` | Port for HTTP traffic on service for other pods to talk to | `8080` |
| `service.ports.https` | Port for HTTPs traffic on service for other pods to talk to | `8081` |
| `service.ports.instance.synchronization` | Port used for internal discovery of gateway instances to synchronize across all of them, ie for rate limiting. | `4290` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if (.Values.service.loadBalancer).ip }}
loadBalancerIP: {{ .Values.service.loadBalancer.ip }}
{{- end }}
ports:
- port: {{ .Values.service.ports.http }}
targetPort: http
Expand Down

0 comments on commit c72ac4d

Please sign in to comment.