How to connect VSCode with Workspace?I'm using kubernetes templates. Anyone have guide?
.
24 Replies
IDEs - Coder v2 main docs
Learn how to use your IDE of choice with Coder
Could not establish connection to our workspace. Could you please advise me about fix it?thank
![No description](https://cdn.answeroverflow.com/1060856440367099984/Screenshot_from_2023-01-06_16-43-06.png)
Have you downloaded the CLI binary for your platform (https://github.com/coder/coder/releases) and run
coder config-ssh
?GitHub
Releases · coder/coder
A tool that provisions remote development environments via Terraform - coder/coder
IDEs - Coder v2 main docs
Learn how to use your IDE of choice with Coder
@Cian coder is install and I can ssh from my terminal but cannot connect from VSCode
Is
tar
available in your workspace?Could this be one of the reasons?
![No description](https://cdn.answeroverflow.com/1060867189688778852/Screenshot_from_2023-01-06_17-26-21.png)
That looks like a smoking gun to me. What are the perms on that folder?
@Cian I have deploy coder on K8s and this is a folder of workspace
![No description](https://cdn.answeroverflow.com/1060868593736220692/Screenshot_from_2023-01-06_17-32-12.png)
Can you show the YAML for your workspace's PersistentVolumeClaim?
you can see @Cian
![No description](https://cdn.answeroverflow.com/1060869223846531162/Screenshot_from_2023-01-06_17-35-19.png)
Sorry, coffee hasn't kicked in yet. The
fsGroup
would be specified in the spec.SecurityContext
of your pod.
https://kubernetes.io/docs/tasks/configure-pod-container/security-context/Kubernetes
Configure a Security Context for a Pod or Container
A security context defines privilege and access control settings for a Pod or Container. Security context settings include, but are not limited to:
Discretionary Access Control: Permission to access an object, like a file, is based on user ID (UID) and group ID (GID).
Security Enhanced Linux (SELinux): Objects are assigned security labels.
Runni...
What kind of storageClass are you using?
this is my storageclass @Cian
![No description](https://cdn.answeroverflow.com/1060870561288437770/Screenshot_from_2023-01-06_17-40-38.png)
I'm using helm to deploy coder pod