Skip to content

Commit

Permalink
Modified deploying keda (kedacore#360)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Kuchhal <[email protected]>
  • Loading branch information
Shubham82 authored Jan 29, 2021
1 parent ad18ced commit cf4745b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions content/docs/2.0/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Deploying KEDA with Helm is very simple:

```sh
kubectl create namespace keda
helm install keda kedacore/keda --namespace keda
helm install keda kedacore/keda --version 2.0.0 --namespace keda
```

### Uninstall
Expand All @@ -48,9 +48,9 @@ If you want to remove KEDA from a cluster you can run one of the following:

```sh
helm uninstall -n keda keda
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/main/config/crd/bases/keda.sh_scaledobjects.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/main/config/crd/bases/keda.sh_scaledjobs.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/main/config/crd/bases/keda.sh_triggerauthentications.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/v2.0.0/config/crd/bases/keda.sh_scaledobjects.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/v2.0.0/config/crd/bases/keda.sh_scaledjobs.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/v2.0.0/config/crd/bases/keda.sh_triggerauthentications.yaml
```

## Deploying with Operator Hub {#operatorhub}
Expand Down
18 changes: 10 additions & 8 deletions content/docs/2.1/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ We provide a few approaches to deploy KEDA runtime in your Kubernetes clusters:
- [Helm charts](#helm)
- [Operator Hub](#operatorhub)
- [YAML declarations](#yaml)
- [MicroK8s addon](#microk8s)

> 💡 **NOTE:** KEDA requires Kubernetes cluster version 1.16 and higher
Expand Down Expand Up @@ -50,6 +51,7 @@ helm uninstall -n keda keda
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/main/config/crd/bases/keda.sh_scaledobjects.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/main/config/crd/bases/keda.sh_scaledjobs.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/main/config/crd/bases/keda.sh_triggerauthentications.yaml
kubectl delete -f https://raw.githubusercontent.com/kedacore/keda/main/config/crd/bases/keda.sh_clustertriggerauthentications.yaml
```

## Deploying with Operator Hub {#operatorhub}
Expand All @@ -72,43 +74,43 @@ Locate installed KEDA Operator in `keda` namespace, then remove created `KedaCon
If you want to try KEDA on [Minikube](https://minikube.sigs.k8s.io) or a different Kubernetes deployment without using Helm you can still deploy it with `kubectl`.

- We provide sample YAML declaration which includes our CRDs and all other resources in a file which is available on the [GitHub releases](https://github.com/kedacore/keda/releases) page.
Run the following command (if needed, replace the version, in this case `2.0.0`, with the one you are using):
Run the following command (if needed, replace the version, in this case `2.1.0`, with the one you are using):

```sh
kubectl apply -f https://github.com/kedacore/keda/releases/download/v2.0.0/keda-2.0.0.yaml
kubectl apply -f https://github.com/kedacore/keda/releases/download/v2.1.0/keda-2.1.0.yaml
```

- Alternatively you can download the file and deploy it from the local path:
```sh
kubectl apply -f keda-2.0.0.yaml
kubectl apply -f keda-2.1.0.yaml
```

- You can also find the same YAML declarations in our `/config` directory on our [GitHub repo](https://github.com/kedacore/keda) if you prefer to clone it.

```sh
git clone https://github.com/kedacore/keda && cd keda
VERSION=2.0.0 make deploy
VERSION=2.1.0 make deploy
```

### Uninstall

- In case of installing from released YAML file just run the following command (if needed, replace the version, in this case `2.0.0`, with the one you are using):
- In case of installing from released YAML file just run the following command (if needed, replace the version, in this case `2.1.0`, with the one you are using):

```sh
kubectl delete -f https://github.com/kedacore/keda/releases/download/v2.0.0/keda-2.0.0.yaml
kubectl delete -f https://github.com/kedacore/keda/releases/download/v2.1.0/keda-2.1.0.yaml
```

- If you have downloaded the file locally, you can run:

```sh
kubectl delete -f keda-2.0.0.yaml
kubectl delete -f keda-2.1.0.yaml
```

- You would need to run these commands from within the directory of the cloned [GitHub repo](https://github.com/kedacore/keda):

```sh
VERSION=2.0.0 make undeploy
VERSION=2.1.0 make undeploy
```

## Deploying KEDA on MicroK8s {#microk8s}
Expand Down

0 comments on commit cf4745b

Please sign in to comment.