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.
#Error trying to set backend
1 messages · Page 1 of 1 (latest)
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 😉
did you set the KUBECONFIG environment variable?
that was my first idea as well, but since he said kubectl works fine I guess it's not a kubeconfig issue
kubectl uses the default kubeconfig file, $HOME/.kube/config when the env is not set, that is why kubectl works....
https://docs.netapp.com/us-en/trident/trident-get-started/kubernetes-deploy.html
says...
The KUBECONFIG environment variable set to point to your Kubernetes cluster configuration.
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