-
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 -
Remove fields from
spec.strategy:
activeDeadlineSecondsresourcesrollingParams.intervalSecondsrollingParams.timeoutSecondsrollingParams.updatePeriodSeconds
-
Update
spec.strategy.typefromRollingtoRollingUpdate -
Remove
spec.testentirely
thanks! just one thing is missing (tested on K8s 1.20) :
spec.strategy.rollingParamsneed to be renamed tospec.strategy.rollingUpdate