Enterprise images are required for running an Authoring cluster with embedded DB
cd nodes
- Run
kubectl apply -k .
cd ../arbiter
- Run
kubectl apply -k .
IMPORTANT: These steps are mainly for making minor configuration updates. If you need to upgrade the Crafter CMS images to a new version, please follow the Upgrade to a new version of Crafter CMS section
cd nodes
- Run
kubectl apply -k
. The containers are not automatically terminated. - Terminate one container so that a new container with the updated deployment changes is created.
- Terminate the second container after the first one is ready. A new container is going to be created.
cd arbiter
- Run
kubectl delete -k .
. Make sure the container has been completely terminated cd ../nodes
- Run
kubectl delete -k . --cascade=false
- Terminate one of the containers
- Make sure the first container has been completely terminated, then terminate the second one
- Scale the Arbiter Deployment to 0, by updating the
spec.replicas
in thearbiter/arbiter-deployment.yaml
and runninkubectl apply -k .
. Make sure thearbiter
pod is terminated. - Scale the Authoring StatefulSet to 1, by updating the
spec.replicas
in thenodes/authoring-deployment.yaml
, making sure theMARIADB_CLUSTER_NODE_COUNT
env variable is set to 1, and runningkubectl apply -k .
. Verify theauthoring-1
(second pod) is terminated. If not, kill it. Onlyauthoring-0
should be running now. - Change the image tags to the new Crafter CMS version in the YAML files.
- Upgrade
nodes/resources/config/studio
configuration files to their new versions. cd nodes
and runkubectl apply -k .
(make surespec.replicas
andMARIADB_CLUSTER_NODE_COUNT
are still 1, it's important thatauthoring-1
is NOT started since it's our backup in case the upgrade goes wrong). If theauthoring-0
pod is not automatically terminated, terminate it.authoring-0
should be restarted.- Watch the log of
authoring_tomcat
container of theauthoring-0
pod for upgrade manager errors. - If the upgrade manager fails:
- Save the
/opt/crafter/data
, the/opt/crafter/logs
and the container log of theauthoring_tomcat
container. You can use these later for troubleshooting. - Scale the Authoring StatefulSet to 0. No Authoring pod should be running.
- Delete the
data-authoring-0
pvc (Persistent Volume Claim).authoring-0
will start with no data. - Scale the Authoring StatefulSet to 2.
authoring-1
will bootstrap the cluster with the data previous to the upgrade andauthoring-0
will replicate it.
- Save the
- If the upgrade manager finished successfully, you can now scale the Authoring StatefulSet back to 2 so
authoring-1
replicates the upgrade. - Scale the Arbiter Deployment back to 1.