[RHOCP 4.x] Find out the logging component version by 'rsh' into the Pod
Environment
- Red Hat OpenShift Container Platform 4.x
Issue
- Find out the logging component version by 'rsh' into the Pod.
Resolution
- To find out the Elasticsearch version:
[q@upi-0 ~]$ oc rsh elasticsearch-cdm-xxxxxx-x-xxxxxx-xxxxx
Defaulted container "elasticsearch" out of: elasticsearch, proxy
sh-4.4$ curl -s --key /etc/elasticsearch/secret/admin-key --cert /etc/elasticsearch/secret/admin-cert --cacert /etc/elasticsearch/secret/admin-ca https://localhost:9200
{
"name" : "elasticsearch-cdm-hf1fm9d3-1",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "Dk9enwGnS8W4mcGkQ2ah4w",
"version" : {
"number" : "6.8.1", <---- version
"build_flavor" : "oss",
"build_type" : "zip",
"build_hash" : "97a1f4c",
"build_date" : "2021-04-14T17:01:06.151131Z",
"build_snapshot" : false,
"lucene_version" : "7.7.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
- To find out the Kibana version:
[q@upi-0 ~]$ oc rsh kibana-xxxxxx-xxxxx
Defaulted container "kibana" out of: kibana, kibana-proxy
sh-4.4$ kibana --version
6.8.1
- To find out the fluentd version:
[q@upi-0 ~]$ oc rsh fluentd-xxxxx
Defaulted container "fluentd" out of: fluentd, logfilesmetricexporter, fluentd-init (init)
sh-4.4# fluentd --version
fluentd 1.7.4
sh-4.4#
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments