Skip to content

Commit 769f1b4

Browse files
authored
Merge pull request #94 from epics-containers/md
tidy up new-k8s-beamline tutorial
2 parents fcd3663 + b899bb8 commit 769f1b4

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

docs/reference/ioc_helm_chart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ in this folder and what you would need to change in your new IOC instance:
3333
- `values.yaml` - this is the helm values file. It contains the values that
3434
are substituted in to the helm templates when the helm chart is built. Most
3535
of the values that go into an IOC instance chart will be drawn from
36-
domain defaults which can be found in the folder `beamline-chart`. Values
36+
repository defaults which can be found in the folder `helm/shared`. Values
3737
you need to supply here are:
3838

3939
- `base_image` - the Generic IOC image to use for this IOC instance. A

docs/reference/k8s_resources.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ ec template services/bl01t-ea-ioc-01
1616
```
1717

1818
This is expanding the local helm chart in the `services/bl01t-ea-ioc-01` folder and using
19-
its `templates/ioc.yaml` plus the templates in `helm-ioc-lib`. These templates
19+
its `config/ioc.yaml` plus the templates in `helm-ioc-lib`. These templates
2020
are expanded using the values in the `services/bl01t-ea-ioc-01/values.yaml` file and also
21-
`beamline-chart/values.yaml` and finally the default `values.yaml` file
21+
`helm/shared/values.yaml` and finally the default `values.yaml` file
2222
from the helm-ioc-lib.
2323

2424
For a description of the key resources we create in this Kubernetes manifest

docs/tutorials/create_ioc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ For this tutorial some familiarity with the EPICS AreaDetector framework
1010
is useful. Take a look at this documentation if you have not yet come
1111
across AreaDetector: <https://areadetector.github.io/master/index.html>.
1212

13+
(create-new-ioc-instance)=
1314
## Create a New IOC Instance
1415

1516
To create a new IOC Instance simply add a new folder to the `services` folder in your beamline repo. The name of the folder will be the name of the IOC. This folder needs to contain these items:

docs/tutorials/deploy_example.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ source $HOME/ec-venv/bin/activate # DLS users don't need this step
7777
source bl01t
7878
```
7979

80+
(deploy-example-instance)=
8081
## Deploy the Example IOC Instance
8182

8283
For this section we will be making use of the epics-containers-cli tool.

docs/tutorials/dev_container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ which appear in the `iocs` folder of an {any}`ec-services-repo`. e.g.:
1919
- for Kubernetes: the values.yaml can override any settings used by helm
2020
so these can also be adjusted on a per IOC instance basis.
2121
- for Kubernetes: changes to the global values.yaml
22-
file found in `beamline-chart`, these affect all IOCs in the repository.
22+
file found in `helm/shared`, these affect all IOCs in the repository.
2323

2424
(changes_2)=
2525
### Changing the Generic IOC

docs/tutorials/setup_k8s_new_beamline.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ DLS Users: These instructions are for the BL46P beamline. This beamline is a tra
8787

8888
# Review the New Beamline Repository
8989

90-
The following sections are just a review of what the template project created. Those of you who are outside of DLS can use this as a guide to what you need to set up in your own beamline repository to talk you your own cluster. DLS users will already have these things set up by the copier template.
90+
The following sections are just a review of what the template project created. Those of you who are outside of DLS can use this as a guide to what you need to set up in your own beamline repository to talk you your own cluster. DLS users will already have these things set up by the copier template to talk to the p46-iocs namespace on pollux cluster. If you believe your repo is already configured to talk to your cluster then you could jump ahead to [](create-test-ioc-k8s).
9191

9292

9393
## Cluster Topologies
@@ -231,10 +231,9 @@ For this reason most IOC instances only need supply the `image` setting
231231
which specifies the Generic IOC container image to use.
232232

233233
Before making the first IOC instance we need to set up the beamline defaults.
234-
These are all held in the file `beamline-chart/values.yaml`.
234+
These are all held in the file `helm/shared/values.yaml`.
235235

236-
Open this file and make the following changes depending on your beamline
237-
type.
236+
Open this file and make the following changes depending on your beamline type. (Note that the new `ec-services-template` will have already set up the values below for you, assuming you are looking at one of the cluster types supported by it.)
238237

239238
### All cluster types
240239

@@ -281,12 +280,12 @@ dataVolume:
281280
# point at the shared filesystem data folder for the beamline
282281
hostPath: /dls/p46/data
283282
```
284-
283+
(create-test-ioc-k8s)=
285284
# Create a Test IOC to Deploy
286285
287-
TODO: WIP (but this looks just like it did in the first IOC deployment tutorial).
286+
TODO: This is work in progress (but essentially just repeat what we did in [](deploy-example-instance)).
288287
289-
Essentially you should be able to deploy `bl01t-ea-test-02` to the k3s cluster with the same command as before:
288+
You should be able to deploy `bl01t-ea-test-02` IOC that you made in [](create-new-ioc-instance) to the k3s cluster with the same command as before:
290289

291290
```bash
292291
cd bl01t

0 commit comments

Comments
 (0)