Templates in Kubernetes

How can I access and access templates when I have deployed coder on Kubernetes. When directly deploying on the machine, I can easily run the commands as provided for creating templates and workspaces. But how to do this for coder on Kubernetes
54 Replies
Atif
Atif2y ago
I have no experience with a kubernetes installation but may be you can try this, Hi, After installation you should be able to access the coder webUI on your ACCESS_URL and create the first user then login to coder using your ACCESS_URL
coder login ACCESS_URL
coder login ACCESS_URL
After that it will be same I guess.
Chinz
Chinz2y ago
Ah. Ok I am able to login But another problem occured.. When I am creating a template, it says this Error: Error when reading or editing GCE default service account: googleapi: Error 403: Request had insufficient authentication scope coder templates create I have given access to this but still this error is occuring
Phorcys
Phorcys2y ago
you have given access but you didn't give it enough permissions it seems
Chinz
Chinz2y ago
So how can I get required permissions?
Phorcys
Phorcys2y ago
i thought you were using kubernetes, why the gce ? I'm unsure, it should prompt you for which permissions you want to give it ?
Chinz
Chinz2y ago
So when I started with the steps, I just jumped here and there as I dont have idea about K8s or docker. So I just popped up an Gcloud CE and started with configuring Kubernetes with it I had no idea if its done like this or what
Phorcys
Phorcys2y ago
it's not basically when you upload the template, the kubernetes instance will be accessed from the machine that coder is running on so it needs to be accessible from that machine
Chinz
Chinz2y ago
Oh..
Phorcys
Phorcys2y ago
provider "kubernetes" {
host = "https://cluster_endpoint:port"
}
provider "kubernetes" {
host = "https://cluster_endpoint:port"
}
Chinz
Chinz2y ago
I logged in on coder with the same CE on which I configured all this helm and kubectl So where this piece of text has to be put?
Phorcys
Phorcys2y ago
in your template but I think you should show me your template first remove any secrets
Chinz
Chinz2y ago
I didnt did much just created using template init and choosed Linux on GCP and then coder templates create(where I got this error)
Phorcys
Phorcys2y ago
with that template every workspace will be a GCP instance
Chinz
Chinz2y ago
So does it mean that all the workspaces I create using that template (GCP-linux), It will be a seperate GCP VM?
Phorcys
Phorcys2y ago
yes
Want results from more Discord servers?
Add your server