aboutsummaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2020-10-21 09:37:37 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2020-11-19 10:40:07 -0800
commit7e06fbaa3d1293ca9b25aeb7ea7cb7be2179e30a (patch)
treeae6f795d9c0652ccf5fba2b48c19335fdb29fc25 /kud/deployment_infra
parentb3a1e8b58d2053f9d699d5b687e3a87600c3115c (diff)
Fix CrashLoopBackoff in emco-fluentd Pod
The emco-fluentd pod is stuck in CrashLoopBackOff due to a failure to resolve the "cluster.local" name. Explicitly set the fluentd.clusterDomain value to the actual cluster name during helm install. Issue-ID: MULTICLOUD-1244 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: Ia6424e7ce8d4544511ad88c478e65fa8c4df0c52
Diffstat (limited to 'kud/deployment_infra')
-rw-r--r--kud/deployment_infra/playbooks/configure-emco.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/kud/deployment_infra/playbooks/configure-emco.yml b/kud/deployment_infra/playbooks/configure-emco.yml
index eb6adcf2..7a4cf926 100644
--- a/kud/deployment_infra/playbooks/configure-emco.yml
+++ b/kud/deployment_infra/playbooks/configure-emco.yml
@@ -36,6 +36,10 @@
- debug:
var: make_all.stdout_lines
+ - name: Get cluster name
+ shell: "kubectl -n kube-system get configmap/kubeadm-config -o yaml | grep clusterName: | awk '{print $2}'"
+ register: cluster_name
+
- name: Change the emco directory and run the command helm install
command: /usr/local/bin/helm install --namespace emco --create-namespace --set emco-tools.fluentd.clusterDomain={{ cluster_name.stdout }} emco dist/packages/emco-0.1.0.tgz
register: helm_install