You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are behind a web proxy, it is recommended that you set the following variables in the /etc/environment file. This is so sudo will pick up these variables during the install.
If you do not wish to alter you environment file, the install script will prompt you for your proxy settings.
64
+
27
65
### Run Helper
28
66
29
67
The repository contains a helper script to automate most of the remaining tasks.
30
68
31
69
```
32
-
su - scot4
33
-
cd scot4
34
-
./install.sh
70
+
$ sudo su - scot4
71
+
$ cd scot4
72
+
$ sudo ./install.sh
35
73
```
36
74
37
75
### install.sh options
@@ -47,12 +85,13 @@ Here are the options supported:
47
85
database. You do not have to set this if you are using the
48
86
default provided mysql database container.
49
87
-e SURGE set the surge limit for the API server. (Kubernetes)
50
-
-g pause script after displaying values of the script variables
51
88
-h VERSION set the version of Helm to download and install. defaults to
52
-
version 3.14.3
89
+
version 3.19.0
53
90
-i IPADDR set the IP address that the API server will listen to. Defaults to
54
91
the first result of "ip -4 -o addr show scope global"
55
92
-k TLS_KEY_FILE the fully qualified filename for your TLS KEY File
93
+
-m TRAEFIKVERSION set the version of Traefik to download and install. defaults to
94
+
version 3.3.6
56
95
-n NO_PROXY the values to use for your NO_PROXY environment
57
96
-P HTTPS_PROXY the value to use for HTTPS_PROXY
58
97
-p HTTP_PROXY the value to use for HTTP_PROXY
@@ -81,7 +120,7 @@ Here are the options supported:
81
120
Once the install program has completed, it will take a few minutes for the containers to download and spin up. You can monitor progress with the following command:
82
121
83
122
```
84
-
watch kubectl -n scot4 get pods
123
+
$ watch kubectl -n scot4 get pods
85
124
```
86
125
87
126
You will see the pods go through various init stages. When the display looks like:
you can then end the watch program (ctrl-c) and begin to use SCOT.
104
143
105
-
### Should there be an Error
144
+
### Should there be an installer error
145
+
146
+
We have seen on rare occasions that the install of k3s can experience a problem. When this occurs, you will most likely see this in the "testing k3s readiness" section of the installer. Try the following steps:
147
+
148
+
```
149
+
$ sudo /usr/local/bin/k3s-uninstall.sh
150
+
$ sudo rm -rf /etc/rancher/node
151
+
$ sudo ./install.sh
152
+
```
153
+
154
+
### Should there be a Pod Error
106
155
107
156
If a pod is displaying a backoff error condition, you can get more details about what is causing the problem by using the command:
108
157
109
158
```
110
-
kubectl -n scot4 describe pod <pod-name-here>
159
+
$ kubectl -n scot4 describe pod <pod-name-here>
111
160
```
112
161
113
162
The most likely error would be some kind of failure to pull the container from the repository. Make sure you are not having a network issue and retry the install once network issue has been resolved.
For deploying SCOT for testing purposes, you can use self signed certificates. If you are planning on using SCOT in production, you will need a valid certificate for the URL that you are planning on serving SCOT from.
Note: ensure that when prompted for the Common Name while generating the KEYFILE, that you enter the hostname for the server you are installing SCOT on.
35
+
36
+
### Disable Swap (as root)
37
+
38
+
Disabling swap is recommended for k3s.
39
+
40
+
```
41
+
swapoff -a
42
+
sed -i '/ swap / s/^/#/' /etc/fstab
43
+
```
44
+
45
+
### SELinux
46
+
47
+
If you are running SELinux, which is default on RHEL like systems, you will need to put it into permissive mode. This can be accomplished by entering `setenforce 0`.
19
48
20
49
### Install K3s (as root)
21
50
22
51
K3s is the Kubernetes implementation we use. Here's how to install it.
23
52
53
+
Non-SELinux:
24
54
```
25
55
curl -sfLl https://get.k3s.io | INSTALL_K3S_EXEC="--prefer-bundled-bin --disable-cloud-controller" sh -
26
56
```
57
+
SELinux:
58
+
```
59
+
curl -sfLl https://get.k3s.io | INSTALL_K3S_EXEC="--prefer-bundled-bin --disable-cloud-controller --selinux" sh -
60
+
```
27
61
Go to [k3s](https://docs.k3s.io/installation) for detailed installation instructions.
28
62
29
63
Using a different implementation of Kubernetes is an exercise left to the reader.
@@ -33,7 +67,7 @@ Using a different implementation of Kubernetes is an exercise left to the reader
33
67
The installer downloads a specific version of Helm. This is mainly because they don't have a *latest* alias on their downloads. The Helper then extracts the tar file and installs the helm executable into the /usr/local/bin directory.
# NOTE: Migration process is being revamped. The process below is currently not working. Please contact the team if you need to migrate data from a SCOT3 instance.
8
+
7
9
If you are upgrading from SCOT 3 and wish to bring forward your data to SCOT 4, these are the steps to take.
Copy file name to clipboardExpand all lines: content/install/requirements.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,23 @@ Assuming that you select to use an external database, and either an external obj
23
23
| 8 to 32 | 8 | 32 GB |
24
24
| 32+ | 16 | 64 GB |
25
25
26
+
### Disk Partitioning
27
+
If you partition your disk space, it is important to allocate a large /var partition because that is where all persistent storage will reside.
28
+
29
+
There are several factors that will impact how much disk space you will need. Primarily, disk usage is driven by the amount of data being input into SCOT. Also, configuring SCOT to use an external database server will greatly reduce your long term storage needs. Likewise, if you use S3 to store uploaded files, storage needs can be reduced.
30
+
31
+
In the table below, we characterize the minimum space needed based on usage patterns and assuming that you will collocate you database and file storage on this system. When in doubt, give /var as much space as you can afford.
32
+
33
+
| Usage | GB of Disk | Notes |
34
+
| Proof of Concept | 128 | Little automated input of data, few users |
35
+
| Light Activity | 256 | Automated feeds of 10 to 100 items a day, User input of 0 - 100 items a day |
36
+
| Medium Activity | 512 | Automated feeds of 100-500 items a day, User input of 100 - 300 items a day |
37
+
| Heavy Activity | 1TB | Automated feeds of 500+ items a day, User input 300+ items a day |
38
+
39
+
In the table above, automated items refer to Alertgroup and Dispatch items created and any other automated input of data you might do via API. User input is primary the creation of Entries.
40
+
41
+
Keep in mind, that your usage patterns may allow you to use less or require more space. If at possible, configure you system so that you may adjust the /var partition to meet your needs as they change with your usage. When planning also consider that SCOT does not do any data reduction, so usage will grow over time. In other words, data you input into SCOT will stay there unless you manually delete it.
42
+
26
43
## Kubernetes
27
44
28
45
We use [k3s](https://k3s.io) as our Kubernetes orchestrater, and [Helm](https://helm.sh) to define and manage the application.
0 commit comments