Coder.comC
Coder.com14mo ago
17 replies
Châu Hoa Lộng Nguyệt

Cannot change namespace value for Devcontainer in K8s

Hi, I have deployed Coder from helm chart in my cluster in specific "coder" namespace
I'm facing issue when creating devcontainer workspace. Really need help.
I also mounted kubeconfig file to /home/coder/.kube by and I'm sure content in it is correct.

Then I created a template by choosing Devcontainers (Kubernetes) stater template.

Problems cause when I create workspace from that template. I have two question:
1. why I can't override value of var.use_kubeconfig and var.namespace? All params that I can override is describe as image bellow.
2. Even I edited main.tf, set var.namespace.default to "coder" and var.use_kubeconfig.default to
true
so it can use kubeconfig in ~/.kube/config, I still facing with error, describe in image bellow.


For more details, here's yaml file showing how I deployed coder-v2 helm chart.


Please help me. Thanks 🙂
Screenshot_2024-11-29_153126.png
Screenshot_29-11-2024_142135_coder.hoaem.vn.jpeg
coder.yaml1.99KB
Was this page helpful?