Giter Club home page Giter Club logo

teracy-dev-k8s's Introduction

teracy-dev-k8s

Setting up k8s cluster on teracy-dev (v0.6) with kubespray.

Requirements

  • Install the latest vagrant and virtualbox versions
  • Use with teracy-dev v0.6

How to use

  • Clone teracy-dev, kubespray and teracy-dev-k8s projects
$ cd ~/
$ git clone https://github.com/hoatle/teracy-dev.git k8s-dev
$ cd k8s-dev
$ git checkout tasks/v0.6.0
$ cd workspace
$ git clone https://github.com/kubernetes-incubator/kubespray.git
$ git clone https://github.com/hoatle/teracy-dev-k8s.git
  • And then create ~/k8s-dev/workspace/dev-setup/config_default.yaml with the following content:
teracy-dev:
  extensions:
    - path: workspace/teracy-dev-k8s
      require_version: ">= 0.1.0-SNAPSHOT"
      required: true
  • Finally:
$ cd ~/k8s-dev
$ vagrant up

When ansible is reported that everything is ok, check it out:

$ cd ~/k8s-dev
$ vagrant ssh
$ kubectl cluster-info
$ kubectl version
$ kubectl get pods

If ansible is not running sucessfully, for example:

fatal: [k8s-01]: FAILED! => {"attempts": 5, "changed": false, "cmd": "/usr/local/bin/kubectl get secrets -o custom-columns=name:{.metadata.name} --no-headers | grep -m1 default-token", "delta": "0:00:00.190677", "end": "2018-07-26 15:30:33.207118", "msg": "non-zero return code", "rc": 1, "start": "2018-07-26 15:30:33.016441", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

NO MORE HOSTS LEFT *************************************************************
  to retry, use: --limit @/vagrant/workspace/kubespray/cluster.retry

PLAY RECAP *********************************************************************
k8s-01                     : ok=354  changed=111  unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
==> k8s-01: The previous process exited with exit code 1.

You can retry with $ vagrant reload --provision

Configuration Override

To override default config, you need to create workspace/teracy-dev-k8s/config_override.yaml to override the values from workspace/teracy-dev-k8s/config_default.yaml.

For example:

k8s:
  num_instances: 2

Enjoy and happy hacking!

teracy-dev-k8s's People

Contributors

hoatle avatar phucvdb avatar

Watchers

James Cloos avatar  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.