GithubHelp home page GithubHelp logo

isabella232 / kubernetes-ostack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from embl-ebi-tsi/kubernetes-ostack

0.0 0.0 0.0 6.33 MB

Kubernetes on EMBASSY Openstack

License: Apache License 2.0

Ruby 17.22% HCL 82.78%

kubernetes-ostack's Introduction

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:

[centos@k8s-basic-test-master ~]$ kubectl get pods --all-namespaces
NAMESPACE     NAME                                            READY     STATUS    RESTARTS   AGE
kube-system   etcd-k8s-basic-test-master                      1/1       Running   0          1m
kube-system   kube-apiserver-k8s-basic-test-master            1/1       Running   0          1m
kube-system   kube-controller-manager-k8s-basic-test-master   1/1       Running   0          2m
kube-system   kube-dns-6f4fd4bdf-d4s2c                        3/3       Running   0          2m
kube-system   kube-proxy-f2792                                1/1       Running   0          2m
kube-system   kube-proxy-mvs9x                                1/1       Running   0          2m
kube-system   kube-proxy-zdhzf                                1/1       Running   0          2m
kube-system   kube-scheduler-k8s-basic-test-master            1/1       Running   0          2m
kube-system   weave-net-2khj6                                 2/2       Running   1          2m
kube-system   weave-net-cbwbt                                 2/2       Running   0          2m
kube-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.

kubernetes-ostack's People

Contributors

erikvdbergh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.