You need to set the http proxy env vars in agent env section of the Rancher UI for that cluster. You may not be able to change this after the fact, if the nodes are unable to communicate with rancher without the proxy configured. This is covered in the rancher docs.