Check Services with curl in the Kyma Dashboard Terminal ​
Use the Kyma dashboard terminal to verify that Services running inside your cluster are responding correctly. This is useful when you want to quickly test a Service endpoint without leaving the dashboard or installing any local tools.
Prerequisites ​
- You have the terminal feature enabled. For details, see Kyma Dashboard Terminal.
Procedure ​
In Kyma dashboard, go to Namespaces and select
default.Go to Workloads > Deployments and choose Create.
Enter
nginx-testas the name andnginxas the Docker image, then choose Create.Wait until the Pod status changes to
Running.Go to Discovery and Network > Services and choose Create.
Enter
nginx-testas the name. Under Ports, set Port and Target Port both to80and enter a port name, for examplehttp. Under Selectors, add the keyappand valuenginx-test, then choose Create.In the top navigation bar of Kyma dashboard, choose the Terminal icon.
Wait for the terminal to connect. The status in the terminal header changes from Connecting… to Connected to terminal.
Send a GET request to fetch the response body from the Service:
bashcurl http://<service-name>.<namespace>.svc.cluster.local:<port>Example:
bashcurl http://nginx-test.default.svc.cluster.local:80To see only the HTTP status code (useful for verifying that a Service is up), run:
bashcurl -o /dev/null -w "%{http_code}\n" http://<service-name>.<namespace>.svc.cluster.local:<port>
Result ​
The terminal displays the HTTP response from the Service. A status code of 200 confirms the Service is reachable and responding correctly. Other common status codes are the following:
| Code | Meaning |
|---|---|
200 | OK. The Service is responding correctly. |
404 | Not Found. The path doesn't exist on the Service. |
503 | Service Unavailable. The Service exists but isn't ready. |
000 | No connection. The Service is unreachable or the URL is wrong. |
Troubleshooting ​
The terminal shows curl: (6) Could not resolve host
The DNS name is incorrect. Double-check the Service name, namespace, and port. To find the correct values, use the Kyma dashboard Services view.
The terminal shows curl: (7) Failed to connect
The Service is reachable but not accepting connections on the given port. Verify the port number in the Kyma dashboard Services view.
The output looks malformed or is missing a newline
This is a known display issue in the current terminal version. The response content is correct. Only the formatting in the terminal view is affected.