feat: add loadBlancer options to the service
This commit is contained in:
parent
04e6d2214c
commit
c7346ec71a
@ -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 }}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user