Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Add support for extraExposePorts
Browse files Browse the repository at this point in the history
Signed-off-by: Insein Jee <inseinjee@gmail.com>
  • Loading branch information
inseinjee committed Mar 20, 2020
1 parent 07147d2 commit feef5de
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ You have to add --force to your helm upgrade command as the labels of the chart
| `service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `nil` |
| `service.loadBalancerSourceRanges` | list of IP CIDRs allowed access to lb (if supported) | `[]` |
| `serivce.externalIPs` | service external IP addresses | `[]` |
| `extraExposePorts` | Additional service ports for sidecar containers| `[]` |
| `ingress.enabled` | Enables Ingress | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.labels` | Custom labels | `{}` |
Expand Down
4 changes: 4 additions & 0 deletions stable/grafana/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,9 @@ spec:
{{ if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{.Values.service.nodePort}}
{{ end }}
{{- if .Values.extraExposePorts }}
{{- tpl (toYaml .Values.extraExposePorts) . | indent 4 }}
{{- end }}
selector:
{{- include "grafana.selectorLabels" . | nindent 4 }}

6 changes: 6 additions & 0 deletions stable/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ service:
labels: {}
portName: service

extraExposePorts: []
# - name: keycloak
# port: 8080
# targetPort: 8080
# type: ClusterIP

ingress:
enabled: false
annotations: {}
Expand Down

0 comments on commit feef5de

Please sign in to comment.