Coder Social home page Coder Social logo

fabianromerorcc / kubernetes-install-chef Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 41 KB

Chef recipes for installing Kubernetes on Ubuntu 14 with a single node (master - minion)

License: MIT License

Ruby 19.69% Shell 68.32% HTML 11.99%
kubernetes kubernetes-cluster chef recipe ubuntu1404 ubuntu

kubernetes-install-chef's Introduction

Kubernetes Recipes (Cookbooks)

Chef recipes for installing Kubernetes on Ubuntu 14 with a single node (master - minion)

Requirements

  • Ubuntu 14
  • Git
  • User with root access (I'm using root here)
  • /bin/bash as login shell
  • ChefDK (Installing directions down below)

Usage

TODO - Improve recipe to avoid using root

First, switch to root:

sudo su -

ChefDK Installation

Download the ChefDK

wget https://packages.chef.io/files/stable/chefdk/1.2.22/ubuntu/14.04/chefdk_1.2.22-1_amd64.deb

Install

sudo dpkg -i chefdk_1.2.22-1_amd64.deb

Environment variables config for Chef

source <(chef shell-init bash) && \
echo 'source <(chef shell-init bash)' >> ~/.bash_profile

Recipe installation

Clone repo and cd into folder

git clone https://github.com/fabianromerorcc/kubernetes-install-chef.git && cd kubernetes-install-chef

Run recipe

Finally, run the following command to start with cluster installation

chef-client -z -o kubernetes_install

Verify installation

Get a list of installed pods:

kubectl get pods

It should list at least two services: busybox and kubernetes-bootcamp. Something like:

NAME                                  READY     STATUS    RESTARTS   AGE
busybox                               1/1       Running   1          4d
kubernetes-bootcamp-390780338-nbb8l   1/1       Running   1          4d

Probably in your case those pods could be in a "Container Creating" status. It means that Kubernetes is still installing, maybe downloading docker images of those services. Wait a few seconds and try to get a list of the pods again.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

License

The MIT License (MIT)

Copyright (c) 2017 Fabián Romero

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

kubernetes-install-chef's People

Contributors

fabianromerorcc avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mario21ic

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.