@@ -125,7 +125,7 @@ on a node unless the pod has a matching toleration.
125
125
For example the test beamline p46 at DLS has the following ``taints `` and
126
126
``labels ``:
127
127
128
- .. code block::
128
+ .. code- block ::
129
129
130
130
Labels: beamline=bl46p
131
131
nodetype=test-rig
@@ -165,12 +165,12 @@ but here we will configure it to use the beamline cluster.
165
165
For the detail of what goes into ``environment.sh `` see
166
166
`../reference/environment `.
167
167
168
- edit ``environment.sh `` make changes as follows:
168
+ Now edit ``environment.sh `` make changes as follows:
169
169
170
170
Section 1
171
171
~~~~~~~~~
172
172
173
- to set the following variables:
173
+ Change this section to set the following variables:
174
174
175
175
.. code-block :: bash
176
176
@@ -193,6 +193,9 @@ useful to set up command line completion up. The simplest way to do this is:
193
193
set -e # exit on error
194
194
source <( ec --show-completion ${SHELL} )
195
195
196
+ For a review of how to set up the epics-containers-cli tool ``ec `` see
197
+ `python_setup ` and `ec `.
198
+
196
199
Section 3
197
200
~~~~~~~~~
198
201
@@ -225,8 +228,9 @@ will be asked for your credentials if required.
225
228
Setting up the Beamline Helm Chart Defaults
226
229
-------------------------------------------
227
230
228
- The beamline helm chart is used to deploy IOCs to the cluster. Each IOC
229
- gets to override any of the settings available in the chart. However, all
231
+ The beamline helm chart is used to deploy IOCs to the cluster. Each IOC instance
232
+ gets to override any of the settings available in the chart. This is done
233
+ in ``iocs/<iocname>/values.yaml `` for each IOC instance. However, all
230
234
settings except ``image `` have default values supplied at the beamline level.
231
235
For this reason most IOC instances only need supply the ``image `` setting
232
236
which specifies the Generic IOC container image to use.
@@ -287,6 +291,25 @@ DLS real beamlines
287
291
# point at the shared filesystem data folder for the beamline
288
292
hostPath : /dls/p46/data
289
293
294
+ Set Up The One Time Only Beamline Resources
295
+ -------------------------------------------
296
+
297
+ There are two scripts in the ``services `` directory that set up some initial
298
+ resources. You should run each of these in order:
299
+
300
+ - ``services/install-pvcs.sh ``: this sets up some persistent volume claims for
301
+ the beamline. PVCS are Kubernetes managed chunks of storage that can be
302
+ shared between pods if required. The 3 PVCS created here relate to the
303
+ ``Claim `` entries in the ``beamline-chart/values.yaml `` file. These are
304
+ places to store:
305
+ - autosave files
306
+ - runtime generated startup scripts and EPICS database files
307
+ - OPI screens (usually auto generated)
308
+ - ``services/install-opi.sh ``: this sets up an nginx web server for the
309
+ beamline. It serves the OPI screens from the ``opisClaim `` PVC. Each IOC
310
+ instance will place its OPI screens in a subdirectory of this PVC.
311
+ OPI clients like phoebus can then retrieve these files via HTTP.
312
+
290
313
Create a Test IOC to Deploy
291
314
---------------------------
292
315
0 commit comments