Skip to content

Commit f858c4a

Browse files
committed
Move firetail.yaml from examples/kubernetes into README
1 parent cb76619 commit f858c4a

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,26 @@ URI: /tea
128128
Request ID: 8292a274a2774d7e5257c53dcb8adbe6
129129
```
130130

131-
In this repository you will also find [`examples/kubernetes/firetail.yml`](./examples/kubernetes/firetail.yml). Modify this file to include your own API token from the FireTail platform, and update the Firetail URL to match the region you're using then apply it.
131+
In order for the `nginx-ingest` to load the FireTail module we need to add a `load_module` directive to the main block, and `firetail_api_token` and `firetail_url` directives to the `nginx.conf`. This can be done using a `ConfigMap` like this:
132+
133+
```yaml
134+
kind: ConfigMap
135+
apiVersion: v1
136+
metadata:
137+
name: nginx-config
138+
namespace: nginx-ingress
139+
data:
140+
main-snippets: |
141+
load_module modules/ngx_firetail_module.so;
142+
http-snippets: |
143+
firetail_api_token "YOUR_API_TOKEN_HERE";
144+
firetail_url "https://api.logging.eu-west-1.prod.firetail.app/logs/bulk";
145+
```
146+
147+
Modify this file to include your own API token from the FireTail platform, and update the Firetail URL to match the region you're using. You can then save it and apply it like so:
132148
133149
```bash
134-
kubectl apply -f firetail.yaml
150+
kubectl apply -f my-firetail-config-map.yaml
135151
```
136152

137153
This will update the `nginx.conf` file in the `nginx-ingress` container to load the FireTail module and provide your API token and FireTail URL.

examples/kubernetes/firetail.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)