-
Change
apiVersionfrom:- apiVersion: v1
(or
apiVersion: apps.openshift.io/v1)to:
- apiVersion: apps/v1
-
Change
kindfrom:kind: DeploymentConfig
to:
kind: Deployment
-
Change
spec.selectorsfrom:selector: name: ...
to:
selector: matchLabels: name: ...
-
Make sure
spec.template.spec.containers.imageis set, e.g.image: registry.access.redhat.com/rhscl/postgresql-${POSTGRESQL_VERSION}-rhel7 imagePullPolicy: Always -
Remove
spec.triggerssection entirely
Forked from bmaupin/convert-deploymentconfig-to-deployment.md
Created
November 29, 2023 08:24
-
-
Save hemanth22/5e76dcf44d0916ba7ef57433f8ff4d9a to your computer and use it in GitHub Desktop.
Convert OpenShift DeploymentConfig to Kubernetes Deployment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment