One Kubernetes cluster for Coder and one for the workspaces: how do I specify the ~/.kube/config for
My first battlefield experience with Coder does not went as I expected, but mainly my fault.
In all what I need to figure out, we are going to try to have 2 separate Kubernetes cluster:
- one will be hosting Coder itself
- one for all the workspaces
The template has a parameter to use a kubeconfig but it expect to be in ~/.kube/config
I understand it is more targeted towards a single instance running Coder but if I really need to run Coder in a Kubernetes cluster, how do I upload/specify the kubeconfig for workspaces?
9 Replies
<#1309461954116587603>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
You can mount the kube config to coder pods at any arbitrary location and update your template to check for that location
By default it looks at ~/.kube/config
hey Thierry!
there are different ways to achieve this
you can either change the
config_path
variable in the provider's initialization, you can also configure the provider yourself by specifying host and credentials without the need of a kubeconfigI would recommend setting some variables if you go that way, so you can modify them without having to modify the template
this week is a bit overloaded but I have to check quickly for another coming workshop
sounds good!
for now, I did not find a easy way and we decided to have dedicated nodepool for workspace with a nodeSelector on a label
/close
@Atif closed the thread.