Not able to create a workspace using kubernetes devcontainer template

Using k3s and helm, I have setup the cluster. While creating a workspace using kubernetes devcontainer template i am getting this error,
No description
11 Replies
Codercord
Codercord3w ago
<#1337021605003657288>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
saun
saunOP3w ago
hey, Atif, you meant this only, right? For same namespace?
No description
Atif
Atif3w ago
Yes This GitHUb discussion looks similar https://github.com/coder/coder/discussions/16175 They created another cluster role to fix the issue
saun
saunOP3w ago
oh okay I will try this, thanks
saun
saunOP3w ago
how to resolve this warning
No description
saun
saunOP2w ago
resolved, thanks though @Phorcys hey, do you have any templates to know how to attach Dockerfile or .devcontainer json to docker or devcontainer tamplate
Phorcys
Phorcys2w ago
I am not sure what you mean, could you please elaborate a bit?
saun
saunOP2w ago
I want to start a workspace with a exisiting database like postgres or questdb, so I want to create a template for that, do you have any example template which does something similar?
Phorcys
Phorcys2w ago
no, but all you need to do is install the database in the Dockerfile and start it in the startup_script or in a coder_script
saun
saunOP2w ago
do u have any example for the startup_script
Phorcys
Phorcys2w ago
you can do something like
postgres -D [data dir] >logfile 2>&1 &
postgres -D [data dir] >logfile 2>&1 &

Did you find this page helpful?