2
0

upgrades.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. =====================================
  2. Upgrades
  3. =====================================
  4. Introduction
  5. ===============
  6. As of 0.10.0, upgrading Netmaker is a manual process. This is expected to be automated in the future, but for now is still a relatively straightforward process.
  7. Critical Notes for 0.10.0
  8. =============================================
  9. At the time of this writing, an upgrade process has not been defined for 0.10.0. DO NOT follow this documentation to upgrade from a prior version to 0.10.0. An upgrade process will be defined shortly. For now, if you seek to upgrade to 0.10.0, you must clear your server entirely (docker-compose down --volumes), uninstall your netclients, and re-install netmaker + netclients.
  10. Upgrade the Server (prior to 0.10.0)
  11. ======================================
  12. To upgrade the server, you only need to change the docker image versions:
  13. 1. `ssh root@my-server-ip`
  14. 2. `docker-compose down`
  15. 3. `vi docker-compose.yml`
  16. 4. Change gravitl/netmaker:<version> and gravitl/netmaker-ui:<version> to the new version.
  17. 5. Save and close the file
  18. 6. `docker-compose up -d`
  19. Upgrade the Clients (prior to 0.10.0)
  20. ======================================
  21. To upgrade the client, you must get the new client binary and place it in /etc/netclient. Depending on the new vs. old version, there may be minor incompatibilities (discussed below).
  22. 1. Vists https://github.com/gravitl/netmaker/releases/
  23. 2. Find the appropriate binary for your machine.
  24. 3. Download. E.x.: `wget https://github.com/gravitl/netmaker/releases/download/vX.X.X/netclient-myversion`
  25. 4. Rename binary to `netclient` and move to folder. E.x.: `mv netclient-myversion /etc/netclient/netclient`
  26. 5. `netclient --version` (confirm it's the correct version)
  27. 6. `netclient pull`
  28. This last step helps ensure any newly added fields are now present. You may run into a "panic" based on missing fields and your version mismatch. In such cases, you can either:
  29. 1. Add the missing field to /etc/netclient/config/netconfig-yournetwork and then run "netclient checkin"
  30. or
  31. 2. Leave and rejoin the network