Skip to content

Commit

Permalink
Merge pull request #11 from Diogo-Costa/master
Browse files Browse the repository at this point in the history
[Unleash] Add annotations and loadBalancerSourceRanges in service template
  • Loading branch information
ivarconr authored Mar 6, 2021
2 parents 08ae734 + 1e2f8ee commit 9995c00
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/unleash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ sources:
- https://github.com/Unleash/unleash-docker
- https://github.com/Unleash/helm-charts
type: application
version: 1.0.3
version: 1.0.4
10 changes: 10 additions & 0 deletions charts/unleash/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ metadata:
name: {{ include "unleash.fullname" . }}
labels:
{{- include "unleash.labels" . | nindent 4 }}
{{- if .Values.service.annotations }}
{{- with .Values.service.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand All @@ -13,3 +19,7 @@ spec:
name: http
selector:
{{- include "unleash.selectorLabels" . | nindent 4 }}
{{- if .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{ toYaml .Values.service.loadBalancerSourceRanges | indent 4 }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/unleash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ secrets: {}
service:
type: ClusterIP
port: 4242
annotations: {}
## Load Balancer sources
## ref: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
## Example:
## loadBalancerSourceRanges:
## - 10.10.10.0/24
loadBalancerSourceRanges: []

tolerations: []

Expand Down

0 comments on commit 9995c00

Please sign in to comment.