#Error trying to set backend

1 messages · Page 1 of 1 (latest)

compact raven
#

when trying to use tridentctl (macos version) I get the following error.
./tridentctl -n trident create backend -f backend.json
Error: error communicating with Trident REST API; Post "http://127.0.0.1:8000/trident/v1/backend": EOF
command terminated with exit code 1
This is for an EKS cluster. Trident being run from a MAC not in AWS. Kubectl works fine.

rough locust
#

I think you need to use the CRD-based setup for that, for those you only need kubectl not tridentctl. There's actually no need for using tridentctl anymore 😉

hollow raven
#

did you set the KUBECONFIG environment variable?

rough locust
hollow raven
#

kubectl uses the default kubeconfig file, $HOME/.kube/config when the env is not set, that is why kubectl works....

rough locust
#

True, but I'm pretty certain tridentctl also looks there by default. At least it did when I last had to use it 🤷 But you're right it's still a good idea to double-check

hollow raven
#

but also, working with the CRD's, as you said, will also work