Skip to content
Snippets Groups Projects
Commit 89a25fa3 authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

Readme, first ver

parent 00c56282
No related branches found
No related tags found
No related merge requests found
This playbook deploys a whole kubernetes cluster, configures network overlay and some addons. kubernetes-ansible
========
# Download necessary binaries
Note: a variable 'local_release_dir' defines where the binaries will be downloaded. Install and configure a kubernetes cluster including network overlay and optionnal addons.
Ensure you've enough disk space Based on [CiscoCloud](https://github.com/CiscoCloud/kubernetes-ansible) work.
# Kubernetes Requirements
Kubernetes services are configured with the nodePort type. ------------
eg: each node opoens the same tcp port and forwards the traffic to the target pod wherever it is located. Tested on debian Jessie and Ubuntu.
The target servers must have access to the Internet in order to pull docker imaqes
master :
- apiserver :
Currently the apiserver listen on both secure and unsecure ports Ansible
todo, secure everything. Calico especially -------------------------
- scheduler : ## Variables
- controller :
- proxy ## Run ansible playbook
node : It is possible to define variables for different environments.
- kubelet : For instance, in order to deploy the cluster on 'dev' environment run the following command.
kubelet is configured to call calico whenever a pod is created/destroyed ```
- proxy ansible-playbook -i environments/dev/inventory cluster.yml
configures all the forwarding rules ```
# Overlay network Kubernetes
You can choose between 2 network overlays. Only one must be chosen. -------------------------
flannel: gre/vxlan (layer 2) networking ## Check cluster status
calico: bgp (layer 3) networking.
# Loadbalancer Known issues
The machine where ansible is ran must be allowed to access to the master ip on port 8080 (kubernetes api). -------------
Indeed it gathered the services definition in order to know which NodePort is configured. ## Node reboot and Calico
## Monitoring addon
## Etcd failover
Author Information
------------------
Smana - Smaine Kahlouch (smaine.kahlouch@gmail.com)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment