EMBL-EBI-TSI/kubernetes-ostack

Name: kubernetes-ostack

Owner: EMBL-EBI Technology & Science Integration

Description: Kubernetes on EMBASSY Openstack

Created: 2018-04-06 14:28:37.0

Updated: 2018-04-06 14:30:26.0

Pushed: 2018-04-06 14:30:26.0

Homepage: null

Size: 6479

Language: HCL

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

TSI Kubernetes on Openstack

A Terraform + Ansible combo to install a basic kubernetes setup on the EMBASSY openstack cloud.

Instructions

Copy terraform/tfvars.example to terraform/terraform.tfvars and edit to your liking. Then run:

terraform apply and confirm when prompted.

If everything has deployed successfully, cd into the ansible directory and run:

ansible-playbook -i inventory.ini -u centos cluster.yml

By default this playbook installs Kubernetes 1.9 with docker 1.12, however modify the versions.yml file to adjust this. The playbook also uses Weave as a network plugin.

SSH into your master node and run kubectl get pods --all-namespaces to check everything is ok, you should see something similar to this:

tos@k8s-basic-test-master ~]$ kubectl get pods --all-namespaces
SPACE     NAME                                            READY     STATUS    RESTARTS   AGE
-system   etcd-k8s-basic-test-master                      1/1       Running   0          1m
-system   kube-apiserver-k8s-basic-test-master            1/1       Running   0          1m
-system   kube-controller-manager-k8s-basic-test-master   1/1       Running   0          2m
-system   kube-dns-6f4fd4bdf-d4s2c                        3/3       Running   0          2m
-system   kube-proxy-f2792                                1/1       Running   0          2m
-system   kube-proxy-mvs9x                                1/1       Running   0          2m
-system   kube-proxy-zdhzf                                1/1       Running   0          2m
-system   kube-scheduler-k8s-basic-test-master            1/1       Running   0          2m
-system   weave-net-2khj6                                 2/2       Running   1          2m
-system   weave-net-cbwbt                                 2/2       Running   0          2m
-system   weave-net-pgmzm                                 2/2       Running   1          2m

Take special care if your weave or dns pods have a high number of restarts or are in an error state, this indicates networking issues. Re-check your terraform ip setup and/or try a different network adapter for Kubernetes as described here.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.