Skip to content

Commit

Permalink
Allow user to set annotations and loadBalancerIP property of service (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joephayes authored Apr 5, 2021
1 parent 7131c96 commit f4714c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions charts/stardog/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/version: {{ .Chart.AppVersion }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- port: {{ .Values.ports.server }}
Expand All @@ -19,5 +23,8 @@ spec:
name: sql
{{- end }}
type: {{ .Values.service.type }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
selector:
app: {{ include "stardog.fullname" . }}
2 changes: 2 additions & 0 deletions charts/stardog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ javaArgs: "-Xmx2g -Xms2g -XX:MaxDirectMemorySize=1g"
# The service type to use for Stardog ports
service:
type: LoadBalancer
annotations: {}
# loadBalancerIP: 0.0.0.0

# The server port is the port to expose the Stardog server
# The sql port is the port to expose Stardog's business intelligence server
Expand Down

0 comments on commit f4714c3

Please sign in to comment.