fix(argo-cd): Consolidate and fix container ports (#1788)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
This commit is contained in:
parent
e91bc78a4a
commit
58f587618f
13 changed files with 152 additions and 97 deletions
|
|
@ -51,10 +51,11 @@ spec:
|
|||
command:
|
||||
- entrypoint.sh
|
||||
- argocd-applicationset-controller
|
||||
- --metrics-addr=:{{ .Values.applicationSet.containerPorts.metrics }}
|
||||
- --probe-addr=:{{ .Values.applicationSet.containerPorts.probe }}
|
||||
- --webhook-addr=:{{ .Values.applicationSet.containerPorts.webhook }}
|
||||
- --argocd-repo-server={{ template "argo-cd.repoServer.fullname" . }}:{{ .Values.repoServer.service.port }}
|
||||
- --enable-leader-election={{ gt ( .Values.applicationSet.replicaCount | int64) 1 }}
|
||||
- --metrics-addr={{ .Values.applicationSet.args.metricsAddr }}
|
||||
- --probe-addr={{ .Values.applicationSet.args.probeBindAddr }}
|
||||
- --policy={{ .Values.applicationSet.args.policy }}
|
||||
- --dry-run={{ .Values.applicationSet.args.dryRun }}
|
||||
- --logformat
|
||||
|
|
@ -78,13 +79,13 @@ spec:
|
|||
{{- end }}
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: {{ (split ":" .Values.applicationSet.args.metricsAddr)._1 }}
|
||||
containerPort: {{ .Values.applicationSet.containerPorts.metrics }}
|
||||
protocol: TCP
|
||||
- name: probe
|
||||
containerPort: {{ (split ":" .Values.applicationSet.args.probeBindAddr)._1 }}
|
||||
containerPort: {{ .Values.applicationSet.containerPorts.probe }}
|
||||
protocol: TCP
|
||||
- name: webhook
|
||||
containerPort: 7000
|
||||
containerPort: {{ .Values.applicationSet.containerPorts.webhook }}
|
||||
protocol: TCP
|
||||
{{- if .Values.applicationSet.livenessProbe.enabled }}
|
||||
livenessProbe:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue