Skip to content

Commit

Permalink
docs: Update uninstall procedure for Helm deployments (kedacore#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianparks authored May 25, 2022
1 parent a32420f commit a3c73f2
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 6 deletions.
15 changes: 14 additions & 1 deletion content/docs/2.4/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ Deploying KEDA with Helm is very simple:

### Uninstall

If you want to remove KEDA from a cluster you can run one of the following:
If you want to remove KEDA from a cluster, you first need to remove any ScaledObjects and ScaledJobs that you have created. Once that is done, the Helm chart can be uninstalled:

```sh
kubectl delete $(kubectl get scaledobjects,scaledjobs -oname)
helm uninstall keda -n keda
```

Note: if you uninstall the Helm chart without first deleting any ScaledObject or ScaledJob resources you have created, they will become orphaned. In this situation, you will need to patch the resources to remove their finalizers. Once this is done, they should automatically be removed:

```sh
for i in $(kubectl get scaledobjects -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
for i in $(kubectl get scaledjobs -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
```

## Deploying with Operator Hub {#operatorhub}

### Install
Expand Down
15 changes: 14 additions & 1 deletion content/docs/2.5/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ Deploying KEDA with Helm is very simple:

### Uninstall

If you want to remove KEDA from a cluster you can run one of the following:
If you want to remove KEDA from a cluster, you first need to remove any ScaledObjects and ScaledJobs that you have created. Once that is done, the Helm chart can be uninstalled:

```sh
kubectl delete $(kubectl get scaledobjects,scaledjobs -oname)
helm uninstall keda -n keda
```

Note: if you uninstall the Helm chart without first deleting any ScaledObject or ScaledJob resources you have created, they will become orphaned. In this situation, you will need to patch the resources to remove their finalizers. Once this is done, they should automatically be removed:

```sh
for i in $(kubectl get scaledobjects -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
for i in $(kubectl get scaledjobs -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
```

## Deploying with Operator Hub {#operatorhub}

### Install
Expand Down
16 changes: 14 additions & 2 deletions content/docs/2.6/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,26 @@ Deploying KEDA with Helm is very simple:

### Uninstall

If you want to remove KEDA from a cluster you can run one of the following:
If you want to remove KEDA from a cluster, you first need to remove any ScaledObjects and ScaledJobs that you have created. Once that is done, the Helm chart can be uninstalled:

```sh
kubectl delete $(kubectl get scaledobjects,scaledjobs -oname)
helm uninstall keda -n keda
```

## Deploying with Operator Hub {#operatorhub}
Note: if you uninstall the Helm chart without first deleting any ScaledObject or ScaledJob resources you have created, they will become orphaned. In this situation, you will need to patch the resources to remove their finalizers. Once this is done, they should automatically be removed:

```sh
for i in $(kubectl get scaledobjects -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
for i in $(kubectl get scaledjobs -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
```

## Deploying with Operator Hub {#operatorhub}
### Install

1. On Operator Hub Marketplace locate and install KEDA operator to namespace `keda`
Expand Down
15 changes: 14 additions & 1 deletion content/docs/2.7/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ Deploying KEDA with Helm is very simple:

### Uninstall

If you want to remove KEDA from a cluster you can run one of the following:
If you want to remove KEDA from a cluster, you first need to remove any ScaledObjects and ScaledJobs that you have created. Once that is done, the Helm chart can be uninstalled:

```sh
kubectl delete $(kubectl get scaledobjects,scaledjobs -oname)
helm uninstall keda -n keda
```

Note: if you uninstall the Helm chart without first deleting any ScaledObject or ScaledJob resources you have created, they will become orphaned. In this situation, you will need to patch the resources to remove their finalizers. Once this is done, they should automatically be removed:

```sh
for i in $(kubectl get scaledobjects -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
for i in $(kubectl get scaledjobs -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
```

## Deploying with Operator Hub {#operatorhub}

### Install
Expand Down
15 changes: 14 additions & 1 deletion content/docs/2.8/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,25 @@ Deploying KEDA with Helm is very simple:

### Uninstall

If you want to remove KEDA from a cluster you can run one of the following:
If you want to remove KEDA from a cluster, you first need to remove any ScaledObjects and ScaledJobs that you have created. Once that is done, the Helm chart can be uninstalled:

```sh
kubectl delete $(kubectl get scaledobjects,scaledjobs -oname)
helm uninstall keda -n keda
```

Note: if you uninstall the Helm chart without first deleting any ScaledObject or ScaledJob resources you have created, they will become orphaned. In this situation, you will need to patch the resources to remove their finalizers. Once this is done, they should automatically be removed:

```sh
for i in $(kubectl get scaledobjects -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
for i in $(kubectl get scaledjobs -oname);
do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge
done
```

## Deploying with Operator Hub {#operatorhub}

### Install
Expand Down

0 comments on commit a3c73f2

Please sign in to comment.