Follow these instructions to install Fluent Bit on a TKG Service cluster that is running TKr for vSphere 8.x.
Prerequisites
Adhere to the following prerequisites.
- General Requirements
- Create the Package Repository
- Install Cert Manager
- A supported destination for Fluent Bit log forwarding. See Fluent Bit Package Reference.
Create Fluent Bit Data Values
Prepare to install Fluent Bit by creating the data values file.
- List the available Contour package versions.
tanzu package available get fluent-bit.tanzu.vmware.com -n tkg-system
Or, using kubectl:
kubectl -n tkg-system get packages | grep fluent-bit
Note: Typically you should use the latest version unless your requirements differ. - Generate the
fluent-bit-data-values.yaml
file.tanzu package available get fluent-bit.tanzu.vmware.com/2.1.6+vmware.1-tkg.2 --default-values-file-output fluent-bit-data-values.yaml
- Edit the
fluent-bit-data-values.yaml
file and configure the values.See Fluent Bit Package Reference for examples and list of all available parameters.
Install Fluent Bit
Complete these steps to install the Fluent Bit package.
- Create the namespace for Fluent Bit.
kubectl create ns tanzu-system-logging
- Install Fluent Bit.
tanzu package install fluent-bit -p fluent-bit.tanzu.vmware.com -v 2.1.6+vmware.1-tkg.2 --values-file fluent-bit-data-values.yaml -n tanzu-system-logging
- Verify Fluent Bit installation.
tanzu package installed list -n tanzu-system-logging
tanzu package installed get fluent-bit -n tanzu-system-logging
- Verify Fluent Bit objects.
kubectl -n tanzu-system-logging get all