Skip to content

Commit 3c8b338

Browse files
committed
Page on enabling dashboard for edge
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent c3a445e commit 3c8b338

File tree

4 files changed

+61
-4
lines changed

4 files changed

+61
-4
lines changed

docker-compose.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.8'
2+
services:
3+
mkdocs:
4+
image: squidfunk/mkdocs-material:latest
5+
ports:
6+
- "8000:8000"
7+
volumes:
8+
- .:/docs
9+
restart: unless-stopped

docs/edge/dashboard.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Dashboard for OpenFaaS Edge
2+
3+
The [OpenFaaS Pro Dashboard](/openfaas-pro/dashboard) is compatible with OpenFaaS Edge.
4+
5+
!!! note "Optional add-on"
6+
7+
The dashboard is included with OpenFaaS for Kubernetes, but is an optional add-on for Edge and requires an additional tier or purchase.
8+
9+
## Enable the service
10+
11+
The service comes pre-packaged within the default installation, but is disabled by default.
12+
13+
Edit `/var/lib/faasd/docker-compose.yaml`:
14+
15+
```diff
16+
services:
17+
dashboard:
18+
- deploy:
19+
- replicas: 0
20+
```
21+
22+
Then create a JWT signing key:
23+
24+
```bash
25+
# Generate a private key
26+
openssl ecparam -genkey -name prime256v1 -noout -out jwt_key
27+
28+
# Then create a public key from the private key
29+
openssl ec -in jwt_key -pubout -out jwt_key.pub
30+
```
31+
32+
Move the keys to `/var/lib/faasd/secrets/`:
33+
34+
```bash
35+
sudo mv ./jwt_key /var/lib/faasd/secrets/key
36+
sudo mv ./jwt_key.pub /var/lib/faasd/secrets/key.pub
37+
```
38+
39+
Then restart faasd:
40+
41+
```bash
42+
sudo systemctl daemon-reload
43+
sudo systemctl restart faasd
44+
```
45+
46+
You can then access the dashboard from port 8083 on loopback on the host, or [add a TLS entry](/edge/tls) to access it from the Internet.
47+

docs/edge/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OpenFaaS Edge Overview
22

3-
OpenFaaS Edge is a commercial distribution of both [OpenFaaS Standard](/docs/openfaas-pro/) and [faasd](https://github.com/openfaas/faasd) designed for redistribution of bespoke solutions to end customers.
3+
[OpenFaaS Edge](/deployment/edge) is a commercial distribution of both [OpenFaaS Standard](/docs/openfaas-pro/) and [faasd](https://github.com/openfaas/faasd) designed for redistribution of bespoke solutions to end customers.
44

55
The handbook and reference documentation for OpenFaaS Edge are available in the [Serverless for Everyone Else eBook](https://store.openfaas.com/l/serverless-for-everyone-else?layout=profile). As a customer, you will receive a 100% discount code for the eBook.
66

mkdocs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,13 @@ nav:
174174
- Grafana dashboards: ./openfaas-pro/grafana-dashboards.md
175175
- OpenFaaS Edge:
176176
- Overview: ./edge/overview.md
177-
- Services: ./edge/services.md
178-
- TLS: ./edge/tls.md
177+
- Manage services: ./edge/services.md
178+
- Configure TLS: ./edge/tls.md
179+
- Enable the dashboard: ./edge/dashboard.md
179180
- Custom DNS: ./edge/custom-dns.md
180181
- Scale to Zero: ./edge/scale-to-zero.md
181182
- Kafka connector: ./edge/kafka-deployment.md
182-
- GPU for Services: ./edge/gpus.md
183+
- GPU for services: ./edge/gpus.md
183184
- Reference:
184185
- OpenFaaS YAML: ./reference/yaml.md
185186
- REST API: ./reference/rest-api.md

0 commit comments

Comments
 (0)