Migrating to Kubernetes
Migration from Docker compose based deployment will have following 3 steps:
-
Data Migration: This step migrates data from source Hyperscale to destination Hyperscale:
-
Start Hyperscale by following the instructions provided in Kubernetes
-
Keep the docker-compose deployed Hyperscale running (source Hyperscale)
-
Download migration script from here, and following steps in readme file to migrate data from source to destination Hyperscale.
-
Certificate Migration: This step is only required if custom certificates are used in docker-compose deployment.
-
Copy the SSL certificates Docker volume folder data on a local machine.
-
mkdir container_data
cd container_data/
mkdir proxy
#from container_data directory run following
docker cp <proxy-container-name>:/etc/config/nginx/ssl ./container_data/proxy
chmod 770 -R .
-
Go to container_data/proxy/ssl folder and get the base64 value of nginx.crt, nginx.key, and dhparam.pem. For example:
cat nginx.crt | base64 | awk '{print}' ORS='' | awk '{print}'
-
Now update the base64 value (obtained in previous step) of each value in values.yaml file.
-
Configuration property migration: You may need to manually move custom configuration done in docker-compose.yaml to values.yaml (or values-<connectorType>.yaml). In case you do not find a property in values.yaml (or values-<connectorType>.yaml), but you have custom value defined in docker-compose, you can follow the steps in Modify existing configuration for a service