Skip to content

Commit

Permalink
add comment about host network
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 committed Jan 23, 2019
1 parent 5722219 commit 2e64b0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ in an image that has a shell, etc then you can run the `alpine` image:
$ docker run -d --name redis_exporter -p 9121:9121 oliver006/redis_exporter:alpine
```

If you try to access a redis instance running on the host node, you'll need to add `--network host` so the
redis_exporter container can access it:

```sh
$ docker run -d --name redis_exporter --network host oliver006/redis_exporter
```

### Run on Kubernetes

[Here](contrib/k8s-redis-and-exporter-deployment.yaml) is an example Kubernetes deployment configuration for how to deploy the redis_exporter as a sidecar with a Redis instance.
Expand Down

0 comments on commit 2e64b0f

Please sign in to comment.