The topic
To debug or run a containerized native COBOL application running on Enterprise Server describes the process for debugging or running a containerized native COBOL application running on Enterprise Server. This
topic describes additional steps you need to perform if the container is running under Kubernetes.
- Ensure that the
kubectl command is available for you to use and configured to connect to your cluster.
See
Kubernetes: Install and Set Up kubectl for information.
- Establish which pod you want to debug. You can use a command such as the following to do this:
kubectl get pods
See
Kubernetes: Overview of kubectl for information.
- Once the container has started and the region is running, make the following changes on the
General tab of your launch configuration:
- Select
Kubernetes pod.
- Select the required pod from the adjacent drop-down list.
- Specify the local end of the port-forward in
Endpoint port.
- In the
securityContext: field of the pod's specification, enable PTRACE as shown below:
securityContext:
capabilities:
add:
- SYS_PTRACE