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.
For more information, see getting started with clusters.
Ensure that:
- Go (version 1.17 or later) is installed and configured in your machine (Installing Go).
- Docker is installed and running in your local machine
- You have a running kind cluster
- kubectl is installed and configured on the cluster.
- You follow the getting started from above to install kubeslice-controller.
- Clone the latest version of kubeslice-controller from the master branch.
git clone https://github.com/kubeslice/gateway-sidecar.git
cd gateway-sidecar
- Adjust image name variable IMG in the Makefile to change the docker tag to be built. The default image is set as IMG ?= aveshasystems/kubeslice-gw-sidecar:${VERSION}. Modify this if required.
make docker-build
- You can load the gateway-sidecar docker image into the kind cluster.
kind load docker-image my-custom-image:unique-tag --name clustername
Example
kind load docker-image aveshasystems/kubeslice-gw-sidecar:1.2.1 --name kind
- Check the loaded image in the cluster. Modify the node name if required.
docker exec -it <node-name> crictl images
Example.
docker exec -it kind-control-plane crictl images
Update chart values file yourvaluesfile.yaml that you have previously created. Refer to values.yaml to create yourvaluesfile.yaml and update the routerSidecar image subsection to use the local image.
From the sample: Change the following parameter values
gatewaySidecar:
image: docker.io/aveshasystems/gw-sidecar
tag: 0.1.0
Change them to:
gatewaySidecar:
image: <my-custom-image>
tag: <unique-tag>
Deploy the Updated Chart
make chart-deploy VALUESFILE=yourvaluesfile.yaml
kubectl describe pod <gateway pod name> -n kubeslice-system
Refer to the uninstallation guide.
-
Offboard the namespaces from the slice.
-
Delete the slice.
-
On the worker cluster, undeploy the kubeslice-worker charts.
make chart-undeploy
Apache License 2.0