-
Change
apiVersion
from:- apiVersion: v1
(or
apiVersion: apps.openshift.io/v1
)to:
- apiVersion: apps/v1
-
Change
kind
from:kind: DeploymentConfig
to:
kind: Deployment
-
Change
spec.selectors
from:selector: name: ...
to:
selector: matchLabels: name: ...
-
Make sure
spec.template.spec.containers.image
is set, e.g.image: registry.access.redhat.com/rhscl/postgresql-${POSTGRESQL_VERSION}-rhel7 imagePullPolicy: Always
-
Remove
spec.triggers
section entirely -
Remove fields from
spec.strategy
:activeDeadlineSeconds
resources
rollingParams.intervalSeconds
rollingParams.timeoutSeconds
rollingParams.updatePeriodSeconds
-
spec.strategy.rollingParams
need to be renamed tospec.strategy.rollingUpdate
-
Update
spec.strategy.type
fromRolling
toRollingUpdate
-
Remove
spec.test
entirely
Forked from tillkahlbrock/convert-deploymentconfig-to-deployment.md
Last active
June 12, 2022 05:13
-
-
Save thikade/12fa871edf1507ce67bd23a63cb0a01f 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