I am trying to get the Terraform kubectl provider to work from inside an EKS cluster without success.
I can apply my manifest from outside the cluster but from inside a pod I get an error: “failed to create Kubernetes rest client for update of resource: unknown”. I think this might be with the way I’m configuring the provider.
I have these env values:
KUBE_LOAD_CONFIG_FILE=false
KUBE_HOST=https://kubernetes.default.svc
I’m sure I must have to define how to authenticate to the cluster, but I don’t know how to do that.
Is there an example of using this provider from inside EKS?