Skip to content

Commit

Permalink
PVC addition
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique committed Sep 22, 2024
1 parent af6f1ec commit 87de598
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 10 deletions.
5 changes: 5 additions & 0 deletions charts/pulsejet-cluster/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: RUST_BACKTRACE
value: "0"
livenessProbe:
Expand Down
16 changes: 16 additions & 0 deletions charts/pulsejet-cluster/templates/persistentvolume.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: pulsejet-cluster-pv
labels:
type: local
spec:
storageClassName: {{ .Values.pvcStorageClass }}
accessModes:
- ReadWriteMany
hostPath:
path: "/opt/volume/pulsejet"
type: DirectoryOrCreate
capacity:
storage: 30Gi
persistentVolumeReclaimPolicy: Retain
10 changes: 10 additions & 0 deletions charts/pulsejet-cluster/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.pvcName }}
spec:
accessModes: {{ .Values.pvcAccessModes }}
resources:
requests:
storage: 10Gi
storageClassName: {{ .Values.pvcStorageClass }}
24 changes: 14 additions & 10 deletions charts/pulsejet-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image:
repository: docker.io/jetngine/pulsejet
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "master"
tag: "latest"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -46,6 +46,11 @@ service:
clusterPort: 10273
dashboardPort: 4000

pvcName: pulsejet-cluster
pvcStorageClass: pulsejet-cluster-pv
pvcAccessModes:
- ReadWriteMany

ingress:
enabled: false
className: ""
Expand Down Expand Up @@ -99,17 +104,16 @@ autoscaling:
targetMemoryUtilizationPercentage: 80

# Additional volumes on the output Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
volumes:
- name: database
persistentVolumeClaim:
claimName: pulsejet-cluster

# Additional volumeMounts on the output Deployment definition.
volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
volumeMounts:
- name: database
mountPath: "/.database"
subPathExpr: $(POD_NAME)

nodeSelector: {}

Expand Down

0 comments on commit 87de598

Please sign in to comment.