diff --git a/helm-charts/README.md b/helm-charts/README.md index 26a82cf07..9cab9356c 100644 --- a/helm-charts/README.md +++ b/helm-charts/README.md @@ -60,6 +60,7 @@ A Helm chart for APK components | wso2.apk.dp.gateway.autoscaling.maxReplicas | int | `2` | Maximum number of replicas for Gateway | | wso2.apk.dp.gateway.autoscaling.targetMemory | int | `80` | Target memory utilization percentage for Gateway | | wso2.apk.dp.gateway.autoscaling.targetCPU | int | `80` | Target CPU utilization percentage for Gateway | +| wso2.apk.dp.gateway.service.type | string | `"LoadBalancer"` | | | wso2.apk.dp.redis.type | string | `"single"` | Redis type | | wso2.apk.dp.redis.url | string | `"redis-master:6379"` | Redis URL | | wso2.apk.dp.redis.tls | bool | `false` | TLS enabled | diff --git a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-service.yaml b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-service.yaml index 1a1ef3f93..0173aed7a 100644 --- a/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-service.yaml +++ b/helm-charts/templates/data-plane/gateway-components/gateway-runtime/gateway-service.yaml @@ -25,7 +25,7 @@ metadata: {{ toYaml .Values.wso2.apk.dp.gatewayRuntime.service.annotations | indent 4 }} {{ end }} spec: - type: LoadBalancer + type: {{ .Values.wso2.apk.dp.gateway.service.type | default "LoadBalancer" }} # label keys and values that must match in order to receive traffic for this service selector: {{ include "apk-helm.pod.selectorLabels" (dict "root" . "app" "gateway" ) | indent 4}} diff --git a/helm-charts/values.yaml b/helm-charts/values.yaml index 7abe757af..0d60d7ff6 100644 --- a/helm-charts/values.yaml +++ b/helm-charts/values.yaml @@ -59,6 +59,7 @@ wso2: gateway: listener: hostname: "gw.wso2.com" + service: {} # secretName: "idp-tls" # partitionServer: # enabled: false diff --git a/helm-charts/values.yaml.template b/helm-charts/values.yaml.template index 8dd0d2866..70b7c094b 100644 --- a/helm-charts/values.yaml.template +++ b/helm-charts/values.yaml.template @@ -121,6 +121,8 @@ wso2: targetMemory: 80 # -- Target CPU utilization percentage for Gateway targetCPU: 80 + service: + type: "LoadBalancer" redis: # -- Redis type type: "single"