Pulsar function configurations
This table lists all fields available for creating a Pulsar function.StreamNative Cloud custom runtime options
To facilitate submitting Pulsar functions based on your requirements, Function on Cloud service provides some custom options viacustom-runtime-options.
When update functions/sinks/sources with custom runtime options, the original custom runtime options will be replaced by the new ones, so make sure all the wanted fields are passed in the custom runtime options when you do the update.
You can compose the custom runtime options as a JSON string and pass it to the
custom-runtime-options field. For example:
custom-runtime-options field as follows:
- Using
snctl:
- Using
pulsarctl:
Run a function as a service account
To run a function with a specific StreamNative Cloud service account, set thesnServiceAccount custom runtime option. The selected service account becomes the runtime identity for the function.
With snctl, use --sn-service-account on functions create or functions update:
--use-sn-service-account to select the runtime service account interactively.
With pulsarctl or pulsar-admin, set the same value in custom-runtime-options:
Only Pulsar 4.0.x clusters running version 4.0.10.6 or later, or Pulsar 4.2.x clusters running version 4.2.1.4 or later, support runtime service account binding for functions.
Trusted Mode Configuration
This feature is available for BYOC Pro clusters only. To enable Trusted Mode:
- Submit a support ticket through StreamNative support
- StreamNative support team will activate trusted mode for your cluster
- Important: Enabling trusted mode requires a broker restart
custom-runtime-options field. These options provide fine-grained control over Kubernetes pod configuration and runtime behavior.