Moving an application to a new cluster

Overview

A customer may find it necessary to move an already deployed EYK application to a new cluster, as would be the case when moving an application that was undergoing acceptance testing to the production cluster.

Solution

Follow these steps to move an application from one cluster to a new cluster:

  1. Working on the old cluster;

    1. Get the environment variables on a .env file:
      eyk config:pull
      This will create a .env file which will include all the environment variables currently in place.
    2. Get a listing of the domains currently in place:
      eyk domains
    3. Get a listing of the certificates in place:
      eyk certs
  2. Working on the new production cluster;

    Use the EYK ssologin command to log in by executing:
    eyk ssologin https://eyk.clustername.accountname.ey.io

    As documented in Getting Started with Engine Yard Kontainers and assuming that you are at the root of your application, follow these steps:

      1. Add your ssh keys on the new cluster:
        eyk keys:add ~/.ssh/id_rsa.pub
        Note: edit to match your path and .pub file name
      2. Get a listing of current remotes:
        git remote -v
      3. Remove the already present eyk remote:
        git remote rm eyk
      4. Create the application:
        eyk apps:create appname
      5. Create the domains:
        eyk domains:add domain.com
      6. Create the certificates:
        eyk certs:add certname cert.crt private.key
      7. Attach the certificate on the domains added earlier:
        eyk certs:attach certname domainame
      8. Update the environment variables:
        eyk config:push
        Which would automatically push the .env variables to your application.
      9. Push the application code:
        git push eyk

Comments

Article is closed for comments.