Skip to content

Instantly share code, notes, and snippets.

@portante
Last active May 10, 2017 13:32
Show Gist options
  • Select an option

  • Save portante/26a2a16d2457efc480abfd8f30596d63 to your computer and use it in GitHub Desktop.

Select an option

Save portante/26a2a16d2457efc480abfd8f30596d63 to your computer and use it in GitHub Desktop.
A simple script to check if Kibana has access from within a kibana pod/container for OpenShift.
#!/bin/bash
_BASE=/etc/kibana/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/_cat/health?v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment