Created
August 2, 2017 01:11
-
-
Save portante/df34626a7f2a4f473e683e3860a50d92 to your computer and use it in GitHub Desktop.
Check that a fluentd pod can access Elasticsearch in an OpenShift 3.4 and later deployment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
_BASE=/etc/fluent/keys | |
_CA=$_BASE/ca | |
_CERT=$_BASE/cert | |
_KEY=$_BASE/key | |
ls -l $_CA $_CERT $_KEY | |
ES_URL='https://logging-es:9200' | |
curl_get="curl -X GET --cacert $_CA --cert $_CERT --key $_KEY" | |
$curl_get $ES_URL/?pretty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment