-
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
-
Update
spec.strategy.type
fromRolling
toRollingUpdate
-
Remove
spec.test
entirely
thanks! just one thing is missing (tested on K8s 1.20) :
spec.strategy.rollingParams
need to be renamed tospec.strategy.rollingUpdate