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 🙂11 Replies
<#1311973359004815423>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
hey @Luna Lovegood, you can override the
var.<whatever>
by going in the "Variables" tab of the template
these are managed on a template-level as opposed to coder_parameter
s (what you've shown in your screenshot) which are managed on a per-workpace basis@Phorcys so that means
var.<whatever>
cannot be change when template created?
where is "Variables" tab you mentioned? I can't find it on Coder dashboardthey can! i'm currently on the go so I won't be able to give a very detailed answer right now but basically: variables are managed on a template-level by template admins, which means their value will be the same across all workspaces
on the other hand, parameters are on a per workspace basis, meaning that users will be able to control them when creating the workspace
oh thank you
I can continue from this. This post can be close or mark "solved"
@Luna Lovegood closed the thread.
let me know if you need any other help!
@Luna Lovegood reopened the thread.
I have this error message when trying to edit value for template variables
I perform in UI so I dont know where to check logs
here is some last lines from coder-agent
Oh, nvm, I put some invalid data for
cache_repo
and cache_repo_secret_name
so terraform apply cause error.@Luna Lovegood closed the thread.