Skip to content

Commit

Permalink
feat(graphite): add loadBalancerIP attribute
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas BOURON <[email protected]>
  • Loading branch information
nbouron committed May 9, 2023
1 parent 5fcef55 commit 8f9a058
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/graphite/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
version: 1.1.0
version: 1.2g.0
appVersion: "1.1.10-3"
description: Graphite metrics server
name: graphite
Expand Down
3 changes: 2 additions & 1 deletion charts/graphite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ The following table lists the configurable parameters of the Graphite chart and
| Parameter | Description | Default |
|--------------------------------|----------------------------------------------|----------------------------------------|
| `image.repository` | Docker image repo | `graphiteapp/graphite-statsd` |
| `image.tag` | Docker image | `1.1.5-4` |
| `image.tag` | Docker image | `1.1.5-4` |
| `image.pullPolicy` | Docker image pull policy | `IfNotPresent` |
| `service.type` | Service type | `ClusterIP` |
| `service.loadBalancerIP` | Service loadBalancerIP | `nil` |
| `service.port` | Service port of Graphite UI | `8080` |
| `service.annotations` | Service annotations | `{}` |
| `service.labels` | Service labels | `{}` |
Expand Down
3 changes: 3 additions & 0 deletions charts/graphite/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq .Values.service.type "LoadBalancer") (.Values.service.loadBalancerIP) }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
ports:
- name: graphite-pickle
port: 2004
Expand Down
2 changes: 2 additions & 0 deletions charts/graphite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ image:

service:
type: ClusterIP
# In case of service type LoadBalancer, you can specify reserved static IP
# loadBalancerIP: 10.11.12.13
port: 8080
annotations: {}
labels: {}
Expand Down

0 comments on commit 8f9a058

Please sign in to comment.