/chef-kubernetes

Google Kubernetes installer for deb-based distros with docker

Primary LanguageHTML

kubernetes-cookbook

Google Kubernetes installer for deb-based distros with docker

Supported Platforms

  • Debian
  • Ubuntu

Attributes

Key Type Description Default
['kubernetes']['version'] String version of hyperkube image v1.0.3
['kubernetes']['interface'] String Network interface name for use with kubernetes eth1
['kubernetes']['cluster_name'] String Cluster name to use with API kubernetes
['kubernetes']['etcd']['discovery_url'] String Cluster discovery URL ''
['kubernetes']['etcd']['version'] String version of etcd image v2.1.1
['kubernetes']['flannel']['version'] String version of flannel image 0.5.2
['kubernetes']['flannel']['network'] Hash Network range used by flanneld {'Network' => '10.222.10.0/16'}

Usage

Discovery url

Be sure to get new discovery url for every new cluster from http://discovery.etcd.io/new?size=XXX (by default cluster size is equal to 3) and set it to node['kubernetes']['etcd']['discovery_url']

kubernetes::master

Include kubernetes::master in your master node's run_list:

{
  "run_list": [
    "recipe[kubernetes::master]"
  ]
}

And add master node to role kube_master. This is obligatory in multinode configuration - minions uses role to find master.

kubernetes::node

Include kubernetes::node in your minion node's run_list:

{
  "run_list": [
    "recipe[kubernetes::node]"
  ]
}

License and Authors

License:: http://bregor.mit-license.org

Author:: Maxim Filatov (bregor@evilmartians.com)