You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In prometheus role we have two tasks that import tasks from kubernetes_master role. This role has Ansible's dependency:
dependencies:
- role: kubernetes_common
As result, docker and kubernetes_common roles are run on prometheus host and install unnecessary packages. Kubelet logs a lot of errors like below (waiting to join a cluster):
failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file
# journalctl -u kubelet | grep -ic kubelet
6220
Quick workaround is to add delegate_to: "{{ master_hostname }}" to the import_role tasks.
The text was updated successfully, but these errors were encountered:
In
prometheus
role we have two tasks that import tasks fromkubernetes_master
role. This role has Ansible's dependency:As result,
docker
andkubernetes_common
roles are run onprometheus
host and install unnecessary packages. Kubelet logs a lot of errors like below (waiting to join a cluster):Quick workaround is to add
delegate_to: "{{ master_hostname }}"
to theimport_role
tasks.The text was updated successfully, but these errors were encountered: