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

Commit

Permalink
Merge pull request #7 from sethp-nr/docs/update-readme
Browse files Browse the repository at this point in the history
docs: update readme
  • Loading branch information
k8s-ci-robot authored Jun 21, 2019
2 parents cbf3654 + a65a240 commit d81278a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A temporary home for CAPD

## Manager Container Image

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

### Building the binaries

Expand All @@ -19,17 +19,25 @@ Requires `gcloud` authenticated and configured.

Requires a google cloud project

`./scripts/publish-capd-manager.sh`
`./scripts/publish-manager.sh`

#### Using Docker

Alternatively, replace "my-repository" with an appropriate prefix and run:

```
docker build -t my-repository/capd-manager:latest .
```

# Testing out CAPD

Tested on: Linux, OS X

Requirements: `kind` and `kubectl`
Requirements: `kind` > 0.3.0 and `kubectl`

Install capkctl
Install capdctl

`go install ./cmd/capkctl`
`go install ./cmd/capdctl`

Start a management kind cluster

Expand All @@ -45,7 +53,7 @@ Install the cluster-api CRDs

Run the capd & capi manager

`capdctl capd | kubectl apply -f -`
`capdctl capd -capd-image=gcr.io/my-project/capd-manager:latest | kubectl apply -f -`

## Create a worker cluster

Expand All @@ -56,6 +64,6 @@ Run the capd & capi manager
The kubeconfig is on the management cluster in secrets. Grab it and write it to a file:

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

`kubectl get po --all-namespaces --kubeconfig ~/.kube/kind-config-my-cluster`

2 changes: 1 addition & 1 deletion examples/simple-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
name: my-control-plane
labels:
cluster.k8s.io/cluster-name: my-cluster
set: "control-plane"
set: "controlplane"
spec:
providerSpec: {}
---
Expand Down

0 comments on commit d81278a

Please sign in to comment.