-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to new services-template-helm template
- Loading branch information
Showing
21 changed files
with
202 additions
and
102 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 |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: 3.4.0 | ||
_src_path: gh:epics-containers/ec-services-template | ||
beamline: bl47p | ||
_commit: 0.2.4 | ||
_src_path: gh:epics-containers/services-template-helm | ||
cluster_name: pollux | ||
cluster_namespace: p47-iocs | ||
cluster_type: dls_shared | ||
description: beamline bl47p IOC Instances and Services | ||
cluster_namespace: p47-beamline | ||
cluster_type: dls_cluster | ||
description: p47 IOC Instances and Services | ||
git_platform: github.com | ||
github_org: epics-containers | ||
ioc_group: p47 | ||
location: bl45p | ||
logging_url: https://graylog2.diamond.ac.uk/search?rangetype=relative&fields=message%2Csource&width=1489&highlightMessage=&relative=172800&q=pod_name%3A{service_name}* | ||
node_type: training-rig | ||
repo_uri: git@github.com:epics-containers/bl47p.git | ||
type: beamline | ||
repo_uri: https://github.com/epics-containers/p47-services |
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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
**/*.tz | ||
**/*.tgz | ||
.history | ||
venv* | ||
.venv* | ||
**/Chart.lock | ||
**/charts | ||
**/*.bob | ||
|
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
# beamline bl47p IOC Instances and Services | ||
|
||
This repository holds the a definition of beamline bl47p IOC Instances and services. Each sub folder of the `services` directory contains a helm chart for a specific service or IOC. | ||
|
||
NOTE: in order to take advantage of version control, you must deploy these services using the edge-containers-cli. This will ensure that the services are deployed from a specific tag of this repository and that the version number is recorded in the cluster. | ||
|
||
See https://github.com/epics-containers/edge-containers-cli for more information. | ||
# p47 IOC Instances and Services | ||
|
||
This repository holds the a definition of p47 IOC Instances and services. Each sub folder of the `services` directory contains a helm chart for a specific service or IOC. |
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
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: 3.5.2+b11 | ||
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,16 @@ | ||
# 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_TZ | ||
value: GMT0BST | ||
|
||
- type: devIocStats.iocAdminSoft | ||
IOC: "{{ ioc_name | upper }}" | ||
|
||
# - todo: Add more entities to make a meaningful IOC |
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 |
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
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
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 |
---|---|---|
@@ -1,24 +1,5 @@ | ||
epics-opis: | ||
|
||
|
||
# the beamline name - only set for beamlines | ||
beamline: bl47p | ||
# the location where the IOCs will run - same as beamline for beamlines | ||
ioc_group: bl47p | ||
location: bl45p | ||
# the name of the repository in which the IOC is grouped | ||
location: bl47p | ||
|
||
# useAffinity - only run on nodes with label beamline:<beamline-name> | ||
# or location:<location-name> | ||
# Comment out useAffiniity for dedicated cluster, set to true for shared cluster | ||
|
||
useAffinity: true | ||
|
||
|
||
# extra toleration for the shared cluster training rigs | ||
tolerations: | ||
- key: "nodetype" | ||
operator: "Equal" | ||
value: "training-rig" | ||
effect: "NoSchedule" | ||
|
||
ioc_group: p47 |
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
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
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
epics-pvcs: | ||
|
||
# the beamline name - only set for beamlines | ||
beamline: bl47p | ||
# the location where the IOCs will run - same as beamline for beamlines | ||
ioc_group: bl47p | ||
# the location where the IOCs will run | ||
location: bl45p | ||
# the name of the repository in which the IOC is grouped | ||
location: bl47p | ||
ioc_group: p47 |
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: 3.5.2+b11 | ||
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,26 @@ | ||
record(calc, "P47:IBEK:SUM") { | ||
field(DESC, "Sum A and B") | ||
field(CALC, "A+B") | ||
field(INPA, "P47:IBEK:A") | ||
field(INPB, "P47:IBEK:B") | ||
} | ||
|
||
record(ao, "P47:IBEK:A") { | ||
field(DESC, "A voltage") | ||
field(PREC, "3") | ||
field(EGU, "Volts") | ||
field(DRVL, "-10") | ||
field(DRVH, "+10") | ||
field(VAL, "0.000") | ||
field(FLNK, "P47:IBEK:SUM") | ||
} | ||
|
||
record(ao, "P47:IBEK:B") { | ||
field(DESC, "B voltage") | ||
field(PREC, "3") | ||
field(EGU, "Volts") | ||
field(DRVL, "-10") | ||
field(DRVH, "+10") | ||
field(VAL, "0.000") | ||
field(FLNK, "P47:IBEK:SUM") | ||
} |
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,28 @@ | ||
# yaml-language-server: $schema=https://github.com/epics-containers/ioc-template/releases/download/2024.1.1/ibek.ioc.schema.json | ||
|
||
ioc_name: "{{ __utils__.get_env('IOC_NAME') }}" | ||
|
||
description: Generic instance for testing generic IOCs | ||
|
||
entities: | ||
- type: epics.EpicsEnvSet | ||
name: EPICS_TZ | ||
value: "GMT0BST" | ||
|
||
- type: devIocStats.iocAdminSoft | ||
IOC: "{{ ioc_name | upper }}" | ||
|
||
- type: epics.StartupCommand | ||
command: dbLoadRecords("/epics/ioc/config/ioc.db") | ||
|
||
- type: epics.dbpf | ||
pv: P47:IBEK:A | ||
value: "2.54" | ||
|
||
- type: epics.dbpf | ||
pv: P47:IBEK:B | ||
value: "2.61" | ||
|
||
- type: epics.PostStartupCommand | ||
command: | | ||
dbgf P47:IBEK:SUM |
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 }} |
Oops, something went wrong.