Manage Self Managed Commerce Deployments
Updating the Self Managed Commerce Deployments when changes are made to the Self Managed Commerce Docker image definition
To build new Self Managed Commerce images and deploy them to your Commerce environments, see Update Self-Managed Commerce Images.
Restarting Self Managed Commerce Deployments
-
Confirm the exact name of the Kubernetes namespace where your Self Managed Commerce services are running. This will be the value you specified as the
kubernetesNicknameparameter in thedeploy-or-delete-commerce-stackJenkins job. -
Run the
restart-commerce-stackJenkins job. Make sure to use the correct values for thekubernetesNicknameparameter. Ensure that the correct set of Self Managed Commerce services, with the correct names, is provided for the parametercontainersToRestart.tipAll deployed Self Managed Commerce services can be restarted by specifying
allfor thecontainersToRestartparameter. You can also use thekubectl get deploy -n ${kubernetesNickname}command to get a list of individual Self Managed Commerce services deployed in the namespace represented by${kubernetesNickname}. The below command should return exactly what you need to provide for thecontainersToRestartparameter for the purposes of restarting one or more services.# IMPORTANT: Ensure that the ${kubernetesNickName} variable is setepApps=$(kubectl get deploy -n ${kubernetesNickName} -o json | jq -r '.items[].metadata | select(.labels.app | startswith("ep-")) | select (.labels.app != "ep-activemq") | select (.labels.app != "ep-mysql") | .name')echo "${epApps[@]}" | cut -c4- | rev | cut -c12- | rev
Your Self Managed Commerce deployments will be restarted. Any updated container images will be pulled and used. Any updated secrets will be consumed.