Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

chore: Add quickstart guide #1280

Merged
merged 3 commits into from
Sep 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,52 @@ higher-level APIs:

## Guides

### Quickstart

1. Clone this repo:
```
git clone https://github.com/kubernetes-sigs/kubefed.git
```
1. Start a [kind](https://kind.sigs.k8s.io/) cluster:
```
kind create cluster
```
1. Deploy kubefed:
```
make deploy.kind
```

You now have a Kubernetes cluster with kubefed up and running. The cluster has been joined to itself and you can test federation of resources like this:

1. Verify the `KubeFedCluster` exists and is ready:
```
kubectl -n kube-federation-system get kubefedcluster
```
**If you're on macOS** the cluster will not immediately show as ready. You need to [change the API endpoint's URL first](https://github.com/kubernetes-sigs/kubefed/blob/master/docs/cluster-registration.md#joining-kind-clusters-on-macos):
```
./scripts/fix-joined-kind-clusters.sh
```
1. Create a namespace to be federated:
```
kubectl create ns federate-me
```
1. Tell kubefed to federate that namespace (and the resources in it):
```
./bin/kubefedctl federate ns federate-me
```
1. Create a `ConfigMap` to be federated:
```
kubectl -n federate-me create cm my-cm
```
1. Tell kubefed to federate that `ConfigMap`:
```
./bin/kubefedctl -n federate-me federate configmap my-cm
```
1. Verify the `FederatedConfigMap` has been created and propagates properly:
```
kubectl -n federate-me describe federatedconfigmap my-cm
```

### User Guide

Take a look at our [user guide](docs/userguide.md) if you are interested in
Expand Down