Kubernetes KubeSpray Install - quinngroup/kubernetes GitHub Wiki
Install EPEL
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum update
Install Ansible
yum install ansible ansible localhost -m ping output should be: localhost | SUCCESS => { "changed": false, "ping": "pong" }
download Jinja2 v2.10
wget https://pypi.python.org/packages/56/e6/332789f295cf22308386cf5bbd1f4e00ed11484299c5d7383378cf48ba47/Jinja2-2.10.tar.gz#md5=61ef1117f945486472850819b8d1eb3d tar -xvzf Jinja2-2.10.tar.gz yum install python-pip python -m pip install --upgrade pip setuptools wheel pip install Jinja2 if error stating 2.7.2 already installed then pip uninstall jinja2 and then pip instal jinja2 and it should install 2.10
install netaddr
pip install netaddr
ensure ipv4
sysctl net.ipv4.ip_forward
results should = 1
if not then
sysctl -w net.ipv4.ip_forward=1
install kubespray
yum install git-all git clone https://github.com/kubernetes-incubator/kubespray.git cd kubespray git checkout -b tags/v2.3.
configure
declare -a IPS=(172.19.55.20 172.19.55.10 172.19.55.26) CONFIG_FILE=inventory/mycluster/hosts.ini python36 contrib/inventory_builder/inventory.py ${IPS[@]} ansible-playbook -i inventory/mycluster/hosts.ini cluster.yml
kubectl create clusterrolebinding my-dashboard-tokenb --clusterrole=cluster-admin --serviceaccount=default:my-dashboard-tokenb kubectl get secrets kubectl describe secret my-dashboard-tokenb-token-rhgwv