Skip to content

Commit

Permalink
adding pvc and pv for coder
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpbennett committed Jul 17, 2024
1 parent 1c46f65 commit 9df3734
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions kubernetes/registry/helm/coder-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,42 @@ spec:
name: coder-db-url
key: url

# coder.volumeMounts -- A list of extra volume mounts to add to the Coder pod.
volumeMounts:
- name: coder-storage
mountPath: "/mnt/storage/coder"

# coder.ingress -- The Ingress object to expose for Coder.
ingress:
enabled: true
host: coder.pnfb.home
tls:
enabled: false

extraTemplates: |
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: coder-pvc
labels:
app: coder
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: coder-pv
labels:
type: local
app: coder
spec:
capacity:
storage: 50Gi
accessModes:
- ReadWriteMany
hostPath:
path: /mnt/storage/coder
destination:
server: "https://kubernetes.default.svc"
namespace: coder
Expand Down

0 comments on commit 9df3734

Please sign in to comment.