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
Copy file name to clipboardExpand all lines: docs/deployment/edge.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,13 +64,9 @@ chmod +x install-edge.sh
64
64
sudo -E ./install-edge.sh
65
65
```
66
66
67
-
*For an offline installation*
67
+
!!! Note "Offline installation"
68
68
69
-
Copy the OCI bundle and the install-edge.sh script to the remote server.
70
-
71
-
Then mirror the various images from docker-compose.yaml into your private registry, and update the references from i.e. `image: ghcr.io/openfaasltd/gateway` to the equivalents in your registry.
72
-
73
-
If your system is unable to install apt, yum, or pacman packages, due to limited network access, then set the `SKIP_OS` environment to 1. The list of packages is available in the `install_required_packages` section of the script.
69
+
For an offline installation see: [Air-gapped OpenFaaS Edge](/edge/airgap/)
If you do not have a docker-compose.yaml file, you can install OpenFaaS Edge on a Linux host and then extract it from `/var/lib/faasd/docker-compose.yaml`.
26
+
If you do not have a `docker-compose.yaml` file, you can export the installation bundle locally to get it.
The docker-compose.yaml file can be found at `./faasd-pro/var/lib/faasd/docker-compose.yaml`
27
33
28
34
### Download your functions
29
35
@@ -48,6 +54,8 @@ When running OpenFaaS Edge in an air-gap, you can restore the images to either a
48
54
49
55
The easiest way to test an air-gapped installation, is to bypass the need for a local registry, and to restore the images directly to the containerd library.
50
56
57
+
OpenFaaS Edge binaries and dependencies need to be installed before you can run the `restore` command. Follow the [air-gapped installation instructions](#perform-the-installation) and restore the images right before running `faasd install`.
58
+
51
59
Restore the OpenFaaS Edge images:
52
60
53
61
```bash
@@ -87,6 +95,12 @@ Further examples are available via the `--help` flag.
87
95
88
96
If you're using an Operating System such as Ubuntu, you can export the installation bundle and copy it to the air-gapped machine, then perform the installation as normal.
89
97
98
+
Ensure required packages are installed on the air-gapped system:
Then run the install-edge.sh script on the remote server:
119
+
After the installation script completes add you OpenFaaS Edge license:
108
120
109
-
```bash
110
-
chmod +x install-edge.sh
111
-
sudo -E ./install-edge.sh
121
+
```sh
122
+
sudo mkdir -p /var/lib/faasd/secrets
123
+
sudo nano /var/lib/faasd/secrets/openfaas_license
124
+
```
125
+
126
+
Perform the final installation step:
127
+
128
+
```sh
129
+
sudo -E sh -c "cd ./faasd-pro/var/lib/faasd && faasd install"
130
+
```
131
+
132
+
By default OpenFaaS uses Google's public DNS servers you need to specify custom DNS servers during the installation phase by setting the `--dns-server` flag:
133
+
134
+
```sh
135
+
sudo faasd install --dns-server 127.0.0.53
112
136
```
113
137
138
+
Make sure to also add `--pull-policy=IfNotPresent` when images were restored directly to the containerd library. This is not required when using a local image registry.
139
+
114
140
### RHEL-like systems
115
141
116
142
For Operating Systems such as Oracle Linux, Alma Linux, and Rocky Linux you can use our official rpm package to install OpenFaaS Edge.
@@ -121,13 +147,38 @@ Download it on a machine with Internet access, transfer it to the air-gapped mac
Before installing OpenFaaS Edge ensure all other required packages are installed on the air-gapped system:
151
+
152
+
```sh
153
+
sudo dnf install runc iptables-services
154
+
```
155
+
124
156
Then copy all .rpm files to the air-gapped machine, and run:
125
157
126
158
```bash
127
159
dnf install openfaas-edge-*.rpm
128
160
```
129
161
130
-
Follow any additional prompts and instructions.
162
+
After the installation completes add you OpenFaaS Edge license:
163
+
164
+
```sh
165
+
sudo mkdir -p /var/lib/faasd/secrets
166
+
sudo nano /var/lib/faasd/secrets/openfaas_license
167
+
```
168
+
169
+
Perform the final installation step:
170
+
171
+
```sh
172
+
sudo /usr/local/bin/faasd install
173
+
```
174
+
175
+
By default OpenFaaS uses Google's public DNS servers you need to specify custom DNS servers during the installation phase by setting the `--dns-server` flag:
Make sure to also add `--pull-policy=IfNotPresent` when images were restored directly to the containerd library. This is not required when using a local image registry.
131
182
132
183
It is possible to specify a different version of the package by changing the `latest` tag to a specific version, e.g. `v0.2.16`.
0 commit comments