aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/etcd/templates/service.yaml
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2025-02-10 11:57:45 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2025-02-23 11:53:14 +0000
commitd9c3cc6c8dc375df464fd0cdf009572d7bc3831b (patch)
treeedf8bb691a2a393869bc970c3e441eabee43c027 /kubernetes/common/etcd/templates/service.yaml
parentdc8cf1efa5e069173351ffcc8d065478fdeac3d5 (diff)
[COMMON] Add label template and make jobs GitOps ready
- update label template and use it within the resource definitions - add jobAnnotations in DB init jobs to make them GitOps ready - add bitnami/common chart to nginx and fix lint errors Issue-ID: OOM-3327 Issue-ID: OOM-3329 Change-Id: I72b1adad43ff479e46f6db2834c627d74c97a20c Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/common/etcd/templates/service.yaml')
-rw-r--r--kubernetes/common/etcd/templates/service.yaml10
1 files changed, 2 insertions, 8 deletions
diff --git a/kubernetes/common/etcd/templates/service.yaml b/kubernetes/common/etcd/templates/service.yaml
index 72dea06832..c5993934fd 100644
--- a/kubernetes/common/etcd/templates/service.yaml
+++ b/kubernetes/common/etcd/templates/service.yaml
@@ -20,11 +20,7 @@ metadata:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
name: {{ include "common.servicename" . }}
- labels:
- heritage: "{{ .Release.Service }}"
- release: "{{ include "common.release" . }}"
- chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
- app: {{ include "common.name" . }}
+ labels: {{- include "common.labels" . | nindent 4 }}
spec:
ports:
- name: {{ .Values.service.peerPortName }}
@@ -32,6 +28,4 @@ spec:
- name: {{ .Values.service.clientPortName }}
port: {{ .Values.service.clientInternalPort }}
clusterIP: None
- selector:
- app.kubernetes.io/name: {{ include "common.name" . }}
- app.kubernetes.io/instance: {{ include "common.release" . }}
+ selector: {{- include "common.matchLabels" . | nindent 4 }}