feat(argo-cd): Update to Argo CD 2.14 (#3155)
* feat(argo-cd): Update to Argo CD 2.14 Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * fix: Add more customization options to commit-server Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * fix: Bump appVersion to v2.14.1 Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * fix: Add 'resources' to commit-server Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * chore: Drop commitServer.service.type Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * fix: Add ability to disable the commit-server Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * chore: Drop commitServer.replicas since there are no upstream docs Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * feat: Allow adding extraVolume and mounts Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * chore: Disable commit-server by default Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> * feat: Dedicated metrics service with basic customization options Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com> --------- Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
This commit is contained in:
parent
f30bcd682d
commit
c77cb712e0
18 changed files with 2257 additions and 7 deletions
35
charts/argo-cd/templates/argocd-commit-server/metrics.yaml
Normal file
35
charts/argo-cd/templates/argocd-commit-server/metrics.yaml
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{{- if and .Values.commitServer.enabled .Values.commitServer.metrics.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "argo-cd.commitServer.fullname" . }}-metrics
|
||||
namespace: {{ include "argo-cd.namespace" . }}
|
||||
labels:
|
||||
{{- include "argo-cd.labels" (dict "context" . "component" .Values.commitServer.name "name" "metrics") | nindent 4 }}
|
||||
{{- with .Values.commitServer.metrics.service.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if or .Values.commitServer.metrics.service.annotations .Values.global.addPrometheusAnnotations }}
|
||||
annotations:
|
||||
{{- if .Values.global.addPrometheusAnnotations }}
|
||||
prometheus.io/port: {{ .Values.commitServer.metrics.service.servicePort | quote }}
|
||||
prometheus.io/scrape: "true"
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.commitServer.metrics.service.annotations }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.commitServer.metrics.service.type }}
|
||||
{{- if and .Values.commitServer.metrics.service.clusterIP (eq .Values.commitServer.metrics.service.type "ClusterIP") }}
|
||||
clusterIP: {{ .Values.commitServer.metrics.service.clusterIP }}
|
||||
{{- end }}
|
||||
{{- include "argo-cd.dualStack" . | indent 2 }}
|
||||
ports:
|
||||
- name: {{ .Values.commitServer.metrics.service.portName }}
|
||||
protocol: TCP
|
||||
port: {{ .Values.commitServer.metrics.service.servicePort }}
|
||||
targetPort: 8087
|
||||
selector:
|
||||
{{- include "argo-cd.selectorLabels" (dict "context" . "name" .Values.commitServer.name) | nindent 4 }}
|
||||
{{- end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue