kubestellar / galaxy

Additional modules, tools and documentation to facilitate KubeStellar integration with other community projects
Apache License 2.0
0 stars 3 forks source link

:sparkles: Added support to run loki queries against openshift loki installation :sparkles: #11

Closed seepgoel closed 5 months ago

seepgoel commented 5 months ago

Summary

The existing Loki query script works on the Kind deployment which uses dev version of Loki. However, Loki production deployment on openshift needed some changes to the script to work, such as:

  1. Openshift version needs TLS cert and key.
  2. Some of the labels such as pod, nodename etc, are different in openshift. For pod we have kubernetes_pod_name, for container we have kubernetes_container_name.
  3. Openshift Loki version uses X-Scope-OrgID header to be set to either application, infrastructure or audit.

Related issue(s)

Fixes # This PR adds a new variable LOKI_INSTALL_TYPE which can be either openshift or dev. And based on LOKI_INSTALL_TYPE constructs a proper request to be sent to loki.