pf9ctl Binary Incorrectly Updating Proxy Settings

Problem

  • While updating proxy settings with the pf9ctl binary, the /opt/pf9/hostagent/pf9-hostagent.env file is being updated incorrectly.

Environment

  • Platform9 Managed Kubernetes - v5.9 through v5.11
  • pf9ctl

Diagnosis

  • Before applying pf9ctl set-proxy the file /opt/pf9/hostagent/pf9-hostagent.env looks like below.
Bash
Copy
  • Setup proxy settings with pf9ctl on Node.
pf9ctl command
Copy
  • After applying pf9ctl set-proxy the file /opt/pf9/hostagent/pf9-hostagent.env looks like below.
Bash
Copy
  • Hostagent Logs on the node:
Hostagent Logs
Copy

Cause

  • This is due to a BUG: PMK-6577 and is resolved in PMK v5.12.

Workaround

  • Manually update /opt/pf9/hostagent/pf9-hostagent.env file with required environment variables.
Bash
Copy
  • Restart pf9-hostagent service.
Bash
Copy
  • Verify the proxy settings by fetching pod logs.
Kubectl Command
Copy

Additional Information

  • To learn more about configuring a proxy for PMK Cluster, please refer to this KB article.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard