Test connectivity

Learning Kubernetes · 3:37

Listen on 93

Lyrics

[Verse 1]
When your audiobook won't load or play
And the service seems so far away
There's a kubectl trick that works so well
To test connections and quickly tell

Time to run a pod that's temporary
With curl inside to check what's scary
Image curlimages slash curl will do
Interactive mode will help you too

[Chorus]
kubectl run curl-test now
Image curl and tell me how
Interactive temporary pod
Dash it dash rm restart never mod

Curl dash v http colon slash slash
Service name and port don't crash
Test connectivity right away
Debug your audiobook today

[Verse 2]
The dash it flag means interactive
Terminal session that's so active
Dash dash rm cleans up when you're done
No leftover pods when test is run

Restart never means don't try again
If the pod fails just let it end
Double dash separates the command
From kubectl options you understand

[Chorus]
kubectl run curl-test now
Image curl and tell me how
Interactive temporary pod
Dash it dash rm restart never mod

Curl dash v http colon slash slash
Service name and port don't crash
Test connectivity right away
Debug your audiobook today

[Bridge]
Verbose output shows the flow
Headers requests all you need to know
Connection timeouts or success
This simple test removes the guess

Service discovery made so clear
Is your audiobook service really here
Network policies blocking the way
This curl test saves you from dismay

[Chorus]
kubectl run curl-test now
Image curl and tell me how
Interactive temporary pod
Dash it dash rm restart never mod

Curl dash v http colon slash slash
Service name and port don't crash
Test connectivity right away
Debug your audiobook today

[Outro]
When audio streams just won't connect
This kubectl curl earns respect
Temporary testing pod so neat
Makes network debugging feel complete

← Scale a deployment | Port-forward to a service →