0337.html 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running Rancher Kubernetes Cluster Management on Ubuntu Server</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,Cluster,Command Line,Containerization,Docker,Install Kubernetes On Ubuntu,Kubernetes,Kubernetes Installation,Kubernetes Tutorial,Orchestration,SSH,Ubuntu,Ubuntu Server,CLI,Rancher,Rancher Kubernetes Management,Rancher Installation,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running Rancher Kubernetes Cluster Management on Ubuntu Server">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="05/31/2023 08:52:35 AM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Running Rancher Kubernetes Cluster Management on Ubuntu Server</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>Installing Docker and Running Rancher</h2>
  26. <ol>
  27. <li>Log into the Ubuntu server</li>
  28. <li>Run the following commands
  29. <div class="codeBlock"># install docker<br />
  30. curl https://releases.rancher.com/install-docker/19.03.sh | sh<br />
  31. # add the current user to the docker group<br />
  32. sudo usermod -aG docker $USER<br />
  33. # reauthenticate for the new group membership to take effect<br />
  34. su - $USER<br />
  35. # verify docker is installed and working<br />
  36. docker version<br />
  37. # run rancher container<br />
  38. docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /opt/rancher:/var/lib/rancher --privileged rancher/rancher:latest</div>
  39. </li>
  40. <li>Open a web browser and navigate to the https://DNSorIP</li>
  41. <li>Accept the certificate warning</li>
  42. <li>When Rancher loads, enter an admin password and re-type to confirm</li>
  43. <li>Select the I&#39;m only going to use the cluster Rancher was installed on option</li>
  44. <li>Click Continue</li>
  45. <li>Welcome to Rancher</li>
  46. <li>Congratulations, you now have a web based UI to deploy and manage docker containers</li>
  47. </ol>
  48. <p>https://rancher.com/docs/rancher/v2.x/en/best-practices/v2.5/rancher-server/deployment-types/</p> </div>
  49. </div>
  50. </body>
  51. </html>