Topic 1 Question 194
You are developing an application using different microservices that must remain internal to the cluster. You want the ability to configure each microservice with a specific number of replicas. You also want the ability to address a specific microservice from any other microservice in a uniform way, regardless of the number of replicas the microservice scales to. You plan to implement this solution on Google Kubernetes Engine. What should you do?
Deploy each microservice as a Deployment. Expose the Deployment in the cluster using a Service, and use the Service DNS name to address it from other microservices within the cluster.
Deploy each microservice as a Deployment. Expose the Deployment in the cluster using an Ingress, and use the Ingress IP address to address the Deployment from other microservices within the cluster.
Deploy each microservice as a Pod. Expose the Pod in the cluster using a Service, and use the Service DNS name to address the microservice from other microservices within the cluster.
Deploy each microservice as a Pod. Expose the Pod in the cluster using an Ingress, and use the Ingress IP address to address the Pod from other microservices within the cluster.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: A
A is the answer.
👍 2zellck2022/12/13 - 正解だと思う選択肢: A
A Is correct because the Service will have a DNS entry inside the cluster that other microservices can use to address the pods of the Deployment that the Service is targetting. B Is not correct because an Ingress exposes a Service using an external or internal HTTP(s) load balancer, and it does not apply directly to a Deployment. C is not correct because a Pod is a single instance of the microservice, whereas a Deployment can be configured with a number of replicas. D is not correct because it combines the mistakes of options B and C.
👍 2telp2023/01/13 - 正解だと思う選択肢: A
option A
👍 1sharath252022/12/13
シャッフルモード