Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubeslice/gateway-sidecar
Gateway Sidecar Opensource Repository: The slice VPN Gateway is a slice network service component that provides a secure VPN tunnel between any two clusters that are a part of the slice.
https://github.com/kubeslice/gateway-sidecar
Last synced: 6 days ago
JSON representation
Gateway Sidecar Opensource Repository: The slice VPN Gateway is a slice network service component that provides a secure VPN tunnel between any two clusters that are a part of the slice.
- Host: GitHub
- URL: https://github.com/kubeslice/gateway-sidecar
- Owner: kubeslice
- License: apache-2.0
- Created: 2022-04-19T15:51:32.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-04T13:26:50.000Z (21 days ago)
- Last Synced: 2024-12-05T03:03:54.157Z (20 days ago)
- Language: Go
- Homepage:
- Size: 12.5 MB
- Stars: 20
- Watchers: 6
- Forks: 6
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code_of_conduct.md
- Codeowners: CODEOWNERS
- Security: SECURITY.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# Gateway Sidecar
The Slice VPN Gateway is a slice network service component that provides a secure VPN tunnel between any two clusters that are a part of the slice.
## Get Started
Please refer to our documentation on:
- [Get Started on KubeSlice](https://kubeslice.io/documentation/open-source/latest/category/get-started)
- [Install KubeSlice](https://kubeslice.io/documentation/open-source/latest/category/install-kubeslice)### Prerequisites
Before you begin, make sure the following prerequisites are met:
* Docker is installed and running on your local machine.
* A running [`kind`](https://kind.sigs.k8s.io/).
* [`kubectl`](https://kubernetes.io/docs/tasks/tools/) is installed and configured.
* You have prepared the environment to install [`kubeslice-controller`](https://github.com/kubeslice/kubeslice-controller) on the controller cluster
and [`worker-operator`](https://github.com/kubeslice/worker-operator) on the worker cluster. For more information, see [Prerequisites](https://kubeslice.io/documentation/open-source/1.3.0/category/prerequisites).# Build and Deploy Gateway Sidecar on a Kind Cluster
To download the latest gateway-sidecar docker hub image, click [here](https://hub.docker.com/r/aveshasystems/gw-sidecar).
The following command pulls the latest docker image:
```console
docker pull aveshasystems/gw-sidecar:latest
```## Set up Your Helm Repo
If you have not added Avesha's `helm repo` yet, add it.
```console
helm repo add avesha https://kubeslice.github.io/charts/
```Upgrade Avesha's `helm repo`.
```console
helm repo update
```
### Build Docker Images1. Clone the latest version of gateway sidecar from the `master` branch.
```bash
git clone https://github.com/kubeslice/gateway-sidecar.git
cd gateway-sidecar
```2. Edit the `VERSION` variable in the Makefile to change the docker tag to be built.
The image is set as `docker.io/aveshasystems/kubeslice-gw-sidecar:$(VERSION)` in the Makefile. Change this if required```
make docker-build
```### Run Locally on a Kind Cluster
1. You can load the gateway-sidecar docker image into a kind cluster.```bash
kind load docker-image my-custom-image:unique-tag --name clustername
```Example
```console
kind load docker-image aveshasystems/kubeslice-gw-sidecar:1.2.1 --name kind
```2. Check the loaded image in the cluster. Modify the node name as required.
```console
docker exec -it crictl images
```
Example```console
docker exec -it kind-control-plane crictl images
```### Deploy Gateway Sidecar on a Cluster
Update the chart values file called `yourvaluesfile.yaml` that you have previously created.
Refer to the [values.yaml](https://github.com/kubeslice/charts/blob/master/charts/kubeslice-worker/values.yaml) to create `yourvaluesfiel.yaml` and update the gateway-sidecar image subsection to use the local image.From the sample:
```
gateway:
image: docker.io/aveshasystems/gw-sidecar
tag: 0.1.0
```Change it to:
```
gateway:
image:
tag:
```Deploy the Updated Chart
```console
make chart-deploy VALUESFILE=yourvaluesfile.yaml
```### Verify the Installation
Verify the Gateway Sidecar Container is running by checking the status of gateway pod belonging to the `kubeslice-system` namespace.
```bash
kubectl describe pod -n kubeslice-system
```## License
Apache 2.0 License.