puppet-kubernetes icon indicating copy to clipboard operation
puppet-kubernetes copied to clipboard

repo management

Open neoice opened this issue 9 years ago • 11 comments

many modules will provide repo management, often with a true/false parameter to allow overriding.

currently, this module appears to do no repo management.

is this something in-scope for your project?

neoice avatar Dec 03 '15 16:12 neoice

in fact, I'm not even sure there are repositories for these packages yet!

neoice avatar Dec 03 '15 16:12 neoice

The only repos I am aware of are fedora ones and centos extras. Do you want a flag to enable the repos? I could add this if you need it.

cristifalcas avatar Dec 07 '15 15:12 cristifalcas

it's probably an important feature for Puppet management of kubernetes. I decided to use the Kubernetes "hypercube" Docker image since it's one-stop shopping for all the kubernetes functionality.

I doubt my org is going to stop using Puppet, but it looks like for the near-future, it's not ready to manage Kubernetes completely :(

neoice avatar Dec 07 '15 16:12 neoice

I'll keep this in mind. I will try to fix it as soon as I have some time.

cristifalcas avatar Dec 08 '15 14:12 cristifalcas

Which repo should I configure for Debian? I can't locate packge kubernetes-node:

root@k8s:~# puppet apply --modulepath /etc/puppet/modules kubernetes-puppet.pp
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Notice: Compiled catalog for billybob.local in environment production in 1.04 seconds
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install kubernetes-node' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package kubernetes-node
Error: /Stage[main]/Kubernetes::Node/Package[kubernetes-node]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install kubernetes-node' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package kubernetes-node

Thx

jangaraj avatar Dec 10 '15 15:12 jangaraj

I couldn't find any debian/ubuntu repositories that have kubernetes packages.

cristifalcas avatar Dec 11 '15 06:12 cristifalcas

I've found one: https://github.com/kismatic/kubernetes-distro-packages:

root@k8s:~# apt-cache search kubernetes
kubernetes-master - Kubernetes master binaries and services
kubernetes-node - Kubernetes node binaries and services

However it's not compatible with this puppet module: I can't install master and node package, kubernetes-client is missing.

jangaraj avatar Dec 11 '15 17:12 jangaraj

From what I can see, that is not a debian repo. It will install kubernetes from a git repo.

cristifalcas avatar Dec 13 '15 15:12 cristifalcas

What is currently the way to go to use this module on Ubuntu 14.04 or 16.04?

@jangaraj is right - the kismatic package repo does not know a kubernetes-client package and kubernetes-master and kubernetes-node create conflicting directories.

scoopex avatar Jul 09 '16 06:07 scoopex

+1

andre-brongniart avatar Jun 20 '17 09:06 andre-brongniart

Seems Debian is the ONLY distro to have these packages.. :( Not even Ubuntu has them. Is this only tested on Debian versions? It would be nice to know (in the README) where this module is tested to work

KlavsKlavsen avatar Jul 02 '18 09:07 KlavsKlavsen