pf9ctl Binary Incorrectly Updating Proxy Settings
Problem
While updating proxy settings with the pf9ctl binary, the
/opt/pf9/hostagent/pf9-hostagent.envfile is being updated incorrectly.
Environment
Platform9 Managed Kubernetes - v5.9 through v5.11
pf9ctl
Diagnosis
Before applying
pf9ctl set-proxythe file/opt/pf9/hostagent/pf9-hostagent.envlooks like below.
Setup proxy settings with
pf9ctlon Node.
After applying
pf9ctl set-proxythe file/opt/pf9/hostagent/pf9-hostagent.envlooks like below.
Hostagent Logs on the node:
Cause
This is due to a BUG: PMK-6577 and is resolved in PMK v5.12.
Workaround
Manually update
/opt/pf9/hostagent/pf9-hostagent.envfile with required environment variables.
Restart pf9-hostagent service.
Verify the proxy settings by fetching pod logs.
Additional Information
To learn more about configuring a proxy for PMK Cluster, please refer to this KB article.
