You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you haven't done so already, now is the time to follow the [installation guide](./kubernetes.md) to install Private Packagist Self-Hosted Kubernetes.
77
77
78
-
## Restore application data in Kubernetes
78
+
## Import the application data in Private Packagist Self-Hosted Kubernetes
79
79
80
-
All commands assume that you are logged in to the server where Private Packagist Self-Hosted Kubernetes is installed,
81
-
your working directory contains the three files generated by the previous steps, and that
82
-
Private Packagist Self-Hosted Kubernetes is installed in the Kubernetes namespace "default".
80
+
All commands assume that you are logged in to the server where Private Packagist Self-Hosted Kubernetes is installed
81
+
and your working directory contains the three files generated by the previous steps.
83
82
84
-
To avoid any data inconsistency, we highly recommend going through the steps below in order and only restart the application
83
+
If you installed Private Packagist Kubernetes in an existing cluster and are not using the default namespace,
84
+
make sure to run the commands in the correct namespace or switch the namespace before running any of the command.
Follow the instructions below to restore the Redis database in the cluster.
122
+
Follow the instructions below to restore the Redis database for Private Packagist Self-Hosted without an existing Kubernetes cluster.
110
123
If you are using your own Redis instance, use the `packagist_redis.rdb` file directly to [restore Redis from an RDB file](https://redis.io/learn/guides/import#restore-an-rdb-file) or follow the instructions of your hosted service provider.
124
+
If you are installing Private Packagist Self-Hosted in an existing cluster and aren't planning on using your own Redis then please contact us.
125
+
126
+
After each scale command, use `kubectl get pods` again to verify that the redis pod is in the correct running state.
111
127
112
-
Follow these steps if you are using Private Packagist Self-Hosted with an embeded Kubernetes cluster
113
128
```
114
-
export PV_NAME=$(kubectl get pvc -n default redis-data-redis-0 -ojsonpath='{.spec.volumeName}')
129
+
export PV_NAME=$(kubectl get pvc redis-data-redis-0 -ojsonpath='{.spec.volumeName}')
0 commit comments