GithubHelp home page GithubHelp logo

thebsdbox / cluster-api-provider-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kubernetes-retired/cluster-api-provider-docker

0.0 2.0 0.0 474 KB

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

License: Apache License 2.0

HCL 0.17% Dockerfile 1.06% Go 80.61% Shell 16.79% Makefile 1.38%

cluster-api-provider-docker's Introduction

Cluster API Provider Docker

Manager Container Image

A sample is built and hosted at gcr.io/kubernetes1-226021/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 into ${PWD}/bin
./script/build-binaries.sh

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, to publish the manager container image to your pre-existing custom container registry, run: REGISTRY=<MY_REGISTRY> ./scripts/publish-manager.sh

NOTE: You should have run docker login to login to your custom container registry.

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

cluster-api-provider-docker's People

Contributors

ashish-amarnath avatar chuckha avatar dennisme avatar erwinvaneyk avatar fabriziopandini avatar k8s-ci-robot avatar liztio avatar ncdc avatar neolit123 avatar nikhita avatar sethp-nr avatar yuzhang17 avatar

Watchers

 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.