File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -1075,11 +1075,26 @@ addons:
10751075 return:
10761076 type: warning
10771077 message: Rancher Platforms requires 'nginx' ingress controller! The current ingress controller is '${globals.ingress-dir}'
1078+ - cmd[${nodes.k8sm.master.id}]: |-
1079+ kubectl delete -f ${baseUrl}/addons/ingress/${globals.ingress-dir}/helloworld-ingress.yaml ||:
1080+ kubectl delete -f ${baseUrl}/addons/helloworld.yaml ||:
1081+ - cmd[${nodes.k8sm.master.id}]: |-
1082+ http_code=$(curl -Lks -o /dev/null -w "%{http_code}" "${env.url}")
1083+ ret_code=$?
1084+ if [ ${ret_code} -ne 0 ]; then
1085+ echo "An error occurred while accessing the [endpoint](${env.url})"
1086+ elif [ ${http_code} -eq 200 ]; then
1087+ echo "The [endpoint](${env.url}) is already taken"
1088+ elif [ ${http_code} -ne 404 ]; then
1089+ echo "The [endpoint](${env.url}) is present and answered with HTTP code ${http_code}"
1090+ fi
1091+ - if ('${response.out}'):
1092+ return:
1093+ type: warning
1094+ message: Cannot deploy Rancher UI! ${response.out}.
10781095 - cmd[${nodes.k8sm.master.id}]: |-
10791096 helm repo add rancher-stable https://releases.rancher.com/server-charts/stable
10801097 helm repo update
1081- kubectl delete -f ${baseUrl}/addons/ingress/${globals.ingress-dir}/helloworld-ingress.yaml
1082- kubectl delete -f ${baseUrl}/addons/helloworld.yaml
10831098 helm install rancher rancher-stable/rancher --create-namespace --namespace cattle-system --set tls=external
10841099 kubectl -n cattle-system rollout status deploy/rancher
10851100 - message.email.send:
You can’t perform that action at this time.
0 commit comments