Skip to main content
Glama
verify.sh702 B
#!/usr/bin/env bash # Wait for pod to be ready if kubectl wait --for=condition=Ready pod -l app=nginx -n crashloop-test --timeout=25s; then # Get current restart count restarts=$(kubectl get pods -n crashloop-test -l app=nginx -o jsonpath='{.items[0].status.containerStatuses[0].restartCount}') # Wait additional 5 seconds to ensure stability sleep 5 # Check if restart count hasn't increased new_restarts=$(kubectl get pods -n crashloop-test -l app=nginx -o jsonpath='{.items[0].status.containerStatuses[0].restartCount}') if [[ "$restarts" == "$new_restarts" ]]; then exit 0 fi fi # If we get here, deployment's pod didn't stabilize in time 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