Skip to content
Snippets Groups Projects
Commit 4323255c authored by Aleksandar Ivanov's avatar Aleksandar Ivanov
Browse files

README.md included Openshift deployment

parent 65a5797b
No related branches found
No related tags found
No related merge requests found
Loading
@@ -43,6 +43,26 @@ To run on Cloud Foundry, use:
Loading
@@ -43,6 +43,26 @@ To run on Cloud Foundry, use:
cf push -f contrib/manifest.yml cf push -f contrib/manifest.yml
``` ```
   
#### Run in Openshift
In order to deploy the exporter in Openshift environment.
```
oc project <myproject>
oc process -f https://raw.githubusercontent.com/ivanovaleksandar/redis_exporter/master/openshift/template.yaml \
-p REDIS_ADDR=<redis-service>:<redis-port> \
-p REDIS_PASSWORD=<redis-pass> \
-p REDIS_ALIAS=<redis-alias> \
-p REDIS_FILE=<redis-file> \
| oc create -f -
```
*NOTE*: Some of the parameters can be ommited if no authentication is used or the default redis config is applied.
```
oc process -f https://raw.githubusercontent.com/ivanovaleksandar/redis_exporter/master/openshift/template.yaml \
-p REDIS_ADDR=<redis-service>:<redis-port> \
| oc create -f -
```
   
### Flags ### Flags
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment