PV Permissions?

So I've deployed the Coder server to our K8s cluster via the helm chart; however, starting up a workspace fails on permission attempting to write to the /home/coder directory. I'm guessing because I created a persistent volume which ofc is mounted as root. How are ppl getting around this?
2 Replies
Codercord
Codercord8mo ago
<#1222645515834101912>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
robin4679
robin4679OP8mo ago
for reference here is my PV config:
apiVersion: v1
kind: PersistentVolume
metadata:
name: coder-workspace-pv
labels:
type: local
spec:
storageClassName: local-storage
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/home/coder"
apiVersion: v1
kind: PersistentVolume
metadata:
name: coder-workspace-pv
labels:
type: local
spec:
storageClassName: local-storage
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/home/coder"
I also added storage_class_name = "local-storage" to the defualt K8s template's resource "kubernetes_persistent_volume_claim" "home" spec section - I guess fml for thinking I'm being smart.
Want results from more Discord servers?
Add your server