Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/clickhouse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ EOSQL
| clickhouse.keeper.host | string | `""` | Specify a keeper host. Should be left empty if `clickhouse-keeper.enabled` is `true`. Will override the defaults set from `clickhouse-keeper.enabled`. |
| clickhouse.keeper.port | int | `2181` | Override the default keeper port |
| clickhouse.lbService.enabled | bool | `false` | |
| clickhouse.lbService.externalTrafficPolicy | string | `""` | Set the external traffic policy for the LoadBalancer service, allowed values are `Cluster` (default) or `Local` (see [here](https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-policies) for more details). |
| clickhouse.lbService.loadBalancerSourceRanges | list | `[]` | Specify source IP ranges to the LoadBalancer service. If supported by the platform, this will restrict traffic through the cloud-provider load-balancer to the specified client IPs. This is ignored if the cloud-provider does not support the feature. |
| clickhouse.lbService.serviceAnnotations | object | `{}` | |
| clickhouse.lbService.serviceLabels | object | `{}` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/clickhouse/templates/chi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ spec:
{{- end }}
spec:
type: "LoadBalancer"
{{- with .Values.clickhouse.lbService.externalTrafficPolicy }}
externalTrafficPolicy: {{ . }}
{{- end }}
{{- if .Values.clickhouse.lbService.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml .Values.clickhouse.lbService.loadBalancerSourceRanges | nindent 12 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/clickhouse/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@
"type": "boolean",
"description": "Enable LoadBalancer service for ClickHouse."
},
"externalTrafficPolicy": {
"type": "string",
"description": "External traffic policy for the LoadBalancer service.",
"enum": ["", "Cluster", "Local"],
"default": ""
},
"loadBalancerSourceRanges": {
"type": "array",
"description": "Restricts traffic to specified client IPs.",
Expand Down
1 change: 1 addition & 0 deletions charts/clickhouse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ clickhouse:

lbService:
enabled: false
externalTrafficPolicy: ""
# -- Specify source IP ranges to the LoadBalancer service.
# If supported by the platform, this will restrict traffic through the cloud-provider load-balancer
# to the specified client IPs. This is ignored if the cloud-provider does not support the feature.
Expand Down