Skip to content

Provide a way to debug IOCs in cluster #181

@gilesknap

Description

@gilesknap

I would like to add a function to ec like this:-

ec debug services/bl01t-ea-test-01

which will

  • stop the existing ioc if it is running (whatever version of it is running already - needs to be agnostic about version)
  • create a raw K8S manifest for debugging the developer version of the IOC mentioned in services/bl01t-ea-test-01/values.yaml
  • apply that manifest to the cluster
  • kubectl copy services/bl01t-ea-test-01/values.yaml to pod:/epics/ioc/config
  • show instructions for how to connect vscode to the pod and start the IOC
  • also show instructions on how to connect phoebus to the PVs in that pod (I suggest that it runs hostNetwork=false but we can make a service and point phoebus at that -- this involves extracting which IP the service was assigned - or maybe we can use my in cluster gateway approach instead)

This is not an urgent requirement but certainly nice to have. But it raises another important question that I'll put in another issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions