Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You're tasked with creating a script to extract the IP address of a Kubernetes Service. A coworker has shared a code snippet they believe could help. Which option would be the most effective starting point for your code?
A
kubectl get svc -o html
B
kubectl get svc
C
kubectl get svc -o filtered-json='{.items[*].status.loadBalancer.ingress[0].ip}'
D
kubectl get svc -o jsonpath='{.items[*].status.loadBalancer.ingress[0].ip}'