Skip to main content
Glama
verify.sh429 B
#!/usr/bin/env bash # Check if service has endpoints endpoints=$(kubectl get endpoints nginx -n web -o jsonpath='{.subsets[0].addresses}') if [[ ! -z "$endpoints" ]]; then # Verify service can access the pod if kubectl run -n web test-connection --image=busybox --restart=Never --rm -i --wait --timeout=180s \ -- wget -qO- nginx; then exit 0 fi fi # If we get here, service connection failed exit 1

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/containers/kubernetes-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server