Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from epics-containers/dev
Browse files Browse the repository at this point in the history
fix issues with service account and local volume
  • Loading branch information
gilesknap authored Mar 24, 2023
2 parents d4b028c + dd1d7b9 commit efd087c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion templates/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
is_ioc: "True"
spec:
{{ if .Values.serviceAccountName }}
serviceAccountName: {{ .Values.serviceAccount | default "epics-iocs-priv" | quote }}
serviceAccountName: {{ .Values.serviceAccountName | quote }}
{{- end }}
hostNetwork: {{ .Values.hostNetwork }}
terminationGracePeriodSeconds: 15 # nice to have quick restarts on IOCs
Expand Down
2 changes: 1 addition & 1 deletion templates/_ioc-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
beamline: {{ .Values.beamline }}
spec:
accessModes:
- ReadWriteMany
- ReadWriteOnce
resources:
requests:
storage: 10Mi
Expand Down
8 changes: 4 additions & 4 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ exports:
defaults:
beamline: no-beamline! (always override this)

# set this to your enforce namespace service account
# leave blank for default service account
# serviceAccountName: epics-iocs-priv

# to support channel access and other protocols we need to run in host's network
hostNetwork: true

Expand All @@ -21,10 +25,6 @@ exports:
# A path on the host machine to write data into, ignored if dataVolume.pvc is true
hostPath: ""

# set this to your enforce namespace service account
# leave blank for default service account
# serviceAccount: epics-iocs-priv

# provide some reasonable defaults here but allow override
securityContext:
allowPrivilegeEscalation: false
Expand Down

0 comments on commit efd087c

Please sign in to comment.