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

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
Signed-off-by: Chuck Ha <[email protected]>
  • Loading branch information
chuckha committed Jun 12, 2019
1 parent 1843b00 commit 9aafc46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 1 addition & 0 deletions Dockerfile.capk
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ADD cmd cmd
ADD capkactuators capkactuators
ADD kind kind
ADD execer execer
ADD third_party third_party

RUN go install -v ./cmd/capk-manager
RUN GO111MODULE="on" go get sigs.k8s.io/[email protected]
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@ A temporary home for CAPK

Please make an issue to discuss before large changes occur.

# Manager Container Image
## Manager Container Image

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

## Building the binaries
### Building the binaries

Requires go 1.12? Probably less strict than that.

* `go build ./cmd/...`
* `go build ./cmd/`

## Building the image
### Building the image

Requires `gcloud` authenticated and configured.

Requires a google cloud project

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

# Running the capk manager
# Testing out CAPK

⚠️Only tested on linux⚠️

Expand All @@ -51,6 +51,8 @@ Run the capk & capi manager

### Interact with a worker cluster

You will find the kubeconfigs in /kubeconfigs on the host. In this case:
The kubeconfig is on the management cluster in secrets. Grab it and write it to a file:

`export KUBECONFIG=/kubeconfigs/kind-config-my-cluster`
`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`
6 changes: 1 addition & 5 deletions kind/actions/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,13 @@ func AddControlPlane(clusterName string) (*nodes.Node, error) {
// SetUpLoadBalancer creates a load balancer but does not configure it.
func SetUpLoadBalancer(clusterName string) (*nodes.Node, error) {
clusterLabel := fmt.Sprintf("%s=%s", constants.ClusterLabelKey, clusterName)
lb, err := nodes.CreateExternalLoadBalancerNode(
return nodes.CreateExternalLoadBalancerNode(
getName(clusterName, constants.ExternalLoadBalancerNodeRoleValue),
loadbalancer.Image,
clusterLabel,
"0.0.0.0",
0,
)
if err != nil {
return nil, err
}
return lb, nil
}

// CreateControlPlane is creating the first control plane and configuring the load balancer.
Expand Down

0 comments on commit 9aafc46

Please sign in to comment.