33
44## Requirements
55
6- To start the migration process, your Private Packagist Self-Hosted Replicated Native instance needs to run version 1.12.5 or newer.
6+ To start the migration process, your Private Packagist Self-Hosted Replicated Native instance needs to run version 1.12.8 or newer.
77To reduce the disruption to a minimum, we recommend that you set up your Private Packagist Self-Hosted Kubernetes
88instance on a different machine before you start the migration process.
99
@@ -138,7 +138,7 @@ kubectl scale statefulset redis --replicas 1
138138Importing the dist and artifact files requires the UI pods to be back online. Start them with the command below. This will take a few seconds.
139139You can use the second command to verify once 2/2 pods are running.
140140```
141- kubectl scale statefulset ui --replicas 1
141+ kubectl scale deployment ui --replicas 1
142142kubectl get pods -w
143143```
144144
@@ -148,15 +148,15 @@ it can take several minutes for this command to finish.
148148```
149149export UI_POD=$(kubectl get pods --no-headers -o custom-columns=":metadata.name"|grep ui-)
150150kubectl cp packagist_storage.tar.gz $UI_POD:/tmp/packagist_storage.tar.gz -c ui
151- kubectl exec $UI_POD -c ui -- /bin/sh -c "/srv/manager/bin/console packagist:self-hosted:migrate-storage import /tmp/packagist_storage.tar.gz && rm /tmp/packagist_storage.tar.gz "
151+ kubectl exec $UI_POD -c ui -- /bin/sh -c "/srv/manager/bin/console packagist:self-hosted:migrate-storage import /tmp/packagist_storage.tar.gz && rm /tmp/packagist_storage.tar"
152152```
153153
154154### Start the Private Packagist application
155155
156156Once your data has been restored. Start the application:
157157
158158```
159- kubectl scale deployment ui --replicas 1
159+ kubectl scale deployment ui repo worker --replicas 1
160160```
161161
162162This can take a few minutes. You can run the command below to see when all pods are back up and running.
0 commit comments