Skip to content

Commit

Permalink
add pvis claim
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Nov 9, 2023
1 parent 53ffa0f commit 33cf8f6
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Charts/beamline-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
apiVersion: v2
name: ioc-instance

version: 1.0.0
version: 1.0.1

type: library
12 changes: 11 additions & 1 deletion Charts/beamline-chart/templates/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ spec:
hostNetwork: {{ .Values.hostNetwork }}
terminationGracePeriodSeconds: 15 # nice to have quick restarts on IOCs
volumes:
{{- if .Values.pviClaim }}
- name: pvi-volume
persistentVolumeClaim:
claimName: {{ .Values.pvi }}
{{- end }}
{{- if .Values.opisClaim }}
- name: opis-volume
persistentVolumeClaim:
Expand Down Expand Up @@ -95,11 +100,16 @@ spec:
mountPath: /nfsv2-tftp
subPath: "{{ .Values.beamline }}/{{ .Values.ioc_name }}"
{{- end }}
{{- if .Values.pvisClaim }}
- name: pvis-volume
mountPath: /epics/pvis
subPath: "{{ .Values.ioc_name }}"
{{- end }}
{{- if .Values.opisClaim }}
- name: opis-volume
mountPath: /epics/opis
subPath: "{{ .Values.ioc_name }}"
{{- end }}
{{- end }}
stdin: true
tty: true
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions Charts/beamline-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ dataVolume:

# use the shared PVC for publishing opi files over http (see services/opis)
opisClaim:
# use the shared PVC for publishing pvi device files over http (see services/opis)
pvisClaim:
# use the shared PVC autosave files (comment out for no autosave)
autosaveClaim:

Expand Down
2 changes: 1 addition & 1 deletion Charts/opis/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ description: |
type: application

version: 1.0.0
version: 1.0.1
2 changes: 1 addition & 1 deletion Charts/shared/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ description: |
type: application

version: 1.0.0
version: 1.0.1
15 changes: 15 additions & 0 deletions Charts/shared/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ spec:
requests:
storage: 100Mi
---
# PVC for shared PVI files
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Values.beamline }}-pvi-claim
labels:
app: {{ .Values.beamline }}-pvi
beamline: {{ .Values.beamline }}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 100Mi
---
# PVC for Autosave volumes
kind: PersistentVolumeClaim
apiVersion: v1
Expand Down

0 comments on commit 33cf8f6

Please sign in to comment.