C
Coder.com3mo ago
ay0ks

"/persistentvolumeclaims": dial tcp [::1]:80: connect: connection refused"

Got the following error:
Error: Post "http://localhost/api/v1/namespaces/ay0ks.directory.internal.development_containers/persistentvolumeclaims": dial tcp [::1]:80: connect: connection refused
on main.tf line 194, in resource "kubernetes_persistent_volume_claim" "home":
194: resource "kubernetes_persistent_volume_claim" "home" {
Error: Post "http://localhost/api/v1/namespaces/ay0ks.directory.internal.development_containers/persistentvolumeclaims": dial tcp [::1]:80: connect: connection refused
on main.tf line 194, in resource "kubernetes_persistent_volume_claim" "home":
194: resource "kubernetes_persistent_volume_claim" "home" {
Using this template https://github.com/sharkymark/v2-templates/blob/main/src/pod-idea/main.tf
GitHub
v2-templates/src/pod-idea/main.tf at main · sharkymark/v2-templates
Coder CDE Terraform templates and tips. Contribute to sharkymark/v2-templates development by creating an account on GitHub.
14 Replies
Codercord
Codercord3mo ago
<#1280974613010186322>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys3mo ago
hello @ay0ks, how are you deploying Coder?
ay0ks
ay0ksOP3mo ago
Hello, it is hosted in a docker container
Phorcys
Phorcys3mo ago
do you have any Kubernetes instance running?
ay0ks
ay0ksOP3mo ago
No, I couldn't get it running on the VM (the host machine is running Proxmox, the Coder instance is running in a docker container on a vm)
Phorcys
Phorcys3mo ago
okay, the template you are using is meant to run workspaces on Kubernetes so it won't function unless there is a Docker container present what made you choose this template in particular? we have plenty of example templates that you can use
ay0ks
ay0ksOP3mo ago
I need Jetbrains Getaway
Phorcys
Phorcys3mo ago
alright, then I would advise that you use the docker template and add the jetbrains-gateway module to it let me know if you need any help
ay0ks
ay0ksOP3mo ago
Do I just add it somewhere in the main.tf file?
ay0ks
ay0ksOP3mo ago
No description
ay0ks
ay0ksOP3mo ago
For some reason it is getting stuck there This is what I added to main.tf
module "jetbrains_gateway" {
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.13"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder/${data.coder_workspace.me.name}"
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"]
default = "IU"
latest = true
}
module "jetbrains_gateway" {
source = "registry.coder.com/modules/jetbrains-gateway/coder"
version = "1.0.13"
agent_id = coder_agent.main.id
agent_name = "main"
folder = "/home/coder/${data.coder_workspace.me.name}"
jetbrains_ides = ["IU", "PS", "WS", "PY", "CL", "GO", "RM", "RD"]
default = "IU"
latest = true
}
Atif
Atif3mo ago
Are you sure your user in the workspace is called ${data.coder_workspace.me.name}?
Phorcys
Phorcys3mo ago
yes! but I see you already have user has left the server :-(
Codercord
Codercord3mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server