CKAD Services and Networking • Set 8
CKAD Services and Networking Practice Test 8 — 15 questions with explanations. Free, no signup.
A developer runs 'kubectl run nginx --image=nginx --port=80' and then creates a Service with the following YAML:
apiVersion: v1 kind: Service metadata: name: nginx-svc spec: selector: app: nginx ports: - protocol: TCP port: 80 targetPort: 80
However, the Service has no endpoints. What is the most likely cause?