helm repo add kedacore https://kedacore.github.io/charts
helm repo update && helm repo list
kubectl config get-contexts
Config
export KUBECONFIG="${HOME}/.kube/dev-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/gcp-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/config"
Install
kubectl get ns|grep keda
kubectl delete ns keda
|
kubectl get ns|grep keda
kubectl create ns keda
|
|
cat <<YML | helm -n keda install keda kedacore/keda --version=2.16.0 -f -
---
clusterName: minikube
clusterDomain: cluster.local
YML
|
Uninstall
helm uninstall -n keda keda
kubectl delete namespace keda
kubectl delete crd scaledjobs.keda.sh
kubectl delete crd scaledobjects.keda.sh
kubectl delete crd clustertriggerauthentications.keda.sh
kubectl delete crd cloudeventsources.eventing.keda.sh
kubectl delete crd clustercloudeventsources.eventing.keda.sh
Playground
helm -n keda install fission kedacore/keda --version=2.15.0
helm -n keda upgrade -i fission kedacore/keda --version=2.16.0
helm show values kedacore/keda --version=2.15.0|less
kubectl get crd|grep keda.sh
|
|
kubectl config --kubeconfig=${HOME}/.kube/aws-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/dev-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/gcp-kubeconfig.yaml view --flatten
kubectl config --kubeconfig=${HOME}/.kube/config view --flatten
|
|
kubectl -n keda delete all --all
kubectl -n keda delete ing --all
kubectl -n keda delete sts --all
|
kubectl -n keda delete svc --all
kubectl -n keda delete pvc --all
kubectl -n keda delete pv --all
|
|
kubectl -n keda rollout history deploy keda-operator-metrics-apiserver
kubectl -n keda rollout status deploy keda-admission-webhooks
kubectl -n keda rollout restart deploy keda-operator
|
kubectl -n keda logs -f svc/keda-operator-metrics-apiserver
kubectl -n keda logs -f svc/keda-admission-webhooks
kubectl -n keda logs -f svc/keda-operator
|
References