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 }}
|
{{- include "drone.labels" . | nindent 4 }}
|
||||||
name: {{ include "drone.fullname" . }}
|
name: {{ include "drone.fullname" . }}
|
||||||
spec:
|
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 }}
|
type: {{ .Values.service.type }}
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.service.port }}
|
- port: {{ .Values.service.port }}
|
||||||
|
@ -527,6 +527,12 @@ serviceAccount:
|
|||||||
|
|
||||||
service:
|
service:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
# externalIPs: []
|
||||||
|
# externalTrafficPolicy: "Cluster"
|
||||||
|
# loadBalancerClass: ""
|
||||||
|
# loadBalancerIP: ""
|
||||||
|
# loadBalancerSourceRanges: []
|
||||||
|
# internalTrafficPolicy: "Cluster"
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
@ -568,12 +574,12 @@ affinity: {}
|
|||||||
# persistence is only required when config.DATABASE_DRIVER is sqlite3 or
|
# persistence is only required when config.DATABASE_DRIVER is sqlite3 or
|
||||||
# undefined.
|
# undefined.
|
||||||
persistence:
|
persistence:
|
||||||
|
annotation: {}
|
||||||
# existingClaim:
|
# existingClaim:
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
labels: {}
|
labels: {}
|
||||||
annotation: {}
|
|
||||||
# storageClass:
|
# storageClass:
|
||||||
|
|
||||||
# extra volumes for the pod
|
# extra volumes for the pod
|
||||||
|
Loading…
Reference in New Issue
Block a user