Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

A Cluster API Provider implementation using docker containers as the infra provider. Cluster API locally for a change!

License

Notifications You must be signed in to change notification settings

kubernetes-retired/cluster-api-provider-docker

This branch is 15 commits ahead of, 269 commits behind master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

61a7c8b · Jul 8, 2019
Jul 8, 2019
Jul 5, 2019
Jul 8, 2019
Jun 21, 2019
Jul 2, 2019
Jul 8, 2019
Jul 2, 2019
Jul 8, 2019
Jun 24, 2019
Jun 28, 2019
Jun 25, 2019
Jul 3, 2019
Jun 24, 2019
Jun 24, 2019
Jun 20, 2019
Jul 3, 2019
Jun 24, 2019
Jun 24, 2019
Jul 3, 2019
Jul 3, 2019

Repository files navigation

Cluster API Provider Docker

Manager Container Image

A sample is built and hosted at gcr.io/kubernetes1-226021/capd-manager:latest

External Dependencies

  • go, 1.12+
  • kubectl
  • docker

Building Go binaries

Building Go binaries requires go 1.12+ for go module support.

# required if `cluster-api-provider-docker` was cloned into $GOPATH
export GO111MODULE=on
# build the binaries
go build ./cmd/capdctl
go build ./cmd/capd-manager
go build ./cmd/kind-test

Building the image

Using Gcloud

Make sure gcloud is authenticated and configured.

You also need to set up a google cloud project.

Run: ./scripts/publish-manager.sh

Using Docker

Alternatively, run: REGISTRY=<MY_REGISTRY> ./scripts/publish-manager.sh

Trying CAPD

Tested on: Linux, works ok on OS X sometimes

Make sure you have kubectl.

  1. Install capdctl:

    go install ./cmd/capdctl

  2. Start a management kind cluster

    capdctl setup

  3. Set up your kubectl

    export KUBECONFIG="${HOME}/.kube/kind-config-management"

Create a worker cluster

kubectl apply -f examples/simple-cluster.yaml

Interact with a worker cluster

The kubeconfig is on the management cluster in secrets. Grab it and write it to a file:

kubectl get secrets -o jsonpath='{.data.value}' my-cluster-kubeconfig | base64 --decode > ~/.kube/kind-config-my-cluster

Look at the pods in your new worker cluster: kubectl get po --all-namespaces --kubeconfig ~/.kube/kind-config-my-cluster

About

A Cluster API Provider implementation using docker containers as the infra provider. Cluster API locally for a change!

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published