How to define additional manifests in rancher-logging
Article Number: 000021964
Environment
Rancher v2.8+
rancher-logging 103.0.0+up3.17.10 or posterior versions
Situation
You want to deploy additional logging resources (e.g. clusterFlows or Outputs) in the values file of rancher-logging. Although it is a best-practice to separate the deployment and configuration of the application, this is a convenient way of setting up the entire logging pipeline, as you won't need to deploy or manage these resources separately.
Resolution
There is a parameter in the values file of the rancher-logging HelmChart called "extraManifests" that you can use to deploy additional logging resource such as Outputs and Flows. The following is an example of how to set it up:
extraManifests:
- apiVersion: logging.banzaicloud.io/v1beta1
kind: ClusterOutput
metadata:
name: example-es
namespace: cattle-logging-system
spec:
elasticsearch:
host: elasticsearch.example.com
port: 9200
scheme: http