-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# usernetes-compose | ||
|
||
I asked if [there could be support for multiple hosts](https://github.com/rootless-containers/usernetes/issues/281) | ||
and indeed this was possible. I first wanted to try this docker-compose setup. We will | ||
follow the instructions [here](https://github.com/rootless-containers/usernetes/tree/v20230518.0#multi-node-docker-compose). | ||
The goal here is to understand what CIDR addresses are and how we can extend this functionality | ||
to k3s. | ||
|
||
## Setup | ||
|
||
Clone the repository at this release. | ||
|
||
```bash | ||
$ git clone -b v20230518.0 https://github.com/rootless-containers/usernetes | ||
cd usernetes | ||
make up | ||
``` | ||
|
||
When the cluster is donec creating (and the kubeconfig file will be saved to your host) | ||
you'll want to set it and then use it. E.g., | ||
|
||
```bash | ||
$ export KUBECONFIG=$HOME/.config/usernetes/docker-compose.kubeconfig | ||
``` | ||
And then it works! | ||
|
||
``` | ||
$ kubectl get nodes | ||
NAME STATUS ROLES AGE VERSION | ||
node-containerd Ready <none> 2m20s v1.27.2 | ||
node-crio Ready <none> 2m20s v1.27.2 | ||
``` | ||
|
||
Nice! | ||
|
||
When you are done playing around: | ||
|
||
```bash | ||
$ make down | ||
``` | ||
|
||
From this point on I want to build this into VMs in [this repository](https://github.com/converged-computing/flux-terraform-gcp). |