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

This commit is contained in:
Haitao Pan 2023-06-02 14:20:01 +08:00
parent 8f32ab300f
commit f785e16df7

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