|
| 1 | +# Install Workflow |
| 2 | + |
| 3 | +If you have a pure host, it can be a cloud server, bare metal server, virtual machine, or even your laptop. Then this chapter is very suitable for you. |
| 4 | + |
| 5 | +## Operating Systems |
| 6 | + |
| 7 | +Drycc is expected to work on most modern Linux systems. Some OSS have specific requirements: |
| 8 | + |
| 9 | +* (Red Hat/CentOS) Enterprise Linux, they usually use RPM package management. |
| 10 | +* Ubuntu (Desktop/Server/Cloud) Linux, a very popular distribution. |
| 11 | +* Debian GNU Linux, a very pure distribution of opensource software. |
| 12 | + |
| 13 | +If you want to add more Linux distribution support, please submit a issue on github or submit PR directly. |
| 14 | + |
| 15 | +## System Software |
| 16 | + |
| 17 | +Some basic software needs to be installed before installing drycc workflow. |
| 18 | + |
| 19 | +### Installing open-iscsi |
| 20 | + |
| 21 | +The command used to install open-iscsi differs depending on the Linux distribution. |
| 22 | +We recommend using Ubuntu as the guest OS image since it contains open-iscsi already. |
| 23 | +You may need to edit the cluster security group to allow SSH access. |
| 24 | +For SUSE and openSUSE, use this command: |
| 25 | + |
| 26 | +``` |
| 27 | +$ zypper install open-iscsi |
| 28 | +``` |
| 29 | + |
| 30 | +For Debian and Ubuntu, use this command: |
| 31 | + |
| 32 | +``` |
| 33 | +$ apt-get install open-iscsi |
| 34 | +``` |
| 35 | + |
| 36 | +For RHEL, CentOS, and EKS with EKS Kubernetes Worker AMI with AmazonLinux2 image, use this command: |
| 37 | + |
| 38 | +``` |
| 39 | +$ yum install iscsi-initiator-utils |
| 40 | +``` |
| 41 | + |
| 42 | +### Installing NFSv4 client |
| 43 | + |
| 44 | +The command used to install a NFSv4 client differs depending on the Linux distribution. |
| 45 | + |
| 46 | +For Debian and Ubuntu, use this command: |
| 47 | + |
| 48 | +``` |
| 49 | +$ apt-get install nfs-common |
| 50 | +``` |
| 51 | + |
| 52 | +For RHEL, CentOS, and EKS with EKS Kubernetes Worker AMI with AmazonLinux2 image, use this command: |
| 53 | + |
| 54 | +``` |
| 55 | +$ yum install nfs-utils |
| 56 | +``` |
| 57 | + |
| 58 | +### Installing curl and git |
| 59 | + |
| 60 | +For Debian and Ubuntu, use this command: |
| 61 | + |
| 62 | +``` |
| 63 | +$ apt-get install curl git |
| 64 | +``` |
| 65 | + |
| 66 | +For RHEL, CentOS, and EKS with EKS Kubernetes Worker AMI with AmazonLinux2 image, use this command: |
| 67 | + |
| 68 | +``` |
| 69 | +$ yum install curl git |
| 70 | +``` |
| 71 | + |
| 72 | +## Hardware |
| 73 | + |
| 74 | +Hardware requirements scale based on the size of your deployments. Minimum recommendations are outlined here. |
| 75 | + |
| 76 | +* RAM: 1G Minimum (we recommend at least 2GB) |
| 77 | +* CPU: 1 Minimum |
| 78 | + |
| 79 | +This configuration only contains the minimum requirements that can meet the operation. |
| 80 | + |
| 81 | +## Disk |
| 82 | + |
| 83 | +Drycc performance depends on the performance of the database. To ensure optimal speed, we recommend using an SSD when possible. Disk performance will vary on ARM devices utilizing an SD card or eMMC. |
| 84 | + |
| 85 | +## Domain Name |
| 86 | + |
| 87 | +Drycc needs a root domain name under your full control and points this domain name to the server to be installed. |
| 88 | +Suppose there is a wildcard domain pointing to the current server to install drycc, which is the name `*.dryccdoman.com`. |
| 89 | +We need to set the `PLATFORM_DOMAIN` environment variables before installation. |
| 90 | + |
| 91 | +``` |
| 92 | +$ export PLATFORM_DOMAIN=dryccdoman.co |
| 93 | +``` |
| 94 | + |
| 95 | +Of course, if it is a test environment, we can also use `nip.io`, an IP to domain name service. |
| 96 | +For example, your host IP is `59.46.3.190`, we will get the following domain name `59.46.3.190.nip.io` |
| 97 | + |
| 98 | +``` |
| 99 | +$ export PLATFORM_DOMAIN=59.46.3.190.nip.io |
| 100 | +``` |
| 101 | + |
| 102 | +## Install |
| 103 | + |
| 104 | +You can use the installation script available at https://www.drycc.cc/install.sh to install drycc as a service on systemd and openrc based systems. |
| 105 | + |
| 106 | +``` |
| 107 | +$ curl -sfL https://www.drycc.cc/install.sh | bash - |
| 108 | +``` |
| 109 | + |
| 110 | +!!! important |
| 111 | + Users in Chinese mainland can use the following methods to speed up installation: |
| 112 | + |
| 113 | + ``` |
| 114 | + $ curl -sfL https://www.drycc.cc/install.sh | INSTALL_K3S_MIRROR=cn bash - |
| 115 | + ``` |
| 116 | + |
| 117 | +### Install Options |
| 118 | + |
| 119 | +When using this method to install drycc, the following environment variables can be used to configure the installation: |
| 120 | + |
| 121 | +ENVIRONMENT VARIABLE | DESCRIPTION |
| 122 | +--------------------------------|------------------------------------------------------------------------------------------------ |
| 123 | +PLATFORM_DOMAIN | Required item, specify drycc's domain name |
| 124 | +CHANNEL | By default, drycc of the `stable` channel will be installed. You can also specify `testing` |
| 125 | +INSTALL_K3S_MIRROR | Specify the accelerated mirror location. Currently, only `cn` is supported |
| 126 | + |
| 127 | +Since the installation script will install k3s, other environment variables can refer to k3s installation [environment variables](https://rancher.com/docs/k3s/latest/en/installation/install-options/). |
| 128 | + |
| 129 | +## Uninstall |
| 130 | + |
| 131 | +If you installed drycc using an installation script, you can uninstall the entire drycc using this script. |
| 132 | + |
| 133 | +``` |
| 134 | +$ curl -sfL https://www.drycc.cc/uninstall.sh | bash - |
| 135 | +``` |
0 commit comments