birui / kube-tpr-demo

Kubernetes ThirdPartyResource Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kube-tpr-demo

Demo for using Kubernetes' ThirdPartyResource resources through the client-go library.

Installation

Check out the repository to your go workspace, e.g. ~/go/src/github.com/tiaanl/kube-tpr-demo

Build the binary:

# Install glide to manage dependencies
go get github.com/Masterminds/glide

# Install dependencies
glide install

# Build the binary
go build -v -o third .

Getting Started

Register the Namespace and ThirdPartyResource in kubernetes:

./third init

Add a new demo:

./third add --name=demo1
./third add --name=demo2

Get a list of all the demos:

./third list

Watch demos as they get created:

./third watch

# In another terminal start adding new demos
./third add --name=demo3

About

Kubernetes ThirdPartyResource Demo


Languages

Language:Go 100.0%