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
  • Loading branch information
ClashTheBunny committed Aug 27, 2023
1 parent 987e42c commit c7f1880
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tinkerbell/stack/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,38 @@ spec:
{{- end }}
volumes:
{{- if .Values.stack.hook.enabled }}
{{- if .Values.stack.hook.localDirectory }}
- 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:
storageClassName: ceph-filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Gi
{{- end }}
{{- if .Values.stack.service.enabled }}
---
apiVersion: v1
Expand Down
1 change: 1 addition & 0 deletions tinkerbell/stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ stack:
port: 8080
image: alpine
downloadsDest: /opt/hook
persistentStorage: true
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 c7f1880

Please sign in to comment.