When would you use a DeploymentConfig versus a Deployment in OpenShift?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

When would you use a DeploymentConfig versus a Deployment in OpenShift?

Explanation:
OpenShift provides two deployment approaches, and the one labeled DeploymentConfig is designed to expose OpenShift-specific features. The key capability here is image-change triggers: the deployment can automatically redeploy when a new image appears in an ImageStreamTag, tying the image updates directly to the rollout within OpenShift. This makes DeploymentConfig particularly useful when you want an automatic, image-driven release process that integrates with OpenShift’s image streams and build pipeline. A Deployment, by contrast, is the standard Kubernetes workload resource. It handles rolling updates in a Kubernetes-native way and is portable across Kubernetes clusters, but it doesn’t include the OpenShift-specific image-change triggers out of the box. If you’re aiming for Kubernetes-native workloads or cross-cluster portability, Deployment is the better fit. SSL certificates and related routing configurations are managed separately from the deployment object, so they don’t drive the choice between these two resources.

OpenShift provides two deployment approaches, and the one labeled DeploymentConfig is designed to expose OpenShift-specific features. The key capability here is image-change triggers: the deployment can automatically redeploy when a new image appears in an ImageStreamTag, tying the image updates directly to the rollout within OpenShift. This makes DeploymentConfig particularly useful when you want an automatic, image-driven release process that integrates with OpenShift’s image streams and build pipeline.

A Deployment, by contrast, is the standard Kubernetes workload resource. It handles rolling updates in a Kubernetes-native way and is portable across Kubernetes clusters, but it doesn’t include the OpenShift-specific image-change triggers out of the box. If you’re aiming for Kubernetes-native workloads or cross-cluster portability, Deployment is the better fit.

SSL certificates and related routing configurations are managed separately from the deployment object, so they don’t drive the choice between these two resources.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy