bitnami/thanos - allow setting externalTrafficPolicy for services (#5860)

Co-authored-by: Elad Dolev <elad@firebolt.io>
This commit is contained in:
Elad Dolev
2021-03-22 16:22:25 +02:00
committed by GitHub
parent 145f5c2a81
commit a679659b39
10 changed files with 51 additions and 2 deletions

View File

@@ -28,4 +28,4 @@ name: thanos
sources:
- https://github.com/bitnami/bitnami-docker-thanos
- https://thanos.io
version: 3.13.2
version: 3.14.0

View File

@@ -157,6 +157,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
| `query.grpcTLS.client.existingSecret.keyMapping` | Key mapping between the expected keys and the existing secret's keys. [See more](https://github.com/bitnami/charts/tree/master/bitnami/common#existingsecret) | `nil` |
| `query.service.type` | Kubernetes service type | `ClusterIP` |
| `query.service.clusterIP` | Thanos Query service clusterIP IP | `None` |
| `query.service.externalTrafficPolicy` | Thanos Query service externalTrafficPolicy | `Cluster` |
| `query.service.http.port` | Service HTTP port | `9090` |
| `query.service.http.nodePort` | Service HTTP node port | `nil` |
| `query.service.grpc.port` | Service GRPC port | `10901` |
@@ -234,7 +235,8 @@ The following tables lists the configurable parameters of the Thanos chart and t
| `queryFrontend.livenessProbe` | Liveness probe configuration for Thanos Query Frontend | `Check values.yaml file` |
| `queryFrontend.readinessProbe` | Readiness probe configuration for Thanos Query Frontend | `Check values.yaml file` |
| `queryFrontend.service.type` | Kubernetes service type | `ClusterIP` |
| `queryFrontend.service.clusterIP` | Thanos Query Frontend service clusterIP IP | `None` |
| `queryFrontend.service.clusterIP` | Thanos Query Frontend service clusterIP IP | `None` |
| `queryFrontend.service.externalTrafficPolicy` | Thanos Query Frontend service externalTrafficPolicy | `Cluster` |
| `queryFrontend.service.http.port` | Service HTTP port | `9090` |
| `queryFrontend.service.http.nodePort` | Service HTTP node port | `nil` |
| `queryFrontend.service.loadBalancerIP` | loadBalancerIP if service type is `LoadBalancer` | `nil` |
@@ -299,6 +301,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
| `bucketweb.readinessProbe` | Readiness probe configuration for Thanos Compactor | `Check values.yaml file` |
| `bucketweb.service.type` | Kubernetes service type | `ClusterIP` |
| `bucketweb.service.clusterIP` | Thanos Bucket Web service clusterIP IP | `None` |
| `bucketweb.service.externalTrafficPolicy` | Thanos Bucket Web service externalTrafficPolicy | `Cluster` |
| `bucketweb.service.http.port` | Service HTTP port | `8080` |
| `bucketweb.service.http.nodePort` | Service HTTP node port | `nil` |
| `bucketweb.service.loadBalancerIP` | loadBalancerIP if service type is `LoadBalancer` | `nil` |
@@ -359,6 +362,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
| `compactor.readinessProbe` | Readiness probe configuration for Thanos Compactor | `Check values.yaml file` |
| `compactor.service.type` | Kubernetes service type | `ClusterIP` |
| `compactor.service.clusterIP` | Thanos Compactor service clusterIP IP | `None` |
| `compactor.service.externalTrafficPolicy` | Thanos Compactor service externalTrafficPolicy | `Cluster` |
| `compactor.service.http.port` | Service HTTP port | `9090` |
| `compactor.service.http.nodePort` | Service HTTP node port | `nil` |
| `compactor.service.loadBalancerIP` | loadBalancerIP if service type is `LoadBalancer` | `nil` |
@@ -412,6 +416,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
| `storegateway.readinessProbe` | Readiness probe configuration for Thanos Store Gateway | `Check values.yaml file` |
| `storegateway.service.type` | Kubernetes service type | `ClusterIP` |
| `storegateway.service.clusterIP` | Thanos Store Gateway service clusterIP IP | `None` |
| `storegateway.service.externalTrafficPolicy` | Thanos Store Gateway service externalTrafficPolicy | `Cluster` |
| `storegateway.service.http.port` | Service HTTP port | `9090` |
| `storegateway.service.http.nodePort` | Service HTTP node port | `nil` |
| `storegateway.service.grpc.port` | Service GRPC port | `10901` |
@@ -475,6 +480,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
| `ruler.readinessProbe` | Readiness probe configuration for Thanos Ruler | `Check values.yaml file` |
| `ruler.service.type` | Kubernetes service type | `ClusterIP` |
| `ruler.service.clusterIP` | Thanos Ruler service clusterIP IP | `None` |
| `ruler.service.externalTrafficPolicy` | Thanos Ruler service externalTrafficPolicy | `Cluster` |
| `ruler.service.http.port` | Service HTTP port | `9090` |
| `ruler.service.http.nodePort` | Service HTTP node port | `nil` |
| `ruler.service.grpc.port` | Service GRPC port | `10901` |
@@ -546,6 +552,7 @@ The following tables lists the configurable parameters of the Thanos chart and t
| `receive.readinessProbe` | Readiness probe configuration for Thanos Ruler | `Check values.yaml file` |
| `receive.service.type` | Kubernetes service type | `ClusterIP` |
| `receive.service.clusterIP` | Thanos Ruler service clusterIP IP | `None` |
| `receive.service.externalTrafficPolicy` | Thanos Ruler service externalTrafficPolicy | `Cluster` |
| `receive.service.http.port` | Service HTTP port | `9090` |
| `receive.service.http.nodePort` | Service HTTP node port | `nil` |
| `receive.service.grpc.port` | Service GRPC port | `10901` |

View File

@@ -13,6 +13,9 @@ spec:
{{- if and .Values.bucketweb.service.clusterIP (eq .Values.bucketweb.service.type "ClusterIP") }}
clusterIP: {{ .Values.bucketweb.service.clusterIP }}
{{- end }}
{{- if ne .Values.bucketweb.service.type "ClusterIP" }}
externalTrafficPolicy: {{ .Values.bucketweb.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.bucketweb.service.loadBalancerIP (eq .Values.bucketweb.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.bucketweb.service.loadBalancerIP }}
{{- end }}

View File

@@ -13,6 +13,9 @@ spec:
{{- if and .Values.compactor.service.clusterIP (eq .Values.compactor.service.type "ClusterIP") }}
clusterIP: {{ .Values.compactor.service.clusterIP }}
{{- end }}
{{- if ne .Values.compactor.service.type "ClusterIP" }}
externalTrafficPolicy: {{ .Values.compactor.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.compactor.service.loadBalancerIP (eq .Values.compactor.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.compactor.service.loadBalancerIP }}
{{- end }}

View File

@@ -13,6 +13,9 @@ spec:
{{- if and .Values.queryFrontend.service.clusterIP (eq .Values.queryFrontend.service.type "ClusterIP") }}
clusterIP: {{ .Values.queryFrontend.service.clusterIP }}
{{- end }}
{{- if ne .Values.queryFrontend.service.type "ClusterIP" }}
externalTrafficPolicy: {{ .Values.queryFrontend.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.queryFrontend.service.loadBalancerIP (eq .Values.queryFrontend.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.queryFrontend.service.loadBalancerIP }}
{{- end }}

View File

@@ -14,6 +14,9 @@ spec:
{{- if and $query.service.clusterIP (eq $query.service.type "ClusterIP") }}
clusterIP: {{ $query.service.clusterIP }}
{{- end }}
{{- if ne $query.service.type "ClusterIP" }}
externalTrafficPolicy: {{ $query.service.externalTrafficPolicy }}
{{- end }}
{{- if and $query.service.loadBalancerIP (eq $query.service.type "LoadBalancer") }}
loadBalancerIP: {{ $query.service.loadBalancerIP }}
{{- end }}

View File

@@ -13,6 +13,9 @@ spec:
{{- if and .Values.receive.service.clusterIP (eq .Values.receive.service.type "ClusterIP") }}
clusterIP: {{ .Values.receive.service.clusterIP }}
{{- end }}
{{- if ne .Values.receive.service.type "ClusterIP" }}
externalTrafficPolicy: {{ .Values.receive.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.receive.service.loadBalancerIP (eq .Values.receive.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.receive.service.loadBalancerIP }}
{{- end }}

View File

@@ -16,6 +16,9 @@ spec:
{{- if and .Values.ruler.service.clusterIP (eq .Values.ruler.service.type "ClusterIP") }}
clusterIP: {{ .Values.ruler.service.clusterIP }}
{{- end }}
{{- if ne .Values.ruler.service.type "ClusterIP" }}
externalTrafficPolicy: {{ .Values.ruler.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.ruler.service.loadBalancerIP (eq .Values.ruler.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.ruler.service.loadBalancerIP }}
{{- end }}

View File

@@ -16,6 +16,9 @@ spec:
{{- if and .Values.storegateway.service.clusterIP (eq .Values.storegateway.service.type "ClusterIP") }}
clusterIP: {{ .Values.storegateway.service.clusterIP }}
{{- end }}
{{- if ne .Values.storegateway.service.type "ClusterIP" }}
externalTrafficPolicy: {{ .Values.storegateway.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.storegateway.service.loadBalancerIP (eq .Values.storegateway.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.storegateway.service.loadBalancerIP }}
{{- end }}

View File

@@ -331,6 +331,9 @@ query:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
##
externalTrafficPolicy: Cluster
## Provide any additional annotations which may be required
##
annotations: {}
@@ -677,6 +680,9 @@ queryFrontend:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
##
externalTrafficPolicy: Cluster
## Provide any additional annotations which may be required
##
annotations: {}
@@ -954,6 +960,9 @@ bucketweb:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
##
externalTrafficPolicy: Cluster
## Provide any additional annotations which may be required
##
annotations: {}
@@ -1226,6 +1235,9 @@ compactor:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
##
externalTrafficPolicy: Cluster
## Provide any additional annotations which may be required
##
annotations: {}
@@ -1485,6 +1497,9 @@ storegateway:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
##
externalTrafficPolicy: Cluster
## Provide any additional annotations which may be required
##
annotations: {}
@@ -1761,6 +1776,9 @@ ruler:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
##
externalTrafficPolicy: Cluster
## Provide any additional annotations which may be required
##
annotations: {}
@@ -2110,6 +2128,9 @@ receive:
##
# loadBalancerSourceRanges:
# - 10.10.10.0/24
## Denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints
##
externalTrafficPolicy: Cluster
## Provide any additional annotations which may be required
##
annotations: {}