How to connect VSCode with Workspace?I'm using kubernetes templates. Anyone have guide?

.
24 Replies
kimke5
kimke52y ago
Could not establish connection to our workspace. Could you please advise me about fix it?thank
No description
Cian
Cian2y ago
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
Cian
Cian2y ago
kimke5
kimke52y ago
@Cian coder is install and I can ssh from my terminal but cannot connect from VSCode
Cian
Cian2y ago
Is tar available in your workspace?
kimke5
kimke52y ago
Could this be one of the reasons?
No description
Cian
Cian2y ago
That looks like a smoking gun to me. What are the perms on that folder?
kimke5
kimke52y ago
@Cian I have deploy coder on K8s and this is a folder of workspace
No description
Cian
Cian2y ago
Can you show the YAML for your workspace's PersistentVolumeClaim?
kimke5
kimke52y ago
you can see @Cian
No description
Cian
Cian2y ago
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...
Cian
Cian2y ago
What kind of storageClass are you using?
kimke5
kimke52y ago
this is my storageclass @Cian
No description
kimke5
kimke52y ago
I'm using helm to deploy coder pod
Want results from more Discord servers?
Add your server