Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect helm install link to nauti-charts #92

Merged
merged 1 commit into from
Aug 3, 2024
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
59 changes: 4 additions & 55 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,59 +35,13 @@ a VPN tunnel to the `Hub Cluster` and create tunnels to other cnf replicas on di
Additionally, all workload pods in the clusters will have a second network interface allocated by the ``cnf`` pod on the
same node, with this second interface assigned to the ``cnf`` network namespace.

## Helm Chart Installation
## Helm Chart Installation and Clear

`Nauti` is pretty easy to install with `Helm`. Make sure you already have at least 2 Kubernetes clusters,
please refer to this installation guide.
please refer to this installation guide. [Helm Chart Page](https://nauti-io.github.io/nauti-charts/)

[Helm Chart Page](https://nauti-io.github.io/nauti-charts/)

### Set Global CIDR
`Global CIDR` is used in parallel network connection, it should not be conflict or overlap with cluster `Pod`
or `Service` CIDR, it's `10.112.0.0/12` by default.

### Install in Hub
`Hub` is a kubernetes which has a public IP exposed,
```shell
$ helm repo add nauti https://nauti-io.github.io/nauti-charts
"mcs" has been added to your repositories
$ helm repo list
NAME URL
nauti https://nauti-io.github.io/nauti-charts
$ helm search repo nauti
NAME CHART VERSION APP VERSION DESCRIPTION
nauti/nauti 0.1.0 1.16.0 A Helm chart for Tunnel across clusters.
nauti/nauti-agent 0.1.0 1.0.0 A Helm chart for Tunnel across clusters.
$ helm install nauti nauti/nauti --namespace nauti-system --create-namespace \
--set tunnel.endpoint=<Hub Pubic IP> --set tunnel.cidr=20.112.0.0/12
NAME: nauti
LAST DEPLOYED: Fri Mar 31 12:43:43 2024
NAMESPACE: nauti-system
STATUS: deployed
REVISION: 1
TEST SUITE: None

Thank you for installing nauti.
Your release is named nauti.

Continue to install nauti-agent on clusters, with bootstrap token: re51os.131tn13kek2iaqoz
And install nauti-agent in cluster by:

helm install nauti-agent mcs/nauti-agent --namespace nauti-system --create-namespace \
--set hub.hubURL=https:/<Hub Pubic IP>:6443 --set cluster.clusterID=cluster1
```


### Install in Cluster
Joining a cluster, make sure clusterID and tunnel.cidr is unique. We don't require cluster has a public IP.
```shell
$ helm repo add nauti https://nauti-io.github.io/nauti-charts
"nauti" has been added to your repositories

$ helm install nauti-agent nauti/nauti-agent --namespace nauti-system --create-namespace \
--set hub.hubURL=https://<Hub Public IP>:6443 --set cluster.clusterID=<Cluster Alias Name>
```
Add cross cluster DNS config segment, in `coredns` configmap, and restart coredns pods.
After the installation, add cross cluster DNS config segment, in `coredns` configmap, and restart coredns pods.
The `cluster-ip` of `crossdns` is a static cluster IP, usually `10.96.0.11` , check before setting.
```yaml
hyperos.local:53 {
forward . 10.96.0.11
Expand Down Expand Up @@ -132,11 +86,6 @@ Test it in another cluster.
</body>
</html>
```
## Clear All
```shell
$ helm uninstall nauti -n nauti-system
$ kubectl delete ns nauti-system
```



Loading