Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus: K8s packages and their dependencies are installed on prometheus host #860

Closed
to-bar opened this issue Jan 23, 2020 · 0 comments
Labels

Comments

@to-bar
Copy link
Contributor

to-bar commented Jan 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant