Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Set proxy config for PMK Clusters
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
kubectl logs results in Error forbidden when PMK cluster is created using Proxy.
Environment
- Issue resolved in Platform9 Managed Kubernetes 5.9
Resolution
Note : This solution will only work for Platform9 Managed Kubernetes 5.9 and above
Way to avoid landing into the proxy issues:
- Onboard node to DU
- Run
pf9ctl set-proxycommand on the node
pf9ctl set-proxy --protocol http --host-ip 10.149.107.44 --port 3128 --no-proxy 10.149.106.249,10.149.106.198
In above command --no-proxy takes ip addresses of worker nodes.
- Now create cluster, you will not see forbidden error for
kubectl logscommand.
Way to resolve this on existing cluster which is already behind proxy:
- SSH to master node
- Run
pf9ctl set-proxycommand like above and pass IPs or subnet of worker nodes to--no-proxyflag - Stop
pf9-hostagentandpf9-nodeletdservices
systemctl stop pf9-hostagent.service pf9-nodeletd.service
- Restart
Prepare configurationphase
/opt/pf9/nodelet/nodeletd phases restart --single -p 2
It will restart prepare configuration phase and it will append worker ips to no_proxy var in master.yaml
Note : It will restart kube-apiserver , kube-scheduler and kube-controller-manager
- Start
pf9-hostagentandpf9-nodeletdservices
systemctl start pf9-hostagent.service pf9-nodeletd.service
- Verify
kubectl logscommand. you will not see forbidden error forkubectl logscommand.
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message