Skip to content

Instantly share code, notes, and snippets.

@johanek
Last active February 11, 2021 11:16
Show Gist options
  • Save johanek/c368a0a0ba72edc0409cb96ad1ba0673 to your computer and use it in GitHub Desktop.
Save johanek/c368a0a0ba72edc0409cb96ad1ba0673 to your computer and use it in GitHub Desktop.
Openshift Elasticsearch

Test Openshift Elasticsearch from Fluentd

oc project openshift-logging
oc rsh fluentd-xxxxx
curl -tls1.2 -s -k -vvv --cert /var/run/ocp-collector/secrets/fluentd/tls.crt --key /var/run/ocp-collector/secrets/fluentd/tls.key https://elasticsearch.openshift-logging.svc.cluster.local:9200

Test Openshift Elasticsearch from Elasticsearch

oc exec -n openshift-logging elasticsearch-cdm-xv88c21d-1-787549f9d4-vfbkp -- curl -tls1.2 -s -k --cert /etc/elasticsearch/secret/admin-cert   --key /etc/elasticsearch/secret/admin-key http://localhost:9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment