Skip to content

Commit

Permalink
Make gateway.service.type configurable other than LB type
Browse files Browse the repository at this point in the history
  • Loading branch information
pubudu538 committed Apr 7, 2024
1 parent c5e99a2 commit 546fe73
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions helm-charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
1 change: 1 addition & 0 deletions helm-charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ wso2:
gateway:
listener:
hostname: "gw.wso2.com"
service: {}
# secretName: "idp-tls"
# partitionServer:
# enabled: false
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/values.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ wso2:
targetMemory: 80
# -- Target CPU utilization percentage for Gateway
targetCPU: 80
service:
type: "LoadBalancer"
redis:
# -- Redis type
type: "single"
Expand Down

0 comments on commit 546fe73

Please sign in to comment.