はじめに
OpenShiftの研修を受講。 KubernetesのDeploymentとOpenShiftのDeploymentConfigの違いがよく分からなかったので、調べてみた。
結論
自分でまとめるまでもなく、以下のブログによくまとまっていた。
DeploymentConfigはOpenShift固有のものだが、後にKubernetesがほぼ同等のDeploymentを導入したので、現在ではOpenShiftでもDeploymentが推奨とのこと。
OpenShift 4.5以降ではデフォルトでDeploymentが利用されるようになっている模様。
OpenShift 4.5以降でDeploymentConfigを利用する場合は、例えばコマンドoc new-app
の実行の際にオプション--as-deployment-config
を付与するなど、明示的な指定が必要そう。
参考
OpenShift Container Platform 4.5 > Applications > Deployments > Understanding Deployments and DeploymentConfigs
OpenShift Container Platform > 4.5 > アプリケーション > 第3章 デプロイメント > 3.1. Deployment および DeploymentConfig オブジェクトについて
What is the different between openshift deploymentconfig and kubernetes deployment
- https://stackoverflow.com/questions/49916103/what-is-the-different-between-openshift-deploymentconfig-and-kubernetes-deployme
- 現AWSの中の人で、元RedHatの中の人の、Michael Hausenblasさんが経緯を回答している