πŸš€ DevOps & SRE Certification Program πŸ“… Starting: 1st of Every Month 🀝 +91 8409492687 πŸ” Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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.


Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x