Skip to content

Commit

Permalink
Allow persistentStorage - opens up multinode
Browse files Browse the repository at this point in the history
fixes #42 for me

Signed-off-by: Randall Mason <Randall@Mason.CH>
  • Loading branch information
ClashTheBunny committed Aug 27, 2023
1 parent 987e42c commit 3d97446
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tinkerbell/stack/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,40 @@ spec:
{{- end }}
volumes:
{{- if .Values.stack.hook.enabled }}
{{- not if .Values.stack.hook.persistentStorage }}
- name: hook-artifacts
hostPath:
path: {{ .Values.stack.hook.downloadsDest }}
type: DirectoryOrCreate
{{- end }}
{{- if .Values.stack.hook.persistentStorage }}
- name: hook-artifacts
persistentVolumeClaim:
claimName: hook-artifacts
{{- end }}
{{- end }}
- name: nginx-conf
configMap:
name: nginx-conf
items:
- key: nginx.conf
path: nginx.conf.template
{{- if .Values.stack.hook.persistentStorage }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: hook-artifacts
spec:
{{- if .Values.stack.hook.storageClass }}
storageClassName: {{ .Values.stack.hook.storageClass }}
{{- end }}
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi
{{- end }}
{{- if .Values.stack.service.enabled }}
---
apiVersion: v1
Expand Down
2 changes: 2 additions & 0 deletions tinkerbell/stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ stack:
port: 8080
image: alpine
downloadsDest: /opt/hook
persistentStorage: true
storageClass: ceph-filesystem
downloads:
- url: https://github.com/tinkerbell/hook/releases/download/v0.8.1/hook_x86_64.tar.gz
sha512sum: 29d8cf6991272eea20499d757252b07deba824eb778368192f9ab88b215a0dafa584e83422dac08feeb43ddce65f485557ad66210f005a81ab95fb53b7d8d424
Expand Down

0 comments on commit 3d97446

Please sign in to comment.