You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the command kubectl exec deploy/sleep-1 -- ping -c 1 sleep-2 will throw error like ping: bad address 'sleep-2' command terminated with exit code 1 ,
while the kubectl exec deploy/sleep-1 -- ping -c 2 $(kubectl get pod -l app=sleep-2 --output jsonpath='{.items[0].status.podIP}') works just fine.
The manual of Kubernetes Service is hard to digest for noobie like me, what's the cause?
The text was updated successfully, but these errors were encountered:
After creating a service with following code,
the command
kubectl exec deploy/sleep-1 -- ping -c 1 sleep-2
will throw error likeping: bad address 'sleep-2' command terminated with exit code 1
,while the
kubectl exec deploy/sleep-1 -- ping -c 2 $(kubectl get pod -l app=sleep-2 --output jsonpath='{.items[0].status.podIP}')
works just fine.The manual of Kubernetes Service is hard to digest for noobie like me, what's the cause?
The text was updated successfully, but these errors were encountered: