cluster-manager

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2018 License: GPL-3.0

README

Containership Agent

Development Locally

Prerequisite
  • Running kubernetes (minikube, gke, etc) and have access to the config
  • Golang installed
  • glide installed
    • brew install glide - or - curl https://glide.sh/get | sh
Up and Running
glide install -v

kubectl apply -f deploy/common

#Runs coordinator
go install cmd/cloud_coordinator/coordinator.go && CONTAINERSHIP_CLOUD_CLUSTER_API_KEY=$CONTAINERSHIP_CLOUD_CLUSTER_API_KEY \
CONTAINERSHIP_CLOUD_ORGANIZATION_ID=$CONTAINERSHIP_CLOUD_ORGANIZATION_ID CONTAINERSHIP_CLOUD_CLUSTER_ID=$CONTAINERSHIP_CLOUD_CLUSTER_ID \
KUBECONFIG=$HOME/.kube/config CONTAINERSHIP_CLOUD_SERVER_PORT=$PORT $GOBIN/coordinator```

#Runs agent
go install cmd/cloud_agent/agent.go && CONTAINERSHIP_CLOUD_CLUSTER_API_KEY=$CONTAINERSHIP_CLOUD_CLUSTER_API_KEY \
CONTAINERSHIP_CLOUD_ORGANIZATION_ID=$CONTAINERSHIP_CLOUD_ORGANIZATION_ID CONTAINERSHIP_CLOUD_CLUSTER_ID=$CONTAINERSHIP_CLOUD_CLUSTER_ID \
KUBECONFIG=$HOME/.kube/config $GOBIN/agent

Running images

Set up
  • Running kubernetes (minikube, gke, etc) and have access to the config
    • kubectl config use-context minikube #can be any cluster you wish
  • Fill in containership-env-configmap.yaml values
  • If you are using a GKE cluster, or a cluster with RBAC you will need to give the service account launching manifests access to talk to the kubernetes api
    • kubectl apply -f deploy/rbac
Up and Running

make coordinator

make agent

Directories

Path Synopsis
cmd
internal
env
log
pkg
apis/containership.io/v3
Package v3 is the v3 version of the API.
Package v3 is the v3 version of the API.
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/containership.io/v3
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/containership.io/v3/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL