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

feature: add support for Loki in OpenShift to shadow-pod controller #16

Closed pdettori closed 4 months ago

pdettori commented 4 months ago

Feature Description

Loki-logger pod now expects some new env variables when running in OpenShift:

TLS_CERT_FILE and TLS_KEY_FILE can be get from the secret "logging-loki-querier-http" in the "openshift-logging" namespace on the openshift cluster where the loki instance has been installed.

Proposed Solution

1.. Update the install script to copy the secret "logging-loki-querier-http" from the "openshift-logging" namespace to the kubeflow namespace in the core cluster

  1. Shadow pod controller gets also the env variable LOKI_INSTALL_TYPE, and configure the pod template for the Loki logger to pass the LOKI_INSTALL_TYPE flag.
  2. if LOKI_INSTALL_TYPE ==openshift, it configures the pod template to get the certs from the secret "logging-loki-querier-http" in the kubeflow namespace

Want to contribute?

Additional Context

No response