[ETCD] Give full FQDN name for etcd 71/125471/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 29 Oct 2021 13:51:58 +0000 (15:51 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 29 Oct 2021 13:58:05 +0000 (15:58 +0200)
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

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: {}
 
 #################################################################