From 04352ee80d9b3c0813e408298de031687d57a780 Mon Sep 17 00:00:00 2001 From: Sylvain Desbureaux Date: Fri, 29 Oct 2021 15:51:58 +0200 Subject: [ETCD] Give full FQDN name for etcd Some Kubernetes deployments needs the full fqdn and not just the first part in order to make etcd statefulset to work. Issue-ID: OPTFRA-981 Signed-off-by: Sylvain Desbureaux Change-Id: Idf384d2c65b13f64885429181c4fa2eba5ac4282 (cherry picked from commit c991f0bf4291c7b79207d98e51ca4c4cd2a3fe72) --- kubernetes/common/etcd/templates/statefulset.yaml | 2 +- kubernetes/common/etcd/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/kubernetes/common/etcd/templates/statefulset.yaml b/kubernetes/common/etcd/templates/statefulset.yaml index c8c0ffa0b2..ff11da309a 100644 --- a/kubernetes/common/etcd/templates/statefulset.yaml +++ b/kubernetes/common/etcd/templates/statefulset.yaml @@ -75,7 +75,7 @@ spec: - name: SET_NAME value: {{ include "common.fullname" . }} - name: SERVICE_NAME - value: {{ include "common.servicename" . }} + value: {{ include "common.servicename" . }}.{{ include "common.namespace" . }}.svc.{{ .Values.global.clusterName }} {{- if .Values.extraEnv }} {{ toYaml .Values.extraEnv | indent 8 }} {{- end }} diff --git a/kubernetes/common/etcd/values.yaml b/kubernetes/common/etcd/values.yaml index 3cfd4535f1..e2334eadfe 100644 --- a/kubernetes/common/etcd/values.yaml +++ b/kubernetes/common/etcd/values.yaml @@ -17,6 +17,7 @@ ################################################################# global: nodePortPrefix: 302 + clusterName: cluster.local persistence: {} ################################################################# -- cgit 1.2.3-korg