Function Mesh Operator configurations
This table outlines the configurable parameters of the Function Mesh Operator and their default values.
Configuration properties
Parameters | Description | Default |
---|---|---|
enable-leader-election | Whether the Function Mesh Controller Manager should enable leader election. | true |
enable-pprof | Whether the Function Mesh Controller Manager should enable pprof. | false |
enable-init-containers | Whether the Function Mesh Controller Manager should enable the init container. - When enabled, Function Mesh downloads an HTTP or HTTPs package through the wget. - When disabled, Function Mesh downloads an HTTP or HTTPs package through the pulsar-admin CLI tool. In this case, you need to grant your service account the admin access right. | false |
pprof-addr | The address of the pprof. | :8090 |
metrics-addr | The address of the metrics. | :8080 |
health-probe-addr | The address of the health probe. | :8000 |
config-file | The configuration file of the Function Mesh Controller Manager, which includes runnerImages , resourceLabels , and resourceAnnotations configurations. - runnerImage : the runner image to run the Pulsar Function instances. Currently, it supports Java, Python, and Go runner images. - resourceLabels : set labels for Pulsar Functions, Sources, or Sinks. - resourceAnnotations : set annotations for Pulsar Functions, Sources, or Sinks. | /etc/config/configs.yaml |
Configure Function Mesh Operator
When you install the Function Mesh Operator through the Helm chart, you can apply its configurations through the command flag. For example, if you want to enable pprof
for the Function Mesh Operator, set the controllerManager.pprof.enable
to true
.
helm install <release_name> function-mesh/function-mesh-operator -n <k8s_namespace> \
--set controllerManager.pprof.enable=true
When you install the Function Mesh Operator through Operator Lifecycle Manager (OLM), you can apply its configurations through the spec.config.env
field and then upgrade the resource.
This example shows how to enable pprof
for the Function Mesh Operator.
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: my-function-mesh
namespace: operators
spec:
channel: alpha
name: function-mesh
source: operatorhubio-catalog
sourceNamespace: olm
config:
env:
- name: ENABLE_PPROF
value: true