[ETCD] Give full FQDN name for etcd 26/125626/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 29 Oct 2021 13:51:58 +0000 (15:51 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Mon, 8 Nov 2021 16:15:22 +0000 (16:15 +0000)
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 <sylvain.desbureaux@orange.com>
Change-Id: Idf384d2c65b13f64885429181c4fa2eba5ac4282
(cherry picked from commit c991f0bf4291c7b79207d98e51ca4c4cd2a3fe72)

kubernetes/common/etcd/templates/statefulset.yaml
kubernetes/common/etcd/values.yaml

index c8c0ffa..ff11da3 100644 (file)
@@ -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 }}
index 3cfd453..e2334ea 100644 (file)
@@ -17,6 +17,7 @@
 #################################################################
 global:
   nodePortPrefix: 302
+  clusterName: cluster.local
   persistence: {}
 
 #################################################################