- To disable scale-to-zero, enter the following
command:
kubectl -n knative-serving edit cm config-autoscaler
Add
the following to the bottom of the file:data:
enable-scale-to-zero: "false"
- If your environment is behind a proxy, add the appropriate environmental
variables to controller deployment in the
knative-serving
namespace. From the Kubernetes master node, execute the following
commands:kubectl set env deployment/controller -n knative-serving http_proxy="$http_proxy"
kubectl set env deployment/controller -n knative-serving https_proxy="$https_proxy"
kubectl set env deployment/controller -n knative-serving no_proxy="$no_proxy"