The KubeSlice-worker operator manages the life cycle of KubeSlice worker cluster related CRDs. It is strongly recommended to use a released version. Follow the instructions provided in this guide.
For more information, see getting started with kind clusters.
- Go (version 1.17 or later) installed and configured in your machine (Installing Go)
- Docker installed and running in your local machine
- A running
kind
cluster kubectl
installed and configured- 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/worker-operator.git
cd worker-operator
- Adjust image name variable
IMG
in theMakefile
to change the docker tag to be built. Default image is set asIMG ?= aveshasystems/worker-operator:latest
. Modify this if required.
make docker-build
- Loading kubeslice-worker Image into your Kind cluster (
link
). If needed, replaceaveshasystems/worker-operator
with your locally built image name in the previous step. See loading an image into your cluster.
kind load docker-image aveshasystems/worker-operator --name kind
- Check the loaded image in the cluster. Modify the node name if required.
docker exec -it kind-control-plane crictl images
To install:
- Create chart values file
yourvaluesfile.yaml
. Refer to values.yaml to createyourvaluesfile.yaml
and update the operator image subsection to use the local image.
From the sample:
operator:
image: docker.io/aveshasystems/worker-operator
tag: 0.2.3
Change it to:
operator:
image: <my-custom-image>
tag: <unique-tag>
- Deploy the Updated Chart
make chart-deploy VALUESFILE=yourvaluesfile.yaml
After running the below command, you should see that all test cases have passed.
make test
Refer to the uninstall guide
-
Detach the application from the slice.
-
Delete the slice.
-
On the worker cluster, undeploy the kubeslice-worker charts.
# uninstall all the resources
make chart-undeploy
Apache License 2.0