feat: add loadBlancer options to the service

This commit is contained in:
Markus Pesch 2022-04-21 22:58:41 +02:00
parent 04e6d2214c
commit c7346ec71a
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
2 changed files with 24 additions and 1 deletions

View File

@ -9,6 +9,23 @@ metadata:
{{- include "drone.labels" . | nindent 4 }}
name: {{ include "drone.fullname" . }}
spec:
{{- with .Values.service.externalIPs }}
externalIPs:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
{{- if and .Values.service.loadBalancerClass (eq .Values.service.type "LoadBalancer") }}
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
{{- end }}
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- with .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- toYaml . | nindent 2 }}
{{- end }}
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}

View File

@ -527,6 +527,12 @@ serviceAccount:
service:
annotations: {}
# externalIPs: []
# externalTrafficPolicy: "Cluster"
# loadBalancerClass: ""
# loadBalancerIP: ""
# loadBalancerSourceRanges: []
# internalTrafficPolicy: "Cluster"
type: ClusterIP
port: 80
@ -568,12 +574,12 @@ affinity: {}
# persistence is only required when config.DATABASE_DRIVER is sqlite3 or
# undefined.
persistence:
annotation: {}
# existingClaim:
size: 5Gi
accessModes:
- ReadWriteOnce
labels: {}
annotation: {}
# storageClass:
# extra volumes for the pod