Deploying fluentbit for logging
Logging feature is introduced in 10.5 version of NetBackup for Cloud Scale which helps you to gather all the log files in one place, making them easier to access and use.
To deploy fluentbit
- To save the fluentbit chart values to a file, execute the command:
helm show values fluentbit-<version>.tgz > fluentbit-values.yaml
- To edit chart values to match your environment, execute the command:
vi fluentbit-values.yaml
- To upgrade the fluentbit deployment, execute the command:
helm upgrade --install fluentbit fluentbit-<version>.tgz -f fluentbit-values.yaml -n netbackup
OR
If using the OCI container registry directly, execute the command:
helm install --upgrade fluentbit oci://abcd.veritas.com:5000/helm-charts/fluentbit --version 1.2.3 -f fluentbit-values.yaml -n netbackup
Following is the output of the above command:
helm show values fluentbit-11.0.tgz > fluentbit-values.yaml vi fluentbit-values.yaml helm upgrade --i fluentbit fluentbit-11.0.tgz -f fluentbit-values.yaml -n netbackup Release "fluentbit" does not exist. Installing it now. NAME: fluentbit LAST DEPLOYED: Fri Apr 12 16:54:01 2024 NAMESPACE: netbackup STATUS: deployed REVISION: 1 TEST SUITE: None
Following is an example for
fluentbit-values.yamlfile which includes the parameter for private registry support.# Copyright (c) 2024 Veritas Technologies LLC. All rights reserved global: environmentNamespace: "netbackup" containerRegistry: "example.azurecr.io" timezone: null fluentbit: image: name: "netbackup/fluentbit" tag: "__NB_TAG__" pullPolicy: IfNotPresent # The imagePullSecrets field is used to specify Kubernetes secrets for pulling images from private registries. # Example: # imagePullSecrets: # - myregistrysecret # imagePullSecrets: [] volume: pvcStorage: "100Gi" storageClassName: nb-disk-premium metricsPort: 2020 cleanup: image: name: "netbackup/fluentbit-log-cleanup" tag: "__NB_TAG__" retentionDays: 7 retentionCleanupTime: '04:00' # Frequency in minutes utilizationCleanupFrequency: 60 # Storage % filled highWatermark: 90 lowWatermark: 60 # Namespaces for pod stdout logs to be collected from namespaces: - netbackup - netbackup-operator-system # Collector node selector value collectorNodeSelector: node_selector_key: agentpool node_selector_value: nbupool # Toleraions Values (key=value:NoSchedule) tolerations: - key: agentpool value: nbupool - key: agentpool value: mediapool - key: agentpool value: primarypool - key: storage-pool value: storagepool - key: data-plane-pool value: dataplanepool