See Fission installation to learn more how to install Fission.
Run Logger as privileged container
The reason to run Logger pods as privileged container is because Fission mounts
hostPath volume to FluentBit to read container log files and data persistence.
The persistence is for FluentBit tail plugin to read/write it’s own sqlite database. Fission itself doesn’t persist anything.
Optionally a database file can be used so the plugin can have a history of tracked files and a state of offsets, this is very useful to resume a state if the service is restarted.
Once the logger restarted, it ensures no duplicate logs will be sent to log database.
You may need to add
privileged permission to service account
oc adm policy add-scc-to-user privileged -z fission-svc
Follow this guide to deploy Prometheus to OpenShift cluster.
Get Prometheus server URL by following Accessing Prometheus, Alertmanager, and Grafana.
For example, if we have
https://prometheus-k8s-openshift-monitoring.apps._url_.openshift.com as Prometheus server URL, encode following config with base64
$ base64 <<EOF
fission namespace with output from previous step
$ kubectl -n fission patch configmap feature-config \
Delete controller pod to enforce it to reload the config.
$ kubectl -n fission delete pod -l svc=controller