Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[graphite] add loadBalancerIP attribute #462

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
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.2.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