Skip to content

Instantly share code, notes, and snippets.

@gilesknap
Last active December 10, 2024 18:48
Show Gist options
  • Select an option

  • Save gilesknap/bed882caa88edec1d829b7da5073ecbb to your computer and use it in GitHub Desktop.

Select an option

Save gilesknap/bed882caa88edec1d829b7da5073ecbb to your computer and use it in GitHub Desktop.
Steps to Run an epics-containers IOC without helm etc. (in personal namespace on pollux)

Minimal Steps to Launch an IOC in Kubernetes

# access a personal namespace in pollux 
module load pollux
kubectl config set-context --current --namespace hgv27681

# launch a generic IOC in the cluster - but make process 1 be sleep
kubectl run test-ioc --image ghcr.io/epics-containers/ioc-adsimdetector-developer:2024.12.1 -- sleep infinity
# check it is running
kubectl get pods
# copy in IOC instance config from somewhere
kubectl cp /scratch/hgv27681/work/example-services/services/bl01t-di-cam-01/config test-ioc:/epics/ioc/config

# run the IOC startup
kubectl exec -it test-ioc -- /epics/ioc/start.sh

# or get a shell so you can experiment with changes
kubectl exec -it test-ioc -- bash
vim /epics/ioc/config/ioc.yaml
/epics/ioc/start.sh
exit
... repeat


# when done
kubectl delete pod test-ioc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment