feat(argo-cd): add possibility for change NodePort if this is type of Service (#515)
* Add possibility to change NodePort if this is type of Service. Signed-off-by: Łukasz Żułnowski <lzulnowski@gmail.com>
This commit is contained in:
parent
dbb1d80e13
commit
711518cc52
4 changed files with 12 additions and 1 deletions
|
@ -2,7 +2,7 @@ apiVersion: v1
|
||||||
appVersion: 1.8.4
|
appVersion: 1.8.4
|
||||||
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.14.4
|
version: 2.14.5
|
||||||
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:
|
||||||
|
|
|
@ -257,6 +257,8 @@ Helm v3 has removed the `install-crds` hook so CRDs are now populated by files i
|
||||||
| server.service.servicePortHttps | Server service https port | `443` |
|
| server.service.servicePortHttps | Server service https port | `443` |
|
||||||
| server.service.servicePortHttpName | Server service http port name, can be used to route traffic via istio | `http` |
|
| server.service.servicePortHttpName | Server service http port name, can be used to route traffic via istio | `http` |
|
||||||
| server.service.servicePortHttpsName | Server service https port name, can be used to route traffic via istio | `https` |
|
| server.service.servicePortHttpsName | Server service https port name, can be used to route traffic via istio | `https` |
|
||||||
|
| server.service.nodePortHttp | Server service http port for NodePort service type| `30080` |
|
||||||
|
| server.service.servicePortHttps | Server service http port for NodePort service type | `30443` |
|
||||||
| server.service.loadBalancerSourceRanges | Source IP ranges to allow access to service from. | `[]` |
|
| server.service.loadBalancerSourceRanges | Source IP ranges to allow access to service from. | `[]` |
|
||||||
| server.service.externalIPs | Server service external IPs. | `[]` |
|
| server.service.externalIPs | Server service external IPs. | `[]` |
|
||||||
| server.service.type | Server service type | `"ClusterIP"` |
|
| server.service.type | Server service type | `"ClusterIP"` |
|
||||||
|
|
|
@ -25,10 +25,16 @@ spec:
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: {{ .Values.server.service.servicePortHttp }}
|
port: {{ .Values.server.service.servicePortHttp }}
|
||||||
targetPort: {{- if .Values.server.service.namedTargetPort }} {{ .Values.server.name }} {{- else }} {{ .Values.server.containerPort }} {{- end }}
|
targetPort: {{- if .Values.server.service.namedTargetPort }} {{ .Values.server.name }} {{- else }} {{ .Values.server.containerPort }} {{- end }}
|
||||||
|
{{- if eq .Values.server.service.type "NodePort" }}
|
||||||
|
nodePort: {{ .Values.server.service.nodePortHttp }}
|
||||||
|
{{- end }}
|
||||||
- name: {{ .Values.server.service.servicePortHttpsName }}
|
- name: {{ .Values.server.service.servicePortHttpsName }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: {{ .Values.server.service.servicePortHttps }}
|
port: {{ .Values.server.service.servicePortHttps }}
|
||||||
targetPort: {{- if .Values.server.service.namedTargetPort }} {{ .Values.server.name }} {{- else }} {{ .Values.server.containerPort }} {{- end }}
|
targetPort: {{- if .Values.server.service.namedTargetPort }} {{ .Values.server.name }} {{- else }} {{ .Values.server.containerPort }} {{- end }}
|
||||||
|
{{- if eq .Values.server.service.type "NodePort" }}
|
||||||
|
nodePort: {{ .Values.server.service.nodePortHttps }}
|
||||||
|
{{- end }}
|
||||||
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 }}
|
||||||
|
|
|
@ -446,6 +446,9 @@ server:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
labels: {}
|
labels: {}
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
## For node port default ports
|
||||||
|
nodePortHttp: 30080
|
||||||
|
nodePortHttps: 30443
|
||||||
servicePortHttp: 80
|
servicePortHttp: 80
|
||||||
servicePortHttps: 443
|
servicePortHttps: 443
|
||||||
servicePortHttpName: http
|
servicePortHttpName: http
|
||||||
|
|
Loading…
Reference in a new issue