cristifalcas / puppet-kubernetes

Apache License 2.0
17 stars 17 forks source link

repo management #1

Open neoice opened 8 years ago

neoice commented 8 years ago

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 commented 8 years ago

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

cristifalcas commented 8 years ago

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.

neoice commented 8 years ago

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 :(

cristifalcas commented 8 years ago

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

jangaraj commented 8 years ago

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

cristifalcas commented 8 years ago

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

jangaraj commented 8 years ago

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.

cristifalcas commented 8 years ago

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

scoopex commented 8 years ago

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.

andre-brongniart commented 7 years ago

+1

KlavsKlavsen commented 6 years ago

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