2022-12-02 21:38:07 +00:00
# Kubeslice Enterprise Worker Helm Charts
2022-12-27 13:56:25 +00:00
## Prerequisites
- KubeSlice Controller needs to be installed
2023-06-06 17:24:40 +00:00
- Create and configure the worker cluster following instructions in prerequisites and "registering the worker cluster" sections [documentation](https://docs.avesha.io/documentation/enterprise/1.0.0/deployment-partners/deploying-kubeslice-on-rancher/installing-the-worker-operator-on-rancher)
2022-12-27 13:56:25 +00:00
- Copy the chart version from the upper right hand section of this page [VERSION parameter need during install and upgrade]
- Click on the download link from the upper right hand section of this page, save it to location available from command prompt <LOCATION OF DOWNLOADED CHART.tgz>
- Untar the chart to get the values.yaml file and edit the following fields
- controllerSecret: namespace, endpoint, ca.crt, token
- cluster: name, nodeIp, endpoint
- imagePullSecrets: username, passowrd and email [use the same info from KubeSlice Controller install]
2022-12-02 21:38:07 +00:00
2022-12-27 13:56:25 +00:00
# Installation
2022-12-02 21:38:07 +00:00
2022-12-27 13:56:25 +00:00
Add the repo:
2022-12-02 21:38:07 +00:00
```console
2022-12-27 13:56:25 +00:00
helm repo add kubeslice-rancher https://kubeslice.github.io/rancher-avesha-charts/
2022-12-02 21:38:07 +00:00
```
2022-12-27 13:56:25 +00:00
### Install Kubeslice Worker
2022-12-02 21:38:07 +00:00
```console
2022-12-27 13:56:25 +00:00
export KUBECONFIG=<WORKER CLUSTER KUBECONFIG>
helm install --namespace=kubeslice-system --create-namespace kubeslice-worker kubeslice-rancher/kubeslice-worker --timeout=10m0s --values=<LOCATION OF values.yaml> --version=<VERSION> --wait=true
2022-12-02 21:38:07 +00:00
```
2022-12-27 13:56:25 +00:00
### Upgrading Kubeslice Worker
```console
export KUBECONFIG=<WORKER CLUSTER KUBECONFIG>
helm upgrade --history-max=5 --namespace=kubeslice-system kubeslice-worker kubeslice-rancher/kubeslice-worker --timeout=10m0s --values=<LOCATION OF values.yaml> --version=<VERSION> --wait=true
```
2022-12-02 21:38:07 +00:00
2022-12-27 13:56:25 +00:00
### Uninstall Kubeslice Worker
2023-06-06 17:24:40 +00:00
- Follow instructions [documentation](https://docs.avesha.io/documentation/enterprise/1.0.0/getting-started-with-cloud-clusters/uninstalling-kubeslice/deregistering-the-worker-cluster)
2022-12-27 13:56:25 +00:00
```console
export KUBECONFIG=<WORKER CLUSTER KUBECONFIG>
helm uninstall --namespace=kubeslice-system --timeout=10m0s --wait=true kubeslice-worker
kubectl delete crd serviceexports.networking.kubeslice.io
kubectl delete crd serviceimports.networking.kubeslice.io
kubectl delete crd slicegateways.networking.kubeslice.io
2023-02-02 17:01:16 +00:00
kubectl delete crd slicenodeaffinities.networking.kubeslice.io
kubectl delete crd sliceresourcequotas.networking.kubeslice.io
kubectl delete crd slicerolebindings.networking.kubeslice.io
kubectl delete crd slices.networking.kubeslice.io
2022-12-27 13:56:25 +00:00
kubectl delete ns kubeslice-system
```