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

Unable to set manage_package = false on kubernetes::node and client #17

Open
davideagle opened this issue Feb 2, 2017 · 3 comments
Open

Comments

@davideagle
Copy link

::kubernetes::node::kubelet includes ::kubernetes::node and it then includes ::kubernetes::client and I have no way of passing manage_package = false to those classes do I ?

@cristifalcas
Copy link
Owner

If you declare the class kubernetes::client before kubernetes::node::kubelet, it should work:

class {'kubernetes::client': manage_package => false}

@davideagle
Copy link
Author

class { 'kubernetes::node':
manage_package => false,
before => Class['Kubernetes::Client']
}
class { 'kubernetes::client':
manage_package => false,
before => Class['Kubernetes::Node::Kubelet']
}

class { 'kubernetes::node::kubelet':
address => '0.0.0.0',
allow_privileged => true,
api_servers => "http://kube-master-01.openstacklocal:8080",
container_runtime => 'docker',
}

Error: Duplicate declaration: Class[Kubernetes::Client] is already declared; cannot redeclare at /etc/puppet/modules/kubestack/manifests/kubernetes/minion.pp:58 on node kube-minion-01.openstacklocal

@cristifalcas
Copy link
Owner

Since kubernetes::client is used in kubernetes::node, you need to declare it before kubernetes::node:

class { 'kubernetes::client': manage_package => false, }
class { 'kubernetes::node': manage_package => false, }
class { 'kubernetes::master': manage_package => false, }

I will make this clearer in the documentation also.

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

No branches or pull requests

2 participants