CKA mock3 exam Question 5th I followed the solution steps but not able to curl or ping svc “np-test-service”
type or paste code here
CKA mock3 exam Question 5th I followed the solution steps but not able to curl or ping svc “np-test-service”
type or paste code here
Hi @hrshbp
The issue you’re having with ping
is that there are network policies blocking all traffic except tcp/80. ping
uses icmp, not tcp, which is being blocked by the default-deny
policy that’s deployed when the question is set up.
To test that port 80 has been opened by ingress-to-np-test
, you need to use curl
or some other tool to test it.
You found that curl
was unavailable on the busybox
image you selected, so you need to google for an image that does contain curl
.
One such image is wbitt/network-multitool which contains curl
and many other useful tools for testing network stuff…
k run test --image=wbitt/network-multitool -it --rm /bin/sh
If you don't see a command prompt, try pressing enter.
/ # curl http://np-test-service
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
...
Thanks. It working fine now. Thank you!
You’re welcome!
Happy learning.