Skip to content

Commit 828f696

Browse files
authored
Merge pull request #95 from packagist/update-migration-guide
Fix commands in migration guide
2 parents 066cdcd + 50c569b commit 828f696

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/self-hosted/kubernetes-migration-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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.
77
To reduce the disruption to a minimum, we recommend that you set up your Private Packagist Self-Hosted Kubernetes
88
instance on a different machine before you start the migration process.
99

@@ -138,7 +138,7 @@ kubectl scale statefulset redis --replicas 1
138138
Importing 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.
139139
You 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
142142
kubectl get pods -w
143143
```
144144

@@ -148,15 +148,15 @@ it can take several minutes for this command to finish.
148148
```
149149
export UI_POD=$(kubectl get pods --no-headers -o custom-columns=":metadata.name"|grep ui-)
150150
kubectl 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

156156
Once 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

162162
This can take a few minutes. You can run the command below to see when all pods are back up and running.

0 commit comments

Comments
 (0)