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?
How-To Run Calicoctl Commands
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
When you try running calicoctl commands from the master nodes, the following error is observed.
$ /opt/pf9/pf9-kube/bin/calicoctl get nodesFailed to create Calico API client: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variableEnvironment
- Platform9 Managed Kubernetes - All versions.
- Calico
Procedure
- Log in to a master node and export the following environment variables.
xxxxxxxxxx$ export CALICO_DATASTORE_TYPE=kubernetes$ export KUBECONFIG=/etc/pf9/kube.d/kubeconfigs/admin.yaml- Run the calicoctl commands.
xxxxxxxxxx$ /opt/pf9/pf9-kube/bin/calicoctl get nodesNAME172.20.4.215172.20.4.220172.20.4.251VariableType 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?
Next to read:
How To Disable Partial Restarts of Nodeletd PhasesDiscard 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