Skip to content

Instantly share code, notes, and snippets.

@portante
Created August 2, 2017 01:11
Show Gist options
  • Save portante/df34626a7f2a4f473e683e3860a50d92 to your computer and use it in GitHub Desktop.
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
#!/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