-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Max Herbert
committed
Oct 11, 2024
1 parent
7cbc701
commit fc8ceb3
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# A Helm Chart for an IOC instance | ||
apiVersion: v2 | ||
name: ec-service | ||
version: 1.0.0 | ||
|
||
type: application | ||
|
||
dependencies: | ||
- name: ioc-instance | ||
version: 4.0.0 | ||
repository: "oci://ghcr.io/epics-containers" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-template-example/releases/download/3.5.1/ibek.ioc.schema.json | ||
|
||
# TODO replace above with the generic IOC schema this IOC is based on | ||
ioc_name: "{{ _global.get_env('IOC_NAME') }}" | ||
|
||
description: REPLACE WITH DESCRIPTION | ||
|
||
entities: | ||
|
||
- type: epics.EpicsEnvSet | ||
name: EPICS_TS_MIN_WEST | ||
value: '0' | ||
|
||
- type: devIocStats.iocAdminSoft | ||
IOC: '{{ ioc_name | upper }}' | ||
|
||
- type: epics.EpicsCaMaxArrayBytes | ||
max_bytes: 9000000 | ||
|
||
- type: ADAndor3.andor3 | ||
ADDR: 0 | ||
BUFFERS: 50000 | ||
P: BL99P-EA-DET-01 | ||
PORT: ZYLA.CAM | ||
R: ':CAM:' | ||
SCANRATE: .1 second | ||
SET_SDK_ENV: 'True' | ||
TIMEOUT: 1 | ||
ANDOR_SDK3: -| | ||
SDK PATH HERE | ||
|
||
- type: ADCore.NDPosPlugin | ||
NDARRAY_PORT: ZYLA.CAM | ||
P: BL99P-EA-DET-01 | ||
PORT: POS | ||
R: ':POS:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-config | ||
labels: | ||
app: {{ .Release.Name }} | ||
data: | ||
|
||
# contents of the ioc instance config folder | ||
{{ (.Files.Glob "config/*").AsConfig | indent 2 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# yaml-language-server: $schema=https://github.com/epics-containers/ec-helm-charts/releases/download/3.4.4/ioc-instance.schema.json#/$defs/service | ||
ioc-instance: | ||
image: REPLACE_WITH_IMAGE_URI | ||
|
||
# NOTE: the following are suggestions to help with debugging IOCs | ||
# 1. replace the runtime container with the developer version | ||
# this adds tools and compilers to the container so you | ||
# can experiment in the cluster to fix the issue | ||
# | ||
# image: ghcr.io/epics-containers/ioc-adsimdetector-developer:2024.4.1 | ||
|
||
# 2. override the entry point to be a sleep infinity | ||
# this means you can now use 'ec exec' to get a shell | ||
# in the container and run /epics/ioc/start.sh. | ||
# If it fails you can see the error and the pod | ||
# will not terminate. In combination with 1. above you | ||
# can experiment with changes until the issue | ||
# is fixed. | ||
# | ||
# startCommand: sleep | ||
# startArgs: infinity |