Hi,
I'm confused when to use 'as-deployment-config' while running oc new-app. Can anyone please help?
Thanks.
Since OpenShift 3.0, many years ago, the oc new-app command creates DeploymentConfig resources which are an OpenShift-only API extension to Kubernetes. At that time, Kubernetes didn't had its workloads API -- there were no Deployments, Jobs, CronJobs, StatefulSets, nor DaemonSets. There where only Pods and ReplicationControllers.
Since them Kubernets evolved, with lots of contributions from Red Hat, but sometimes an open source community doesn't take contributions unchanged. So a while ago Kubernetes got the Deployment resource that is similar but different than DeploymentConfig.
Red Hat is NOT about creating forks nor "open core" but about hardening, integrating, and supporting open source software, and because of that OpenShift 4.5 switched to use Deployment resources by default. The --as-deployment-config switch just reverts to the old behavior.
Hi
May be this documentation article fhelp you understend the difference:
Since OpenShift 3.0, many years ago, the oc new-app command creates DeploymentConfig resources which are an OpenShift-only API extension to Kubernetes. At that time, Kubernetes didn't had its workloads API -- there were no Deployments, Jobs, CronJobs, StatefulSets, nor DaemonSets. There where only Pods and ReplicationControllers.
Since them Kubernets evolved, with lots of contributions from Red Hat, but sometimes an open source community doesn't take contributions unchanged. So a while ago Kubernetes got the Deployment resource that is similar but different than DeploymentConfig.
Red Hat is NOT about creating forks nor "open core" but about hardening, integrating, and supporting open source software, and because of that OpenShift 4.5 switched to use Deployment resources by default. The --as-deployment-config switch just reverts to the old behavior.
Thanks for the explanation. Now it makes sense.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.