diff --git a/charts/gateway/Chart.yaml b/charts/gateway/Chart.yaml index bfd6161..91648cb 100644 --- a/charts/gateway/Chart.yaml +++ b/charts/gateway/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.22 +version: 0.2.23 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/gateway/README.md b/charts/gateway/README.md index 8d81058..09be30c 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -170,7 +170,7 @@ The command removes all the Kubernetes components associated with the chart and | extraVolumeMounts | list | `[]` | Additional `volume`, See [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) for the detail. | | extraVolumes | list | `[]` | Additional `volume`, See [Kubernetes Volumes](https://kubernetes.io/docs/concepts/storage/volumes/) for the detail. | | fullnameOverride | string | `""` | | -| gateway.externalIPs | list | `[]` | | +| gateway.externalIPs | list | `[]` | IPs for which nodes in the cluster will also accept traffic for the servic annotations: service.beta.kubernetes.io/aws-load-balancer-type: nlb | | gateway.externalTrafficPolicy | string | `"Cluster"` | | | gateway.http | object | `{"additionalContainerPorts":[],"containerPort":9080,"enabled":true,"servicePort":80}` | API7 Gateway service settings for http | | gateway.http.additionalContainerPorts | list | `[]` | Support multiple http ports, See [Configuration](https://github.com/apache/apisix/blob/0bc65ea9acd726f79f80ae0abd8f50b7eb172e3d/conf/config-default.yaml#L24) | diff --git a/charts/gateway/templates/service-admin.yaml b/charts/gateway/templates/service-admin.yaml index 4bdbe41..3a5f9ec 100644 --- a/charts/gateway/templates/service-admin.yaml +++ b/charts/gateway/templates/service-admin.yaml @@ -14,6 +14,9 @@ metadata: spec: type: {{ .Values.admin.type }} {{- if eq .Values.admin.type "LoadBalancer" }} + {{- if .Values.admin.loadBalancerClass }} + loadBalancerClass: {{ .Values.admin.loadBalancerClass }} + {{- end }} {{- if .Values.admin.loadBalancerIP }} loadBalancerIP: {{ .Values.admin.loadBalancerIP }} {{- end }} diff --git a/charts/gateway/templates/service-gateway.yaml b/charts/gateway/templates/service-gateway.yaml index 0408306..22e981c 100644 --- a/charts/gateway/templates/service-gateway.yaml +++ b/charts/gateway/templates/service-gateway.yaml @@ -17,6 +17,9 @@ spec: externalTrafficPolicy: {{ .Values.gateway.externalTrafficPolicy }} {{- end }} {{- if eq .Values.gateway.type "LoadBalancer" }} + {{- if .Values.gateway.loadBalancerClass }} + loadBalancerClass: {{ .Values.gateway.loadBalancerClass }} + {{- end }} {{- if .Values.gateway.loadBalancerIP }} loadBalancerIP: {{ .Values.gateway.loadBalancerIP }} {{- end }} diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 9800f29..30f2a82 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -244,6 +244,11 @@ gateway: # ref: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip externalTrafficPolicy: Cluster # type: LoadBalancer + # loadBalancerClass: "my-loadbalancer-class" + # loadBalancerIP: a.b.c.d + # loadBalancerSourceRanges: + # - "143.231.0.0/16" + # -- IPs for which nodes in the cluster will also accept traffic for the servic # annotations: # service.beta.kubernetes.io/aws-load-balancer-type: nlb externalIPs: [] @@ -311,6 +316,7 @@ admin: enabled: false # -- admin service type type: ClusterIP + # loadBalancerClass: "my-loadbalancer-class" # loadBalancerIP: a.b.c.d # loadBalancerSourceRanges: # - "143.231.0.0/16"