Files
k3s/009-基础设施/007-keda/install-http-addon.sh
2026-02-05 00:11:05 +08:00

23 lines
445 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 安装 KEDA HTTP Add-on
echo "安装 KEDA HTTP Add-on..."
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
# 安装 HTTP Add-on使用默认配置
helm install http-add-on kedacore/keda-add-ons-http \
--namespace keda
echo "等待 HTTP Add-on 组件启动..."
sleep 10
echo ""
echo "HTTP Add-on 部署完成!"
kubectl get pods -n keda | grep http
echo ""
echo "HTTP Add-on 服务:"
kubectl get svc -n keda | grep http