Oleg Pykhalov cd44e6ed68 infrastructure: base: keda: Set log level to info. | il y a 1 an | |
---|---|---|
.. | ||
keda-add-ons-http | il y a 1 an | |
README.md | il y a 1 an | |
clusterrolebinding.yaml | il y a 1 an | |
kustomization.yaml | il y a 1 an | |
kustomizeconfig.yaml | il y a 1 an | |
namespace.yaml | il y a 1 an | |
release.yaml | il y a 1 an | |
values.yaml | il y a 1 an |
Deploying with Helm[](https://keda.sh/docs/2.10/deploy/#helm)
Install[](https://keda.sh/docs/2.10/deploy/#install)
Deploying KEDA with Helm is very simple:
Add Helm repo
helm repo add kedacore https://kedacore.github.io/charts
Update Helm repo
helm repo update
Install
keda
Helm chartHelm 3
kubectl create namespace keda helm install keda kedacore/keda --namespace keda
💡 NOTE: Are you upgrading to v2.2.1 or above? Make sure to read our troubleshooting guide to fix potential CRD issues.
Uninstall[](https://keda.sh/docs/2.10/deploy/#uninstall)
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:
kubectl delete $(kubectl get scaledobjects.keda.sh,scaledjobs.keda.sh -A \ -o jsonpath='{"-n "}{.items[*].metadata.namespace}{" "}{.items[*].kind}{"/"}{.items[*].metadata.name}{"\n"}') 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:
for i in $(kubectl get scaledobjects -A \ -o jsonpath='{"-n "}{.items[*].metadata.namespace}{" "}{.items[*].kind}{"/"}{.items[*].metadata.name}{"\n"}'); do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge done for i in $(kubectl get scaledjobs -A \ -o jsonpath='{"-n "}{.items[*].metadata.namespace}{" "}{.items[*].kind}{"/"}{.items[*].metadata.name}{"\n"}'); do kubectl patch $i -p '{"metadata":{"finalizers":null}}' --type=merge done