Skip to content

alcortes01/kubernetes

Repository files navigation

kubernetes

Chef cookbook to create a Kubernetes cluster.

Recipes:

  • common.rb to install kubernetes and flannel in all servers.
  • node.rb to configure kube-proxy, docker, and kubelet.
  • master.rb to configure etcd, kube-proxy, kube-scheduler, kube-controller-manager, and kube-apiserver.

Requirements:

  • Master server to include common and master recipes.
  • Nodes to include common and node recipes.
  • default attributes to be modified:
    • default['kubernetes']['master_url']
    • default['kubernetes']['etcd_url']
    • default['kubernetes']['api_server']
    • default['kubernetes']['ssl_key']
    • default['kubernetes']['flanneld_iface']
  • flanneld_iface = enp0s8 is the default private interface assigned by Vagrant, you will need to change this to the interface that will be used for nodes communication. E.g. eth0.

Test with Kitchen

To test with Vagrant, you need to install the Landrush plugin to manage DNS automatically. Configure .kitchen.yml to add static IPs, and hostnames in the .vagrant.test domain.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published