Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Openshift: Difference Between DeploymentConfig and Deployment

FeatureDeploymentConfig (DC)Deployment (K8s Deployment)
Belongs toOpenShift-only (legacy)Kubernetes-native (standard)
API Groupapps.openshift.io/v1apps/v1
First IntroducedOpenShift 3.xKubernetes 1.x
PurposeDeploy/manage pods with extra OpenShift features like automatic image rebuilds.Deploy/manage pods in a standard Kubernetes way.
Triggers (auto-update)Supports ImageChangeTrigger, ConfigChangeTrigger easily.No built-in ImageTrigger (needs webhooks, GitOps, Tekton).
Build IntegrationTight integration with OpenShift BuildConfig (S2I) + ImageStreams.No native build integration โ€” CI/CD pipelines needed separately.
Rollback & RolloutManaged by OpenShift internally (easy CLI commands).Kubernetes-native rollback/rollout (kubectl rollout).
Strategy OptionsRolling, Recreate, Custom, and Hooks (pre/post hooks).RollingUpdate, Recreate (no custom hooks by default).
UI SupportFully available in OpenShift 3.x/4.x console until 4.13.Now the recommended method in OpenShift 4.14+.
Lifecycle๐Ÿ”ฅ Deprecated for feature development (4.14 onward).๐Ÿš€ Active, recommended standard.
PortabilityโŒ Works only on OpenShift.โœ… Works on any Kubernetes (EKS, AKS, GKE, OpenShift, etc.).

๐Ÿ›  Example Differences

โœ… 1. DeploymentConfig Example (Old way)

apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  name: myapp
spec:
  replicas: 2
  selector:
    app: myapp
  triggers:
    - type: ConfigChange
    - type: ImageChange
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: myapp
        image: myapp:latest
  • ImageChangeTrigger automatically pulls new images!
  • Used with BuildConfigs and ImageStreams.

โœ… 2. Deployment Example (Modern way)

apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  replicas: 2
  selector:
    matchLabels:
      app: myapp
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: myapp
    spec:
      containers:
      - name: myapp
        image: myapp:latest
  • Pure Kubernetes Deployment.
  • No automatic ImageStream trigger โ€” you must manually update, use GitOps, webhook, or Tekton.

๐Ÿ”ฅ Key Functional Differences

AspectDeploymentConfigDeployment
Auto image update from ImageStreamโœ… Built-in (ImageChangeTrigger)โŒ Must build manually (e.g., webhook triggers)
Build integration (BuildConfig)โœ… Tight couplingโŒ No coupling; CI/CD external
OpenShift-onlyโœ…โŒ
Kubernetes standardโŒโœ…
Future use (post-OpenShift 4.14)โŒ Legacyโœ… Standard

๐ŸŽฏ In Short

If you are using…Then…
OpenShift 3.x or old 4.x appsYou might still find/use DeploymentConfigs.
OpenShift 4.14+ and new appsโœ… Use Kubernetes-native Deployments only.

๐Ÿ“‹ Quick Real World Examples:

Use caseBest choice now
Building a new microservice appDeployment
Moving an app across clusters (OpenShift โ†’ EKS โ†’ AKS)Deployment
Legacy OpenShift S2I project with ImageStream auto-rebuildsDeploymentConfig (until migrated)

๐Ÿ“ข Final Message:

  • DeploymentConfig = OpenShift-specific, powerful in OpenShift pipelines, but deprecated for new feature development in 4.14+.
  • Deployment = Kubernetes standard object, recommended for all new apps moving forward.

๐ŸŒŸ Bonus Tip:

โœ… You can still use ImageStreams + Deployment together โ€”
but instead of using “ImageChangeTriggers,”
you need to use external CI/CD pipelines (like Jenkins, Tekton, GitHub Actions) to update the Deployment automatically.


๐ŸŽฏ Quick One-Liner:

DeploymentConfig = OpenShift magic for older CI/CD,
Deployment = Kubernetes standard for modern apps.


Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Best DevOps Tools in 2024

hereโ€™s a clear, structured breakdown of the Best DevOps Tools (grouped by categories), so you can use it for learning, training, or posts. ๐Ÿš€ Best DevOps Tools…

Read More

OpenShift Tutorial โ€“ Deploy and Access Your First Applications using OpenShift Local

How to install oc? OpenShift: How to Install OpenShift CLI oc How to login? Login to the Openshift using Web Console and CLI using oc Copy the admin…

Read More

OpenShift Lab 14: Setting Up and Using OpenShift Serverless Functions on OpenShift Local

Lab Objective In this lab, you will install and use OpenShift Serverless Functions on OpenShift Local. You will create a simple Node.js serverless function, deploy it to…

Read More

OpenShift Lab 13: Deploy a Java Spring Boot Application with MySQL Using the OpenShift Web Console

Lab Objective In this lab, you will deploy a Java Spring Boot application on OpenShift using the OpenShift web console. You will deploy two components: The Java…

Read More

OpenShift Lab 12: Deploy an Application from an Existing Container Image Using the OpenShift Web Console

Lab Objective In this lab, you will deploy an application on OpenShift from an existing container image. This lab is different from building an application from source…

Read More

OpenShift: How to Install OpenShift CLIย oc

Option – 1 – REDHAT Websites URL – https://access.redhat.com/downloads/content/290/ver=4.18/rhel—9/4.18.11/x86_64/product-software Option – 2 – OKD Websites The OKD (Origin Community Distribution of Kubernetes for OpenShift) is the open-source…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x