GithubHelp home page GithubHelp logo

sajrahman / kuberang Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dkoshkin/kuberang-1

0.0 1.0 0.0 63 KB

A simple test that scales out two services and tests their connectivity. Uses nginx and busybox Docker images.

License: Apache License 2.0

Makefile 2.64% Go 97.36%

kuberang's Introduction

Kuberang

CircleCI

kuberang is a command-line utility for smoke testing a Kubernetes install.

It scales out a pair of services, checks their connectivity, and then scales back in again. Sort of like a boomerang, you know?

Latest Build for Linux x86

Latest Build for Darwin x86

It will tell you if the machine and account from which you run it:

  • Has kubectl installed correctly with access controls
  • Has active kubernetes namespace (if specified)
  • Has available workers
  • Has working pod & service networks
  • Has working pod <-> pod DNS
  • Has working master(s)
  • Has the ability to access pods and services from the node you run it on.

It's suggested that you run kuberang from a node OTHER than a worker.

kuberang will exit with a code of 0 even if some of the above are not possible. It's up to the user to parse the output.

Adding -o json will return a parsable json blob instead of a pretty string report.

Pre-requisites

  • A working kubectl (or all you'll get is a message complaining about kubectl)
  • Access to a Docker registry with busybox and nginx images

Usage

$ kuberang --help
kuberang tests your kubernetes cluster using kubectl

Usage:
  kuberang [flags]
  kuberang [command]

Available Commands:
  version     display the Kismatic CLI version

Flags:
  -n, --namespace string      Kubernetes namespace in which kuberang will operate. Defaults to 'default' if not specified.
      --registry-url string   Override the default Docker Hub URL to use a local offline registry for required Docker images.
      --skip-cleanup          Don't clean up. Leave all deployed artifacts running on the cluster.

Use "kuberang [command] --help" for more information about a command.

Developer notes

Pre-requisites

  • Go 1.7 installed

Build using make

We use make to clean, build, and produce our distribution package. Take a look at the Makefile for more details.

In order to build the Go binaries (e.g. Kismatic CLI):

make build

In order to clean:

make clean

In order to produce the distribution package:

make dist

This will produce an ./out directory, which contains the bits, and a tarball.

You may pass build options as necessary:

GOOS=linux make build

kuberang's People

Contributors

alexbrand avatar dkoshkin avatar marcinc avatar

Watchers

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