Coder.comC
Coder.com2y ago
4 replies
jtaylor

Kubernetes and air-gap

I have a kustomization coder/postgres deployment that comes up and online and fully healthy (according to the health tab in coder). I am using Istio as an ingress but disabled service mesh to rule out blocked comms to api-server.

Everything seems fine but when I try to create a Kubernetes template, I just get a basic error of "initialize teraform: exit status 1" but nothing else.

We have mirrored public repos and certs setup well in this environment and I can exec into the pod and the terraform binary is available. I am assuming I am missing the provider somehow (though we do have a mirrored version of the hashicorp tgz as well). Is there any way I can get more verbosity from this error message or anyone have any other tips for me to try?
Solution
Do you have a .terraformrc mounted into the Coder deployment that points to a Terraform providers mirror? https://coder.com/docs/v2/latest/install/offline#offline-container-images
Run Coder in offline / air-gapped environments
Offline deployments - Coder v2 Docs
Was this page helpful?