Skip to content

Troubleshooting

Create a dubug pod

This image is located 050061447862.dkr.ecr.us-east-1.amazonaws.com/alpine/k8s:1.24.9

To create a copy of a pod with This container run: kubectl debug [pod name] -n [app namespace] --image=050061447862.dkr.ecr.us-east-1.amazonaws.com/alpine/k8s:1.24.9 --share-processes --copy-to=pod-debugger

If you are having trouble chaining with Dynatrace:

Get Dynatrace logs: /opt/dynatrace/oneagent-paas/log/process $ [Cat the file here] Get Contrast logs /contrast/data/logs $ [Cat the profiler and ChainLoader files]

If Contrast is experiencing a connection failure:

For Example this error: Exception communicating with Contrast. Error: Error communicating with Contrast for request URL:'/Contrast/api/ng/servers/'. Exception: System.Net.Http.HttpRequestException: Connection refused (app.contrastsecurity.com:80)

Add this annotation to the deployment:

spec:
  selector:
     ...
  template:
    metadata:
      annotations:
        proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }'

Environment Variables and Configurations:

The contrast agent operator will inject the AgentConfiguration, AgentConnection and AgentInjector which will configure all the environment variables. Therefore, no additional variables and configurations should be added to any of the deployment files.

https://kubernetes.io/docs/tasks/debug/debug-application/debug-running-pod/ https://dev.azure.com/MDTProductDevelopment/mlife-platform/_wiki/wikis/mlife-platform.wiki/1396/Dynatrace-Deployment-for-Microservices