feat: Add a load balancer IP to server's service (#306)
* add loadBalancerIP to server's service * optimize condition
This commit is contained in:
parent
02f9725f77
commit
53edfb9fc5
3 changed files with 8 additions and 2 deletions
|
@ -2,7 +2,7 @@ apiVersion: v1
|
||||||
appVersion: "1.5.1"
|
appVersion: "1.5.1"
|
||||||
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
|
||||||
name: argo-cd
|
name: argo-cd
|
||||||
version: 2.2.2
|
version: 2.2.3
|
||||||
home: https://github.com/argoproj/argo-helm
|
home: https://github.com/argoproj/argo-helm
|
||||||
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
|
||||||
keywords:
|
keywords:
|
||||||
|
|
|
@ -32,7 +32,12 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.server.name }}
|
app.kubernetes.io/name: {{ include "argo-cd.name" . }}-{{ .Values.server.name }}
|
||||||
{{- if and (eq .Values.server.service.type "LoadBalancer") .Values.server.service.loadBalancerSourceRanges }}
|
{{- if eq .Values.server.service.type "LoadBalancer" }}
|
||||||
|
{{- if .Values.server.service.loadBalancerIP }}
|
||||||
|
loadBalancerIP: {{ .Values.server.service.loadBalancerIP | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.server.service.loadBalancerSourceRanges }}
|
||||||
loadBalancerSourceranges:
|
loadBalancerSourceranges:
|
||||||
{{ toYaml .Values.server.service.loadBalancerSourceRanges | indent 4 }}
|
{{ toYaml .Values.server.service.loadBalancerSourceRanges | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
|
@ -404,6 +404,7 @@ server:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
servicePortHttp: 80
|
servicePortHttp: 80
|
||||||
servicePortHttps: 443
|
servicePortHttps: 443
|
||||||
|
loadBalancerIP: ""
|
||||||
loadBalancerSourceRanges: []
|
loadBalancerSourceRanges: []
|
||||||
|
|
||||||
## Server metrics service configuration
|
## Server metrics service configuration
|
||||||
|
|
Loading…
Reference in a new issue