Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You've set up a Kubernetes deployment named Deployment-A with 3 replicas in your cluster. Deployment-B requires access to Deployment-A, but Deployment-A must not be exposed outside the cluster. What's the best approach?
A
Establish a Service of type NodePort for Deployment A and an Ingress Resource for that Service. Deployment B should then use the Ingress IP address.
B
Set up a Service of type LoadBalancer for Deployment A. Deployment B should use the Service IP address.
C
Create a Service of type LoadBalancer for Deployment A and an Ingress Resource for that Service. Deployment B should use the Ingress IP address.
D
Create a Service of type ClusterIP for Deployment A. Deployment B should use the Service IP address.