The custom secret must contain the required key fluent-bit.yaml and optional included keys, e.g., parsers.conf as shown below.
Sample Secret YAML Definition:
apiVersion: v1 kind: Secret metadata: name: fluent-bit-secret # Name of the secret namespace: your-namespace # Namespace where the secret will be created type: Opaque data: fluent-bit.yaml: <base64_encoded_content> parsers.conf: <base64_encoded_content>
Example:
Assuming the base64 encoded content of the fluent-bit.yaml file is c29tZS1iYXNlNjQtZW5jb2RlZC1jb250ZW50, the secret would look like this:
apiVersion: v1 kind: Secret metadata: name: fluent-bit-secret # Name of the secret namespace: your-namespace # Namespace where the secret will be created type: Opaque data: fluent-bit.yaml: c29tZS1iYXNlNjQtZW5jb2RlZC1jb250ZW50 # Replace with your actual base64 encoded content parsers.conf: a29tZS1iYXNlNjQtZW5jb2RlZC1jb250ZW51 # Replace with your actual base64 encoded content