@@ -235,10 +235,59 @@ You are now ready to deploy the IOC instance to the cluster and test it out.
235
235
Deploying an RTEMS IOC Instance
236
236
-------------------------------
237
237
238
- TODO :
238
+ To deploy an IOC instance to the cluster you can use one of two approaches :
239
239
240
- Once you have the correct configuration in your RTEMS boot-loader and you have
241
- deployed the kubernetes IOC instance, you can restart the IOC with
242
- the ``reset `` command. This will cause it to reboot and it should pick
243
- up your binary from the network and start the IOC. You should see the
244
- iocShell fire up and run
240
+ - push your beamline repo to GitHub and tag it. Then use ``ec ioc deploy `` to
241
+ deploy the resulting versioned IOC instance. This was covered for linux IOCs
242
+ in `deploy_example `.
243
+
244
+ - use ``ec ioc deploy-local `` to directly deploy the local copy of the IOC
245
+ instance helm chart to kubernetes as a beta version. This was covered for
246
+ linux IOCs in `local_deploy_ioc `.
247
+
248
+ Both types of deployment of IOC instances above work exactly the same for
249
+ linux and RTEMS IOCs. We will do the latter as it is quicker for
250
+ the purposes of the tutorial.
251
+
252
+ Execute the following commands:
253
+
254
+ .. code-block :: bash
255
+
256
+ cd bl01t
257
+ ec ioc deploy-local iocs/bl01t-ea-ioc-02
258
+
259
+ When an RTEMS Kubernetes pod runs up it will make a telnet connection to
260
+ the hard IOC's console and present the console as stdin/stdout of the
261
+ container. This means once you have done the above deployment the command:
262
+
263
+
264
+ .. code-block :: bash
265
+
266
+ ec logs bl01t-ea-ioc-02 -f
267
+
268
+ will show the RTEMS console output, and follow it along (``-f ``) as the IOC
269
+ starts up. You can hit ``^C `` to stop following the logs.
270
+
271
+ You can also attach to the container and interact with the RTEMS console via
272
+ the telnet connection with:
273
+
274
+ .. code-block :: bash
275
+
276
+ ec attach bl01t-ea-ioc-02
277
+
278
+ Most likely for the first deploy your IOC will still be sitting at the
279
+ ``MVME5500> `` prompt. If you see this prompt when you attach then you need
280
+ to type ``reset `` to restart the boot-loader. This should then go through
281
+ the boot-loader startup and eventually start the IOC.
282
+
283
+ Checking your RTEMS IOC
284
+ -----------------------
285
+
286
+ To verify that your RTEMS IOC is working you should be able to execute the
287
+ following commands and get correct sum of the A and B values:
288
+
289
+ .. code-block :: bash
290
+
291
+ caput bl01t-ea-ioc-02:A 12
292
+ caput get bl01t-ea-ioc-02:B 13
293
+ caget get bl01t-ea-ioc-02:SUM
0 commit comments