
* 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>
35 lines
1.5 KiB
YAML
35 lines
1.5 KiB
YAML
{{- 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 }}
|