playbook/roles/k3s-addon/files/setup-ingress.sh: update

This commit is contained in:
Haitao Pan 2023-06-26 23:50:22 +08:00
parent 5d4b531baf
commit 5d122f640f

View File

@ -2,7 +2,7 @@
ingress=$1
ingress_ip=$2
if [[ '$ingress' == 'nginx' ]]; then
if [[ $ingress == "nginx" ]]; then
cat > value.yaml <<EOF
controller:
nginxplus: false
@ -57,7 +57,7 @@ helm upgrade --install nginx nginx-stable/nginx-ingress --version=0.15.0 --names
kubectl apply -f nginx-cm.yaml
kubectl patch svc nginx-nginx-ingress -n ingress --patch-file nginx-svc-patch.yaml
elif [[ '$ingress' == 'apisix' ]]; then
elif [[ $ingress == "apisix" ]]; then
helm repo add apisix https://charts.apiseven.com || echo true
helm repo update