From 8fbd08d02706a8a02703f0798ae407907fd8c4aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Unai=20Arr=C3=ADen?= <unaittxu@gmail.com>
Date: Wed, 5 Jan 2022 12:06:33 +0100
Subject: [PATCH] Fix DNS configuration when using
 resolvconf_mode='host_resolvconf' during scale (#23) (#8361)

---
 scale.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/scale.yml b/scale.yml
index df8a4798e..97185d96e 100644
--- a/scale.yml
+++ b/scale.yml
@@ -98,3 +98,11 @@
     - { role: kubernetes/kubeadm, tags: kubeadm }
     - { role: kubernetes/node-label, tags: node-label }
     - { role: network_plugin, tags: network }
+
+- hosts: k8s_cluster
+  gather_facts: False
+  any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
+  environment: "{{ proxy_disable_env }}"
+  roles:
+    - { role: kubespray-defaults }
+    - { role: kubernetes/preinstall, when: "dns_mode != 'none' and resolvconf_mode == 'host_resolvconf'", tags: resolvconf }
-- 
GitLab