-
Notifications
You must be signed in to change notification settings - Fork 65
deprecate old versions, improve install & upgrade docs #918
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
Changes from all commits
cbea42e
2e475cd
c5a1f06
7340e61
bfb6a82
4944975
eab603a
e161e4c
17ebc97
2f41986
df2a106
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,9 @@ | ||
# Deleting a Cluster Installation | ||
|
||
To delete a Run:ai Cluster installation while retaining existing running jobs, run the following commands: | ||
To delete a Run:ai Cluster installation run the following commands: | ||
|
||
=== "Version 2.9 or later" | ||
``` | ||
helm uninstall runai-cluster -n runai | ||
``` | ||
|
||
=== "Version 2.8" | ||
``` | ||
kubectl delete RunaiConfig runai -n runai | ||
helm uninstall runai-cluster -n runai | ||
``` | ||
|
||
=== "Version 2.7 or earlier" | ||
``` | ||
kubectl patch RunaiConfig runai -n runai -p '{"metadata":{"finalizers":[]}}' --type="merge" | ||
kubectl delete RunaiConfig runai -n runai | ||
helm uninstall runai-cluster runai -n runai | ||
``` | ||
|
||
The commands will **not** delete existing Jobs submitted by users. | ||
The command will **not** delete existing Projects, Departments, or Workloads submitted by users. | ||
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,76 +1,39 @@ | ||||||
|
||||||
# Upgrading a Cluster Installation | ||||||
Below are instructions on how to upgrade a Run:ai cluster. | ||||||
|
||||||
## Find out Run:ai Cluster version | ||||||
## Upgrade Run:ai cluster | ||||||
Follow the steps bellow, based on the Run:ai Cluster version you would like to upgrade to: | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
To find the Run:ai cluster version, run: | ||||||
=== "2.15-latest" | ||||||
* In the Run:ai interface, navigate to `Clusters`. | ||||||
* Select the cluster you want to upgrade. | ||||||
* Click on `Get Installation instructions`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* Choose the `Run:ai version` to upgrade to. | ||||||
* Press `Continue`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* Copy the [Helm](https://helm.sh/docs/intro/install/) command provided in the `Installation Instructions` and run it on in the cluster. | ||||||
* In the case of a failure, refer to the [Installation troubleshooting guide](../../troubleshooting/troubleshooting.md#installation). | ||||||
|
||||||
``` | ||||||
helm list -n runai -f runai-cluster | ||||||
``` | ||||||
=== "2.13" | ||||||
Run: | ||||||
|
||||||
and record the chart version in the form of `runai-cluster-<version-number>` | ||||||
|
||||||
## Upgrade Run:ai cluster | ||||||
|
||||||
### Upgrade from version 2.15+ | ||||||
* In the Run:ai interface, navigate to `Clusters`. | ||||||
* Select the cluster you want to upgrade. | ||||||
* Click on `Get Installation instructions`. | ||||||
* Choose the `Run:ai version` to be installed on the Cluster. | ||||||
* Press `Continue`. | ||||||
* Copy the [Helm](https://helm.sh/docs/intro/install/) command provided in the `Installation Instructions` and run it on in the cluster. | ||||||
* In the case of a failure, refer to the [Installation troubleshooting guide](../../troubleshooting/troubleshooting.md#installation). | ||||||
|
||||||
### Upgrade from version 2.9, 2.10, 2.11 or 2.12 | ||||||
Run: | ||||||
|
||||||
``` | ||||||
helm get values runai-cluster -n runai > old-values.yaml | ||||||
``` | ||||||
|
||||||
1. Review the file `old-values.yaml` and see if there are any changes performed during the last installation. | ||||||
2. Follow the instructions for [Installing Run:ai](cluster-install.md#install-runai) to download a new values file. | ||||||
3. Merge the changes from Step 1 into the new values file. | ||||||
4. Run `helm upgrade` as per the instructions in the link above. | ||||||
|
||||||
|
||||||
!!! Note | ||||||
To upgrade to a __specific__ version of the Run:ai cluster, add `--version <version-number>` to the `helm upgrade` command. You can find the relevant version with `helm search repo` as described above. | ||||||
|
||||||
### Upgrade from version 2.7 or 2.8 | ||||||
|
||||||
The process of upgrading from 2.7 or 2.8 requires [uninstalling](./cluster-delete.md) and then [installing](./cluster-install.md) again. No data is lost during the process. | ||||||
|
||||||
!!! Note | ||||||
The reason for this process is that Run:ai 2.9 cluster installation no longer installs pre-requisites. As such ownership of dependencies such as Prometheus will be undefined if a `helm upgrade` is run. | ||||||
|
||||||
The process: | ||||||
|
||||||
* Delete the Run:ai cluster installation according to these [instructions](cluster-delete.md) (do not delete the Run:ai cluster __object__ from the user interface). | ||||||
* The following commands should be executed __after__ running the helm uninstall command | ||||||
``` | ||||||
kubectl -n runai delete all --all | ||||||
kubectl -n runai delete cm --all | ||||||
kubectl -n runai delete secret --all | ||||||
kubectl -n runai delete roles --all | ||||||
kubectl -n runai delete rolebindings --all | ||||||
kubectl -n runai delete ingress --all | ||||||
kubectl -n runai delete servicemonitors --all | ||||||
kubectl -n runai delete podmonitors --all | ||||||
kubectl delete validatingwebhookconfigurations.admissionregistration.k8s.io -l app=runai | ||||||
kubectl delete mutatingwebhookconfigurations.admissionregistration.k8s.io -l app=runai | ||||||
kubectl delete svc -n kube-system runai-cluster-kube-prometh-kubelet | ||||||
``` | ||||||
* Install the mandatory Run:ai [prerequisites](cluster-prerequisites.md): | ||||||
* If you have previously installed the SaaS version of Run:ai version 2.7 or below, you will need to install both [Ingress Controller](cluster-prerequisites.md#ingress-controller) and [Prometheus](cluster-prerequisites.md#prometheus). | ||||||
* If you have previously installed the SaaS version of Run:ai version 2.8 or any Self-hosted version of Run:ai, you will need to install [Prometheus](cluster-prerequisites.md#prometheus) only. | ||||||
|
||||||
|
||||||
* Install Run:ai cluster as described [here](cluster-install.md) | ||||||
|
||||||
## Verify Successful Installation | ||||||
helm get values runai-cluster -n runai > old-values.yaml | ||||||
``` | ||||||
|
||||||
* Review the file `old-values.yaml` and see if there are any changes performed during the last installation. | ||||||
* In the Run:ai interface, navigate to `Clusters`. | ||||||
* Select the cluster you want to upgrade. | ||||||
* Click on `Get Installation instructions`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* Select `Run:ai version: 2.13`. | ||||||
* Select the `cluster's Kubernetes distribution` and the `Cluster location` | ||||||
* If the Cluster locaiton is remote to the control plane - Enter a URL for the Kubernetes cluster. | ||||||
* Press `Continue`. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* Follow the instructions to download a new values file. | ||||||
* Merge the changes from Step 1 into the new values file. | ||||||
* Copy the [Helm](https://helm.sh/docs/intro/install/) command provided in the `Installation Instructions` and run it on in the cluster. | ||||||
|
||||||
## Verify Successful Upgrade | ||||||
See [Verify your installation](cluster-install.md#verify-your-clusters-health) on how to verify a Run:ai cluster installation | ||||||
|
||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.