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:Jump to 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-imagesOffline deployments - Coder v2 Docs
Run Coder in offline / air-gapped environments
3 Replies
<#1230573178208784464>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
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-imagesOffline deployments - Coder v2 Docs
Run Coder in offline / air-gapped environments
The documentation above mentions building a custom image but I've also had success mounting the tfrc in as a ConfigMap