2V0-71.23 Question 28
Select 3You are tasked with deploying a stateless application on a Kubernetes cluster using VMware Tanzu. The application requires high availability and must handle rolling updates with zero downtime. Which Kubernetes resource objects should you use to define and manage the application’s deployment lifecycle effectively?
- A
Deployment
- B
StatefulSet
- C
ReplicaSet
- D
Service
- E
ConfigMap
Show answer and explanation
Correct answers: A, C, D
Explanation
To effectively manage the lifecycle of a stateless application in Kubernetes, you need a Deployment object for rolling updates and version control, a ReplicaSet to ensure high availability by maintaining the desired pod replicas, and a Service to expose the application and enable load balancing. StatefulSet and ConfigMap are not directly relevant to this use case.
- A. Correct.
Deployment is essential for managing stateless applications, as it provides rolling update capabilities, version control, and automated scaling.
- B. Incorrect.
StatefulSet is used for stateful applications that require stable network identities or persistent storage. It is not suitable for this stateless application scenario.
- C. Correct.
ReplicaSet ensures the desired number of pod replicas are running at all times, which is critical for high availability.
- D. Correct.
Service allows you to expose the application to external or internal traffic and provides load balancing, which is necessary for high availability and seamless updates.
- E. Incorrect.
ConfigMap is used to manage configuration data for applications but is not directly involved in managing the application’s deployment lifecycle.