Giter VIP home page Giter VIP logo

kontainer-engine's Introduction

kontainer-engine

A tool like docker-machine to provision kubernetes cluster for different cloud providers

Building

make

Usage

kontainer-engine create --driver $driverName [OPTIONS] cluster-name

kontainer-engine inspect cluster-name

kontainer-engine ls

kontainer-engine update [OPTIONS] cluster-name

kontainer-engine rm cluster-name

To see what driver create options it has , run kontainer-engine create --driver $driverName --help

To see what update options for a cluster , run kontainer-engine update --help cluster-ame

A serviceAccountToken which binds to the clusterAdmin is automatically created for you, to see what it is, run kontainer-engine inspect clusterName

The current supported driver is gke(https://cloud.google.com/container-engine/)

Before running gke driver, make sure you have the credential. To get the credential, you can run any of the steps below

gcloud auth login or

export GOOGLE_APPLICATION_CREDENTIALS=$HOME/gce-credentials.json or

kontainer-engine create --driver gke --gke-credential-path /path/to/credential cluster-name

Running

./bin/kontainer-engine

Tests

Run tests with:

    ./run_integration_tests

You must have Go and Bats installed for the tests to run.

If you are adding new tests, note that they must have a .bats extension to be recognized by the runner.

Generated Code

The types/drivers.pb.go file is a generated file. It contains the GRPC client and server for the Kontainer-Engine drivers. This file is generated from the types/drivers.proto file. See here for more information on the format of these files.

Before running the generation script you must follow the quickstart instructions here and install the protoc binary and protoc plugin for Go.

After you have installed the prerequisites, the generated code can be generated by running ./scripts/generate-protoc.sh . This will update the drivers.pb.go file from the drivers.proto template. This script should be re-run every time drivers.proto is changed.

License

Copyright (c) 2014-2016 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

kontainer-engine's People

Contributors

nathan-jenan-rancher avatar ibuildthecloud avatar moelsayed avatar rmweir avatar dramich avatar daxmc99 avatar strongmonkey avatar galal-hussein avatar kinarashah avatar orangedeng avatar maxkorp avatar fyery-chen avatar daenney avatar dkeightley avatar gitlawr avatar cloudnautique avatar cbron avatar cezarsa avatar gliptak avatar superseb avatar drpebcak 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.