Skip to Content

funcd

Start the funcd server, give it its settings in a file or in variables, and find every key and command it takes.

funcdconfig.yaml

KeyType and limitsDefaultDescription
apiVersionstring, must be funcd.io/v1alpha1The version of this file's format. It may be left out: funcd only checks its value, and only when it is set.
kindstring, must be FuncdConfigThe kind of this document, which marks it as funcd's server configuration. It may be left out: funcd only checks its value, and only when it is set. funcdctl skips a document of this kind when it reads a folder's resource files.
server.listenAddrstring127.0.0.1:8080The address that the control plane's API listens on. An address off loopback needs auth.credentials or a token of your own in auth.token. Variable: FUNCD_LISTEN_ADDR.
server.dataPlaneAddrstring127.0.0.1:0The address that the data plane listens on, where functions, Routes and Sites answer. Port 0 takes a free port. With server.auth.edge on, an address off loopback needs a credential of your own too. Variable: FUNCD_DATA_PLANE_ADDR.
server.baseDomainstringlocalhostThe domain under which every namespace but default answers, as <namespace>.<baseDomain>. funcd checks it at start. Variable: FUNCD_BASE_DOMAIN.
server.tls.enabledbooleanfalseWhen true, both listeners serve HTTPS. Variable: FUNCD_TLS_ENABLED.
server.tls.modestring, one of selfsigned, provided or acmeWhere the certificate comes from: selfsigned, made by funcd with no network; provided, the files certFile and keyFile; or acme, from an ACME server. Empty means selfsigned. Variable: FUNCD_TLS_MODE.
server.tls.hostslist of stringsThe host names that the certificate covers. Variable: FUNCD_TLS_HOSTS=a,b.
server.tls.certFilestringThe certificate file, in provided mode. Variable: FUNCD_TLS_CERT_FILE.
server.tls.keyFilestringThe private key file, in provided mode. Keep the file at mode 0600 or 0400, owned by funcd's user or root: funcd warns at start when group or others can open it, or when another user owns it. Variable: FUNCD_TLS_KEY_FILE.
server.tls.emailstringThe contact email of the ACME account, in acme mode. Variable: FUNCD_TLS_EMAIL.
server.tls.caDirstringThe directory URL of the ACME server, in acme mode. Empty means Let's Encrypt. Variable: FUNCD_TLS_CA_DIR.
server.limits.ratePerMininteger, at least 00The requests per minute that the data plane lets each key make. 0 turns the rate limit off. Variable: FUNCD_LIMITS_RATE_PER_MIN.
server.limits.burstinteger, at least 00How many requests a key may make in a row before its rate applies. 0 means as many as server.limits.ratePerMin. Variable: FUNCD_LIMITS_BURST.
server.limits.keystring, one of clientIP or functionWhat the rate limit counts per: clientIP, each client address, or function, each function called. Empty means clientIP. Variable: FUNCD_LIMITS_KEY.
server.limits.maxBodyBytesinteger, at least 00The largest request body, in bytes, that the data plane accepts; a larger one gets 413. 0 turns the cap off. Variable: FUNCD_LIMITS_MAX_BODY_BYTES.
server.limits.maxInFlightinteger, at least 00The most requests that the data plane serves at once; one more gets 503. 0 turns the cap off. Variable: FUNCD_LIMITS_MAX_IN_FLIGHT.
server.limits.maxKeysinteger, at least 14096The most keys whose rate the data plane tracks at once. It has no off switch. Variable: FUNCD_LIMITS_MAX_KEYS.
server.edgePublicSchemestring, one of http or httpshttpThe scheme browsers reach the data plane with, which the edge's sign-in callbacks use: https behind a proxy that terminates TLS makes them https, with Secure __Host- cookies. server.tls.enabled makes them https too. Empty means http. Variable: FUNCD_EDGE_PUBLIC_SCHEME.
server.edgePublicPortinteger, 0 to 655350The port browsers reach the data plane on, which the edge's sign-in callbacks use; the scheme's own port, 443 or 80, is left out. 0 means the data plane's bound port, or none when only server.edgePublicScheme makes the scheme https. Variable: FUNCD_EDGE_PUBLIC_PORT.
server.trustedProxies[].cidrslist of stringsThe address ranges of the trusted hops, such as 203.0.113.0/24. An address of runtime.containerd.subnetCIDR, a workload's, never matches. Set this or addonKinds.
server.trustedProxies[].addonKindslist of stringsThe add-on kinds whose engines are trusted hops, each spelled as its Addon spells it, for an engine that reaches the edge on the bridge address. It matches nothing without the egress gateway, as on the process runtime, and funcd warns at start. Set this or cidrs.
server.trustedProxies[].headerstringThe header that the trusted hop sets to the client address, such as X-Real-IP; a value that is not exactly one IP address leaves the peer as the client. Empty, the edge walks X-Forwarded-For from the right past each address that a cidrs entry trusts.
server.auth.edgebooleanfalseWhen true, the data plane authenticates a call to a target whose stance is authenticated with the control plane's credentials, and authorizes it with its policies. When false, such a call gets 401. An open target answers either way. Variable: FUNCD_AUTH_EDGE.
server.observability.metricsbooleanfalseWhen true, the data plane counts each target's requests, errors and durations. Variable: FUNCD_OBS_METRICS.
server.observability.accessLogbooleanfalseWhen true, the data plane logs each request. Variable: FUNCD_OBS_ACCESS_LOG.
server.observability.tracebooleanfalseWhen true, the data plane starts a trace span for each request. Variable: FUNCD_OBS_TRACE.
server.shaping.cors.allowOriginslist of stringsThe origins that a browser may call the data plane from. Variable: FUNCD_SHAPING_CORS_ALLOW_ORIGINS=a,b.
server.shaping.cors.allowMethodslist of stringsThe methods that a cross-origin call may use. Variable: FUNCD_SHAPING_CORS_ALLOW_METHODS=a,b.
server.shaping.cors.allowHeaderslist of stringsThe request headers that a cross-origin call may send. Variable: FUNCD_SHAPING_CORS_ALLOW_HEADERS=a,b.
server.shaping.cors.maxAgeSecondsinteger, at least 00How long, in seconds, a browser may keep the answer to a CORS preflight request. Variable: FUNCD_SHAPING_CORS_MAX_AGE_SECONDS.
server.shaping.headers.setmap of string to stringThe response headers that the data plane sets, by name. Each name must be a valid header name. The variable splits pairs at commas, so a value that holds a comma needs the file. Variable: FUNCD_SHAPING_HEADERS_SET=k1=v1,k2=v2.
server.shaping.headers.removelist of stringsThe response headers that the data plane removes. Variable: FUNCD_SHAPING_HEADERS_REMOVE=a,b.
server.shaping.compressionbooleanfalseWhen true, the data plane compresses responses with gzip. Variable: FUNCD_SHAPING_COMPRESSION.
server.network.egressbooleanfalseWhen true, workers' outbound traffic is denied by default, and what their EgressPolicies allow goes through the egress gateway. Linux with containerd only; elsewhere it does nothing. Variable: FUNCD_NETWORK_EGRESS.
server.network.egressGatewayPortinteger, 0 to 655350The port of the egress gateway on the workers' bridge, where their outbound TCP is redirected. Required when server.network.egress is on. Variable: FUNCD_NETWORK_EGRESS_GATEWAY_PORT.
server.network.dnsForwarderPortinteger, 0 to 655350The port of the DNS forwarder on the bridge address. A worker's DNS goes only to it, and it answers only the names that an EgressPolicy domain rule allows. 0 runs neither the forwarder nor the gateway, and nothing goes out, DNS included. Variable: FUNCD_NETWORK_DNS_FORWARDER_PORT.
server.network.dnsResolverstringThe upstream resolver that the DNS forwarder asks. Variable: FUNCD_NETWORK_DNS_RESOLVER.
server.network.internalAllowlist of stringsThe addresses on the node, as host
, that workers may reach directly. Variable: FUNCD_NETWORK_INTERNAL_ALLOW=a,b.
server.network.workerSyncIntervalstring2sHow often the egress rules follow the workers that start and stop, as a positive duration such as 2s. Variable: FUNCD_NETWORK_WORKER_SYNC_INTERVAL.
server.shutdownTimeoutstring15sHow long funcd waits at shutdown for HTTP requests, Sensors and workflow runs to finish, as a positive duration such as 15s. Variable: FUNCD_SHUTDOWN_TIMEOUT.
storage.modestring, one of file or memoryfileWhere funcd keeps its data: file, on disk under storage.dataDir, or memory, where the data is lost when funcd stops. Under memory, funcd still writes some files to storage.dataDir, such as its sockets and the node master secret; it runs no platform or KV backup and no safe mode, and storage.minFreeSize does not apply. The --memory flag of funcd sets memory. Variable: FUNCD_STORAGE_MODE.
storage.dataDirstring, required/var/lib/funcdThe directory of funcd's data and working files, created when it is missing; a relative path resolves against funcd's working directory. Each store directory left empty, such as storage.metastoreDir, sits under it. A path too long for the Unix sockets that funcd creates under it refuses the start. The systemd unit that funcd install writes sets it through the variable, which wins over the file. Variable: FUNCD_DATA_DIR.
storage.metastoreDirstringThe directory of the store that holds every object of the API, such as Functions and Secrets. Empty means <storage.dataDir>/store. Under storage.mode memory, funcd does not read it. Variable: FUNCD_METASTORE_DIR.
storage.quarantineRetentionstringHow long the quarantine keeps the data that no object names, which a start moves there instead of deleting it, before a sweep deletes it: the keys of a KVStore, the objects of a Bucket, a SQL database or a Function volume. funcdctl hold status lists the quarantine. Once the object exists again and holds no data, funcdctl quarantine return brings a KVStore's, a Bucket's or a volume's entry back into it; a SQL database's directory goes back by hand, with funcd stopped. A duration of at least 1h; empty means 168h. Variable: FUNCD_STORAGE_QUARANTINE_RETENTION.
storage.minFreeSizestringThe free space that funcd keeps on the filesystem of storage.dataDir: a workload write that would take the free space below it gets 507, and function log records are dropped, until space is freed. A size such as 512Mi or 2GiB; empty means 2GiB, and 0 turns the floor off. Under storage.mode memory, it does not apply. Variable: FUNCD_STORAGE_MIN_FREE_SIZE.
kvstore.enginestring, one of memory or badgerWhere the data of every KVStore lives: memory, lost when funcd stops, or badger, on disk in kvstore.dataDir. Empty means memory. Under storage.mode memory, the data stays in memory, and badger logs a warning. Variable: FUNCD_KVSTORE_ENGINE.
kvstore.dataDirstringThe directory where kvstore.engine badger keeps the KV data, and where funcd restore kv loads a backup. Empty means <storage.dataDir>/kv. funcd does not read it with the memory engine or under storage.mode memory. Variable: FUNCD_KVSTORE_DATA_DIR.
kvstore.maxStoresPerNamespaceinteger0The most KVStores that one namespace may hold: creating one more gets 400. 0 means 100, and a negative value lifts the cap. Variable: FUNCD_KVSTORE_MAX_STORES_PER_NAMESPACE.
kvstore.sweepIntervalstringHow often funcd deletes the KV keys whose time to live has passed. Reads miss such a key at once; the deletion lets the change feed, the KV backup and the quotas count it. A duration of at least 100ms; empty means 1s. Variable: FUNCD_KVSTORE_SWEEP_INTERVAL.
kvstore.backup.enabledbooleanfalseWhen true, funcd backs up the KV data to kvstore.backup.target, or to backup.target when that key is empty, for funcd restore kv; one of the two must be set. Under storage.mode memory, funcd runs no KV backup and logs a warning; elsewhere it also needs kvstore.engine badger, and recipients or none in kvstore.backup.encryption or backup.encryption. Variable: FUNCD_KVSTORE_BACKUP_ENABLED.
kvstore.backup.targetstringThe KV backup's own target, an s3:// URL or file:///<absolute dir>, under whose kv/ prefix it writes. Empty uses backup.target, with backup.credentialsFile and backup.singleWriter. It must differ from backup.target and lie outside the blob store. Variable: FUNCD_KVSTORE_BACKUP_TARGET.
kvstore.backup.credentialsFilestringAn AWS shared credentials file whose default profile alone signs the KV backup's requests to an s3:// kvstore.backup.target. It needs kvstore.backup.target; empty uses the AWS SDK's default credential chain. Keep the file at mode 0600 or 0400, owned by funcd's user or root: funcd warns at start when group or others can open it, or when another user owns it. Variable: FUNCD_KVSTORE_BACKUP_CREDENTIALS_FILE.
kvstore.backup.singleWriterbooleanfalseWhen true, the KV backup writes to a kvstore.backup.target that ignores or refuses a create-if-absent put (If-None-Match), on the promise that one funcd alone writes there, and logs a warning; when false, such a target fails every run. It needs kvstore.backup.target; a shared backup.target follows backup.singleWriter. Variable: FUNCD_KVSTORE_BACKUP_SINGLE_WRITER.
kvstore.backup.intervalstringHow often the KV backup ships the changes since its last point, as a positive duration; a tick with no change writes nothing. Empty means 30s. Variable: FUNCD_KVSTORE_BACKUP_INTERVAL.
kvstore.backup.rebaselinestringHow often the KV backup writes a new base, a full copy that starts a new chain, as a positive duration counted from the newest complete base, so a restart keeps the pace. It must stay below kvstore.backup.retention.hourly rounded up to whole days. Empty means 24h. Variable: FUNCD_KVSTORE_BACKUP_REBASELINE.
kvstore.backup.rebaselineRetrystringHow long the KV backup waits to try a base again after one failed, or while the platform is held, as a positive duration. Empty means 1h. Variable: FUNCD_KVSTORE_BACKUP_REBASELINE_RETRY.
kvstore.backup.chunkBytesinteger, at least 00The most bytes that the KV backup puts in one object, so a larger base or increment goes up in several parts. At most 8388608 (8 MiB); 0 means 8 MiB. Variable: FUNCD_KVSTORE_BACKUP_CHUNK_BYTES.
kvstore.backup.encryption.recipientslist of stringsThe age recipients files that seal the KV backup, with at least 2 distinct X25519 or hybrid recipients in all, the two types not mixed. Setting it or kvstore.backup.encryption.none takes the KV backup's encryption from this block; else backup.encryption applies whole. Variable: FUNCD_KVSTORE_BACKUP_ENCRYPTION_RECIPIENTS=a,b.
kvstore.backup.encryption.nonebooleanfalseWhen true, the KV backup is stored unsealed, with a warning at start, and kvstore.backup.encryption.recipients must be empty. Setting it takes the KV backup's encryption from this block instead of backup.encryption. Variable: FUNCD_KVSTORE_BACKUP_ENCRYPTION_NONE.
kvstore.backup.retention.hourlyinteger48How long, in hours, the hourly bases and the increments of the KV backup stay, by the lifecycle rule that funcd logs at start for the operator to set on the target: this many hours rounded up to whole days. funcd deletes nothing on the target itself. At least 1 while the KV backup is on. Variable: FUNCD_KVSTORE_BACKUP_RETENTION_HOURLY.
kvstore.backup.retention.dailyinteger30How long, in days, the daily bases of the KV backup stay, by the lifecycle rule that funcd logs at start for the operator to set on the target. 0 makes no daily bases; a negative value is refused while the KV backup is on. Variable: FUNCD_KVSTORE_BACKUP_RETENTION_DAILY.
kvstore.backup.retention.weeklyinteger12How long, in weeks, the weekly bases of the KV backup stay, by the lifecycle rule that funcd logs at start for the operator to set on the target. 0 makes no weekly bases; a negative value is refused while the KV backup is on. Variable: FUNCD_KVSTORE_BACKUP_RETENTION_WEEKLY.
kvstore.cdc.enabledbooleanfalseWhen true, funcd publishes each write and delete of the KV data, in order, to the subject kvstore.cdc.sink of its own message bus, and a restart loses no change. Nothing in funcd reads that subject, and the bus takes no outside connection. It needs kvstore.cdc.sink; under storage.mode memory funcd runs no feed and logs a warning, and elsewhere it also needs kvstore.engine badger. Variable: FUNCD_KVSTORE_CDC_ENABLED.
kvstore.cdc.sinkstringThe subject of funcd's message bus that the KV change feed publishes to; kvstore.cdc.enabled needs it. Variable: FUNCD_KVSTORE_CDC_SINK.
kvstore.cdc.retentionstringHow long the message bus keeps each change of the KV change feed, as a positive duration. Empty means 24h. Variable: FUNCD_KVSTORE_CDC_RETENTION.
backup.targetstringWhere the platform backup writes its generations: s3://<bucket>?region=<region> for an S3-compatible store, with endpoint and prefix parameters when needed, or file:///<absolute dir>. Empty, or with storage.mode memory, no platform backup runs. Blob's mirror goes here too while blob.target is empty, and so does the KV backup when kvstore.backup.enabled is true and kvstore.backup.target is empty. A target in the blob store's own bucket, or a directory in or around blob.dir, refuses the start. funcd deletes nothing on a target: it logs at start the lifecycle rules to set there. Variable: FUNCD_BACKUP_TARGET.
backup.credentialsFilestringThe AWS shared credentials file whose [default] profile signs every request to an s3:// backup.target, from each backup that writes there. A file:// target refuses it. Empty, the default AWS credential chain signs them. Keep the file at mode 0600 or 0400, owned by funcd's user or root: funcd warns at start when group or others can open it, or when another user owns it. Variable: FUNCD_BACKUP_CREDENTIALS_FILE.
backup.singleWriterbooleanfalseWhen true, funcd writes on a target that ignores or refuses a create-if-absent put (If-None-Match: *), on the promise that no other funcd writes there, and warns. When false, every write to such a target fails, since nothing would fence a second writer. Variable: FUNCD_BACKUP_SINGLE_WRITER.
backup.retention.hourlyinteger48How many hours the lifecycle rule that funcd logs at start keeps an hourly generation, one that is neither daily nor weekly; the rule rounds it up to whole days. It must be at least 1. Variable: FUNCD_BACKUP_RETENTION_HOURLY.
backup.retention.dailyinteger30How many days the lifecycle rule that funcd logs at start keeps a daily generation, the first of each UTC day that has no weekly one. 0 writes no daily generations. A negative value refuses the start while backup.target is set. Variable: FUNCD_BACKUP_RETENTION_DAILY.
backup.retention.weeklyinteger12How many weeks the lifecycle rule that funcd logs at start keeps a weekly generation, the first of each ISO week in UTC. 0 writes no weekly generations. A negative value refuses the start while backup.target is set. Variable: FUNCD_BACKUP_RETENTION_WEEKLY.
backup.retention.verifiedinteger2How many days the lifecycle rule that funcd logs at start keeps a verified copy, which funcdctl backup verify writes. It must be at least 1, and funcd warns when it is below backup.objectives.rpo minus backup.interval. Variable: FUNCD_BACKUP_RETENTION_VERIFIED.
backup.retention.preUpgradeinteger3How many complete pre-upgrade generations funcd upgrade counts as kept. funcd deletes none: funcd upgrade lists the older ones past that number for the operator to prune. It must be at least 1. Variable: FUNCD_BACKUP_RETENTION_PRE_UPGRADE.
backup.encryption.recipientslist of stringsThe files of age recipients, X25519 ones that start with age1 or hybrid ones that start with age1pq1, to which funcd seals every generation on backup.target. Together they must hold at least 2 distinct recipients, such as an operator's and a recovery one, and a hybrid one cannot sit beside an X25519 one. With backup.target set, it is required unless backup.encryption.none is true. The KV backup takes this group too while kvstore.backup.encryption sets neither of its keys. Variable: FUNCD_BACKUP_ENCRYPTION_RECIPIENTS=a,b.
backup.encryption.nonebooleanfalseWhen true, funcd stores the generations unsealed and warns that every record but Secret values leaves in plaintext. It needs backup.encryption.recipients empty and secrets.encryptionKeyFile set. The KV backup takes this group too while kvstore.backup.encryption sets neither of its keys. Variable: FUNCD_BACKUP_ENCRYPTION_NONE.
backup.intervalstring1hHow often the platform backup runs, as a positive duration: each run starts one interval after the previous one. It must not exceed backup.objectives.rpo, and funcd warns when it passes half of that objective. The longest of the hourly, daily and weekly retention terms must reach it. Variable: FUNCD_BACKUP_INTERVAL.
backup.retryIntervalstring5mHow long after a failed run the platform backup tries again, as a positive duration, but no later than one backup.interval after that run started. Blob's mirror retries after it too, and a held platform checks again after it. Variable: FUNCD_BACKUP_RETRY_INTERVAL.
backup.objectives.rpostring2hThe recovery point objective of the platform backup, as a positive duration. While the newest verified generation, one that funcdctl backup verify checked, is at least this old, or there is none, funcdctl backup status shows rpoRisk and funcd logs backup rpo at risk, once per this time. It must be at least backup.interval. Variable: FUNCD_BACKUP_OBJECTIVES_RPO.
workloadBackup.maxListedKeysinteger, at least 11048576The most keys that one listing of a BackupSchedule's own target may read, with or without backup.target. A listing past it fails, and a failed listing of the schedule's copies turns its TargetSynced condition False with ListFailed. Variable: FUNCD_WORKLOAD_BACKUP_MAX_LISTED_KEYS.
workloadBackup.maxListedKeySizestring256MiBThe most bytes of key names that one listing of a BackupSchedule's own target may read, as a size such as 64MiB. A listing past it fails, as one past workloadBackup.maxListedKeys does. It must be above zero. Variable: FUNCD_WORKLOAD_BACKUP_MAX_LISTED_KEY_SIZE.
workloadBackup.maxCopyMembersinteger, at least 11024The most members, the KVStores, Buckets, Lakes, SQL databases and volumes, that one Backup of a BackupSchedule may copy. A Backup whose scope resolves to more fails with no copy written, and a listing that finds a copy with more fails. Variable: FUNCD_WORKLOAD_BACKUP_MAX_COPY_MEMBERS.
blob.targetstringA versioned S3-compatible bucket, as s3://<bucket>?region=…&endpoint=…, that holds the blob store, where Buckets keep their objects, instead of the local blob.dir. funcd refuses to start when the bucket keeps no versions, unless blob.allowUnversioned is true, and warns when it has no Object Lock. Under storage.mode memory, the blob store is in memory, and funcd ignores every blob key with a warning. Variable: FUNCD_BLOB_TARGET.
blob.credentialsFilestringAn AWS shared credentials file whose default profile alone signs the requests to blob.target, and the default credential of funcd restore blob. It needs blob.target; empty uses the AWS SDK's default credential chain. Keep the file at mode 0600 or 0400, owned by funcd's user or root: funcd warns at start when group or others can open it, or when another user owns it. Variable: FUNCD_BLOB_CREDENTIALS_FILE.
blob.dirstringThe directory of the local blob store, used while blob.target is empty; a relative path resolves against funcd's working directory. Empty means <storage.dataDir>/blob. It must stay empty beside blob.target, and must be neither storage.dataDir nor a directory above it. Variable: FUNCD_BLOB_DIR.
blob.allowUnversionedbooleanfalseWhen true, funcd serves a blob.target that keeps no versions, with a warning, instead of refusing to start; a deleted or overwritten object is then gone. funcd reads it only with blob.target. Variable: FUNCD_BLOB_ALLOW_UNVERSIONED.
blob.versionRetentionstringHow long the operator's lifecycle rule on blob.target keeps a noncurrent version, as a positive duration. funcd restore blob --at takes only a time within it, and refuses --at while it is empty. Variable: FUNCD_BLOB_VERSION_RETENTION.
blob.backup.intervalstring1hHow often the mirror of the local blob store to backup.target writes a generation for funcd restore blob, as a positive duration from the start of one run to the next; after a failed run, the next comes after backup.retryInterval when that is sooner. The mirror runs while backup.target is set, storage.mode is file and blob.target is empty. Variable: FUNCD_BLOB_BACKUP_INTERVAL.
blob.backup.rebaselinestring720hHow old the mirror's current epoch may grow before a run starts a new one, which uploads every object again; within an epoch, a run uploads only the objects that changed. At least blob.backup.interval. Variable: FUNCD_BLOB_BACKUP_REBASELINE.
blob.backup.retentionstring720hThe least time that each mirror generation stays restorable. funcd deletes nothing on the target: it logs at start the lifecycle expiry to set on its blob/ prefix, blob.backup.rebaseline plus this time rounded up to whole days. At least blob.backup.interval. Variable: FUNCD_BLOB_BACKUP_RETENTION.
recovery.safeMode.afterCrashesinteger3How many unclean starts in a row make the next start held: the platform then waits for funcdctl hold release. After twice as many, funcd exits with status 70 and opens no store until funcd safe-mode reset. It must be at least 1, and storage.mode memory counts no starts. Variable: FUNCD_RECOVERY_SAFE_MODE_AFTER_CRASHES.
recovery.safeMode.stableAfterstring10mHow long funcd must run, as a positive duration, before its start counts as clean and the count of unclean starts goes back to 0. A stop without an error counts as clean too. Variable: FUNCD_RECOVERY_SAFE_MODE_STABLE_AFTER.
auth.tokenstringThe token of the one developer credential, which acts in auth.namespaces: one token of visible ASCII characters. Empty, or set to the built-in dev token, it is that token, with a warning, and funcd then refuses to start with server.listenAddr off loopback, or with server.dataPlaneAddr off loopback while server.auth.edge is on. It cannot be set beside auth.credentials. Variable: FUNCD_TOKEN.
auth.namespaceslist of stringsdefaultThe namespaces in which the auth.token credential acts, or the built-in dev token when auth.token is empty. An empty list or entry refuses the start, and beside auth.credentials it must keep its default: each entry there names its own namespaces. Variable: FUNCD_AUTH_NAMESPACES=a,b.
auth.credentials[].tokenFilestring, requiredThe file that holds this credential's token, read at start: one token of visible ASCII characters, at most 4096 bytes. It must be a regular file that funcd's user or root owns, with no access for group or others, such as mode 0600 or 0400. The built-in dev token, or a token that another entry holds, refuses the start.
auth.credentials[].rolestring, one of admin, developer or viewerWhat the credential may do: an admin acts on every kind everywhere, a developer acts on the namespaced kinds of its namespaces, and a viewer only reads them, never a Secret.
auth.credentials[].namespaceslist of stringsThe namespaces in which a developer or viewer acts. Absent means default. An empty list or entry refuses the start, and so does this key on an admin, which spans every namespace.
secrets.encryptionKeyFilestringThe file of the key that encrypts Secret values at rest: exactly 32 raw bytes, an AES-256 key. Empty, the metastore holds Secret values unencrypted, and with storage.mode file funcd warns at start. funcd refuses to start when the key does not match how the stored Secrets were written. Keep the file at mode 0600 or 0400, owned by funcd's user or root: funcd warns at start when group or others can open it, or when another user owns it. Variable: FUNCD_SECRETS_ENCRYPTION_KEY_FILE.
runtime.modestring, one of process or containerdprocessWhere workers run: process, as child processes of funcd under its own OS user with no isolation, for development and tests; or containerd, in containers, on Linux only. Function volumes need containerd. The systemd unit that funcd install writes sets containerd through the variable, which wins over the file. Variable: FUNCD_RUNTIME.
runtime.bootBackoffInitialstring10sThe first wait before funcd creates again a worker that crashed while booting: one that failed to start, ended before it listened or did not listen within runtime.bootTimeout. Each further crash in a row doubles the wait, up to runtime.bootBackoffMax. It is a positive duration, at most a set runtime.bootBackoffMax. Variable: FUNCD_RUNTIME_BOOT_BACKOFF_INITIAL.
runtime.bootBackoffMaxstringThe longest wait before funcd creates again a worker that keeps crashing while booting: the doubling from runtime.bootBackoffInitial stops there. Empty means 5m, or runtime.bootBackoffInitial when that is longer; a set value must be at least runtime.bootBackoffInitial. Variable: FUNCD_RUNTIME_BOOT_BACKOFF_MAX.
runtime.supervisionPeriodstring10sHow often funcd checks again each object that owns running instances, such as a Function's workers or a Lake's engine, so that it replaces one that died; a worker that exited after it listened is replaced this long after its last start. It is a positive duration; a set runtime.livenessTimeout must be at least twice it, and with s3gateway.enabled it counts toward the minimum of s3gateway.keyRotationPeriod. Variable: FUNCD_RUNTIME_SUPERVISION_PERIOD.
runtime.bootTimeoutstring1mHow long a worker has after its start to listen and to become ready. One that does not listen in time is stopped and counts as a boot crash, and on a Function's first boot one that is not ready in time turns the Function Failed. It is a positive duration, more than invoke.activationTimeout and less than a set app.upgradeTimeout. Variable: FUNCD_RUNTIME_BOOT_TIMEOUT.
runtime.drainGracestring30sHow long a worker that funcd retires, such as one of a Function's old revision after the switch, may go on serving its calls: it stops once idle, else at the end of this grace with its calls cut. A revision that an open workflow run pins stays until the run ends. It is a positive duration of at least runtime.handOutSettle; with s3gateway.enabled, it counts toward the minimum of s3gateway.keyRotationPeriod. Variable: FUNCD_RUNTIME_DRAIN_GRACE.
runtime.handOutSettlestring2sHow long a call that funcd has handed to a worker may take to reach it. Within runtime.drainGrace, a worker of a Function's old revision stops no sooner than this after the switch and after the last call handed to it. It is a positive duration, at most runtime.drainGrace. Variable: FUNCD_RUNTIME_HAND_OUT_SETTLE.
runtime.drainPollIntervalstring1sThe longest gap between two checks of whether the workers that funcd retires have gone idle, so that it can stop them. It is a positive duration; with s3gateway.enabled, it counts toward the minimum of s3gateway.keyRotationPeriod. Variable: FUNCD_RUNTIME_DRAIN_POLL_INTERVAL.
runtime.livenessTimeoutstringHow long a worker that listened may go without answering its /health/liveness check before funcd stops it and creates it again. Empty means 30s, or three times runtime.supervisionPeriod when that is longer; a set value is a positive duration of at least twice runtime.supervisionPeriod. Variable: FUNCD_RUNTIME_LIVENESS_TIMEOUT.
runtime.readinessTimeoutstringHow long a worker whose readiness checks go unanswered is still judged by its last answer, so that calls can still reach it; it does not bound one check. Past it, with every worker late, the Function is Degraded with the reason NotAnswering. Empty means 5s; a set value is a positive duration. Variable: FUNCD_RUNTIME_READINESS_TIMEOUT.
runtime.process.stopGracestring3sHow long a worker on the process runtime has after SIGTERM to end before it gets SIGKILL: when funcd stops it, at shutdown, and at start for the workers that an earlier run left. It is a positive duration of at most 10s. Variable: FUNCD_PROCESS_STOP_GRACE.
runtime.containerd.stopGracestring10sHow long a container that funcd stops, a Function's worker or a Lake's or SQL database's engine, has after SIGTERM to end before it gets SIGKILL, at shutdown too. It is a positive duration of at most 10s. A Lake engine waits up to 5s at a stop for its running queries before it saves its catalog a last time, so a grace near or below that can kill it before that save. Variable: FUNCD_CONTAINERD_STOP_GRACE.
runtime.containerd.socketstringThe socket of a containerd that already runs, where funcd then runs its containers. Empty means funcd starts a private containerd of its own in runtime.containerd.root, which needs funcd to run as root, and stops it at shutdown; funcd does not start it again if it dies. Variable: FUNCD_CONTAINERD_SOCKET.
runtime.containerd.rootstringThe directory of the private containerd that funcd starts when runtime.containerd.socket is empty, which holds its socket, images and state. Empty means <storage.dataDir>/containerd. Variable: FUNCD_CONTAINERD_ROOT.
runtime.containerd.snapshotterstringoverlayfsThe containerd snapshotter that unpacks the images and holds the root filesystem of each container. Variable: FUNCD_SNAPSHOTTER.
runtime.containerd.cniBinDirstring/opt/cni/binThe directory of the CNI plugins that attach each container to the workers' bridge. funcd install lays them down in the default directory, whatever this key holds. Variable: FUNCD_CNI_BIN_DIR.
runtime.containerd.cniConfDirstringThe directory of the containers' CNI network list. When funcd's own list is missing there, funcd writes one, a bridge over runtime.containerd.subnetCIDR; it never rewrites a list that it finds. Empty means <storage.dataDir>/cni. Variable: FUNCD_CNI_CONF_DIR.
runtime.containerd.stateDirstringThe directory where funcd keeps the files that it makes for its running containers, such as their DNS settings and network namespaces. Empty means <storage.dataDir>/run. Variable: FUNCD_CONTAINERD_STATE_DIR.
runtime.containerd.subnetCIDRstring10.63.0.0/16The subnet of the workers' bridge: each container gets an address in it, and the bridge takes its network address plus one, which the containers use as gateway and DNS server. funcd writes it into its CNI network list only when it creates that list in runtime.containerd.cniConfDir. Variable: FUNCD_SUBNET_CIDR.
runtime.containerd.bridgeAddressstringfuncd's address on the workers' bridge, where its containers reach the DNS forwarder, the Lake gateways and the SQL change feed, and which a derived s3gateway.endpoint names. It must lie in runtime.containerd.subnetCIDR. With server.network.egress on, an address other than the bridge's first one leaves the workers' DNS lookups unanswered. Empty means the subnet's network address plus one, the first address of the bridge that funcd sets up; the process runtime does not read it. Variable: FUNCD_BRIDGE_ADDRESS.
runtime.containerd.imagePrefixstringfuncd/runtime-The start of each runtime's image name, for a Function's spec.runtime and for the Lake and SQL engines: funcd runs <imagePrefix><runtime>
unless runtime.containerd.imageOverride names another image. Under the default, such an image comes only from those built into funcd; under another prefix, funcd pulls one that it does not hold. Empty, each name is a Docker Hub library image, docker.io/library/<runtime>
, which funcd pulls. Variable: FUNCD_IMAGE_PREFIX.
runtime.containerd.imageOverridemap of string to stringThe image to run in place of <imagePrefix><runtime>
, by runtime name: a Function's spec.runtime such as nodejs22, duckdb for a Lake's engine or rqlite for a SQL database's. funcd pulls such an image when it does not hold it. Variable: FUNCD_IMAGE_OVERRIDE=k1=v1,k2=v2.
controller.gcSweepIntervalstring5mHow often the owner collector checks every child kind for objects whose owner is gone, and deletes them, as a positive duration. Its watch on the owners deletes most of them at once; this check, also run at start, finds what a crash or a dropped watch missed. Variable: FUNCD_CONTROLLER_GC_SWEEP_INTERVAL.
controller.retryBackoffMaxstring1sThe longest wait before the controller retries a failed pass or reopens a broken watch. The wait starts at 5ms and doubles after each failure, so this must be at least 5ms. Variable: FUNCD_CONTROLLER_RETRY_BACKOFF_MAX.
controller.referentPollIntervalstring2sHow often funcd checks again an object that waits for another one it names, as a positive duration. Such an object is, for example, a Function or a Lake whose Secret, ConfigMap or Bucket is missing, a Route whose backend is missing, or a WorkflowRun that waits for its Workflow. A waiting Function is checked at least once per runtime.supervisionPeriod. Variable: FUNCD_CONTROLLER_REFERENT_POLL_INTERVAL.
controller.routeResyncIntervalstring10sHow often funcd checks again a Route whose backend exists, so that it notices when the backend is deleted, as a positive duration. A Route whose backend is missing is checked every controller.referentPollInterval. Variable: FUNCD_CONTROLLER_ROUTE_RESYNC_INTERVAL.
log.formatstring, one of json or textjsonThe format of the log that funcd writes to standard output: json writes one JSON object per line, and text writes key=value pairs. Variable: FUNCD_LOG_FORMAT.
log.levelstring, one of debug, info, warn or errorinfoThe lowest level of the records that funcd writes to its log; it drops the records below it. Variable: FUNCD_LOG_LEVEL.
telemetry.endpointstringThe host
of an OTLP gRPC collector, such as localhost
, to which funcd exports its own metrics and traces. Empty exports nothing. Variable: FUNCD_TELEMETRY_ENDPOINT.
telemetry.insecurebooleanfalseWhen true, funcd connects to telemetry.endpoint without TLS. Variable: FUNCD_TELEMETRY_INSECURE.
funclog.enabledbooleantrueWhen false, funcd stores neither the logs nor the spans of the Functions' workers, nor the lines of the engines of Lakes, SQLDatabases and add-on objects, so funcdctl logs has nothing new to show. Variable: FUNCD_FUNCLOG_ENABLED.
funclog.segmentMaxBytesinteger, at least 00The size, in bytes, at which funcd writes the log or span records that it holds for one worker to the funcd-system bucket as a segment, unless funclog.segmentMaxAge comes first. 0 means 8 MiB. Variable: FUNCD_FUNCLOG_SEGMENT_MAX_BYTES.
funclog.segmentMaxAgestringHow long funcd holds a worker's log or span records before it writes them to the funcd-system bucket as a segment, unless funclog.segmentMaxBytes comes first. funcdctl logs shows a record only once its segment is written. Empty or 0s means 10s. Variable: FUNCD_FUNCLOG_SEGMENT_MAX_AGE.
funclog.bucketstring, must be funcd-systemfuncd-systemThe bucket of the Functions' logs and spans. funcd does not read it: they always go to the funcd-system bucket. Variable: FUNCD_FUNCLOG_BUCKET.
funclog.tracesbooleantrueWhen false, funcd stores no spans, of Function calls or of workflow runs, and still stores the logs. While funclog.enabled is false, funcd stores no spans either way. Variable: FUNCD_FUNCLOG_TRACES.
funclog.maxRecordBytesinteger, at least 00The longest line, in bytes, that a Function's shim writes for one log or span record; the shim cuts a longer record and marks it as truncated. 0 means 65536. A value other than 0 must be from 1024 to 1048576. Variable: FUNCD_FUNCLOG_MAX_RECORD_BYTES.
s3gateway.enabledbooleanfalseWhen true, funcd serves an S3 API over the blob store at s3gateway.listenAddr, and gives each Function and Lake that binds a Bucket in spec.bindings.blob the gateway's endpoint and a key pair of its own. When false, nothing listens, and a Lake engine gets no S3 endpoint. Variable: FUNCD_S3GATEWAY_ENABLED.
s3gateway.listenAddrstring127.0.0.1:9000The address that the S3 gateway listens on while s3gateway.enabled is true; a port that is taken fails the start. While s3gateway.endpoint is empty, it also sets the URL that workers get. Variable: FUNCD_S3GATEWAY_LISTEN_ADDR.
s3gateway.endpointstringThe S3 URL that funcd gives the Lake engines and the workers of the Functions with spec.bindings.blob; a Lake needs an IP address in it, not a host name. Empty, it is http://<bridge address>:<port> under the containerd runtime when the host of s3gateway.listenAddr is empty, unspecified or the bridge address; otherwise a Function gets http://<s3gateway.listenAddr> and a Lake engine none. Variable: FUNCD_S3GATEWAY_ENDPOINT.
s3gateway.maxUploadBytesinteger, at least 01073741824The largest object, in bytes, that the S3 gateway takes in one PUT or multipart upload, which it holds in memory; a larger one gets EntityTooLarge. The multipart uploads in flight hold at most three times it in all, and one principal's parts at most it, past which a part gets SlowDown. 0 means 1 GiB; lake.catalogMaxSize must not exceed it. Variable: FUNCD_S3GATEWAY_MAX_UPLOAD_BYTES.
s3gateway.masterSecretFilestringThe file of the node master secret, from which funcd derives every S3 key pair and the tokens it gives Functions and engines; funcd reads it with the gateway on or off. Empty means <storage.dataDir>/s3gateway/master.key, which funcd creates when it is missing; a file set here must exist and not be empty. Keep the file at mode 0600 or 0400, owned by funcd's user or root: funcd warns at start when group or others can open it, or when another user owns it. Variable: FUNCD_S3GATEWAY_MASTER_SECRET_FILE.
s3gateway.keyRotationPeriodstring24hHow long a window of the derived S3 key pairs lasts: a pair is valid for one to two windows and never past a restart, and the workers that carry one are replaced before it expires. At least 1h, checked with the gateway off too; with it on, more than 20 times the sum of runtime.supervisionPeriod, runtime.drainGrace, twice runtime.drainPollInterval and 10s. Variable: FUNCD_S3GATEWAY_KEY_ROTATION_PERIOD.
lake.saveIntervalstringHow often a Lake engine saves its catalog after a commit, as a duration from 500ms to 1h. Set, the engine answers each commit at once, and a crash can lose the commits of one interval and of the two saves around it. Empty, each answer waits for a save that covers it. Variable: FUNCD_LAKE_SAVE_INTERVAL.
lake.catalogMaxSizestringThe largest catalog that one Lake may keep in the catalog store, as a size such as 256MiB: a save past it fails, and the Lake shows CatalogSaved False. Empty means 256MiB, or s3gateway.maxUploadBytes when that is smaller. A value of 0, or one above s3gateway.maxUploadBytes, refuses the start. Variable: FUNCD_LAKE_CATALOG_MAX_SIZE.
lake.scratchSizestringThe size of the scratch filesystem that each running Lake engine gets for its catalog copy, its checkpoint copy and its spills, preallocated on the filesystem of storage.dataDir, as a size such as 1GiB. It must be at least twice lake.catalogMaxSize plus 512MiB; empty, it is that sum or 1GiB, whichever is larger. A Lake whose scratch does not fit above storage.minFreeSize stays Pending with ScratchSpaceLacking. Variable: FUNCD_LAKE_SCRATCH_SIZE.
lake.enginePollIntervalstring2sHow often funcd checks again on a Lake whose engine does not answer its readiness probe yet, or whose scratch does not fit yet, as a positive duration. A value above runtime.supervisionPeriod waits only that period. Variable: FUNCD_LAKE_ENGINE_POLL_INTERVAL.
lake.engineProbeTimeoutstring2sHow long one readiness probe of an engine may take, a Lake's engine or a SQL database's, as a positive duration. An engine that answers later counts as not ready. Variable: FUNCD_LAKE_ENGINE_PROBE_TIMEOUT.
workflow.defaultStepTimeoutstring300sHow long one attempt of a function step may run when the step's timeout is unset or 0s. An attempt that runs longer fails, and the step tries again while it has attempts left. Empty or 0s means no limit. Variable: FUNCD_WORKFLOW_DEFAULT_STEP_TIMEOUT.
workflow.defaultRetryinteger, at least 01How many attempts funcd makes at a function step, the first one included, when its retry.maxAttempts is unset. 0 means 1, a single attempt with no retry. Variable: FUNCD_WORKFLOW_DEFAULT_RETRY.
workflow.retentionstring720hHow long funcd keeps a workflow run after it ends. A sweep, every hour or sooner when this is shorter, then deletes the run's record and its WorkflowRun. Empty or 0s keeps them with no time limit. Variable: FUNCD_WORKFLOW_RETENTION.
workflow.payloadLimitinteger, at least 0262144The most bytes that a run's input and each step's output may hold. A larger input is refused with 413 when the WorkflowRun is created, or fails the run with reason PayloadLimitExceeded when a Sensor started it; a larger output fails its step with no retry. 0 means no limit. Variable: FUNCD_WORKFLOW_PAYLOAD_LIMIT.
workflow.maxStepsInFlightinteger, at least 064The most attempts of function steps that all workflow runs have in flight at once; a step waits for a free slot. 0 means no limit. Variable: FUNCD_WORKFLOW_MAX_STEPS_IN_FLIGHT.
workflow.artifactPollIntervalstring5sThe longest wait before funcd checks again a Workflow that waits for a step image to reach its registry, or for a Secret that it declares, as a positive duration. Variable: FUNCD_WORKFLOW_ARTIFACT_POLL_INTERVAL.
workflow.defaultRetryBackoffstring0sHow long a function step waits before its second attempt when its retry.backoff is unset or 0s. Each later wait doubles, up to 1h, and 0s tries again at once. It must be at most 1h. Variable: FUNCD_WORKFLOW_DEFAULT_RETRY_BACKOFF.
workflow.dataDirstringThe directory of the run state, which keeps each workflow run's progress. Empty means <storage.dataDir>/workflow. With storage.mode memory, the run state lives in memory and funcd does not use this directory. Variable: FUNCD_WORKFLOW_DATA_DIR.
job.maxRunninginteger, at least 14The most JobRuns that may hold a worker at once on this node, all Jobs together, at least 1. A run past it waits in Pending with Queued, and a free slot goes to the oldest waiting run whose Job is below its own concurrency. Variable: FUNCD_JOB_MAX_RUNNING.
job.payloadLimitinteger, at least 1262144The most bytes that a JobRun's input, its preview and its result may hold, at least 1. A larger input is refused with 413 when the run is created, and a larger preview or result fails the run with reason PayloadLimitExceeded. Variable: FUNCD_JOB_PAYLOAD_LIMIT.
job.retentionstring720hHow long funcd keeps a JobRun after it ends, as a positive duration; then it deletes the run. Empty means 720h. Variable: FUNCD_JOB_RETENTION.
eventing.deliveryAttemptsinteger, at least 03How many attempts a Sensor makes to deliver an event to an action's target, the first one included, before it keeps the event as a dead letter. 0 means 3. Variable: FUNCD_EVENTING_DELIVERY_ATTEMPTS.
eventing.maxDeliveriesInFlightinteger, at least 132How many Sensor delivery attempts funcd makes at once, across all Sensors. Variable: FUNCD_EVENTING_MAX_DELIVERIES_IN_FLIGHT.
eventing.maxInFlightPerTargetinteger, at least 14How many Sensor delivery attempts funcd makes at once to one Function or Workflow, across all Sensors. It must be at most eventing.maxDeliveriesInFlight. Variable: FUNCD_EVENTING_MAX_IN_FLIGHT_PER_TARGET.
eventing.maxQueuedPerSensorinteger, at least 14096The most deliveries that one Sensor may hold at once, waiting, in flight or between attempts. A delivery past it becomes a dead letter at once, with no attempt. Variable: FUNCD_EVENTING_MAX_QUEUED_PER_SENSOR.
eventing.deadletter.retentionstring720hHow long funcd keeps a dead letter after its delivery last failed. A sweep, every hour or sooner when this is shorter, deletes the older ones. Empty or 0s sets no age limit. Variable: FUNCD_EVENTING_DEADLETTER_RETENTION.
eventing.deadletter.maxEntriesinteger, at least 01000The most dead letters that each namespace keeps. The sweep deletes the oldest ones past it, so a namespace may hold more until the next sweep. 0 means no limit. Variable: FUNCD_EVENTING_DEADLETTER_MAX_ENTRIES.
eventing.eventstore.dataDirstringThe directory of the event store, which keeps the events that Sensors could not deliver, the keys that blob EventSources have seen and the SQL change feed's watermarks. Empty means <storage.dataDir>/eventstore. With storage.mode memory, the event store lives in memory and funcd does not use this directory. Variable: FUNCD_EVENTING_EVENTSTORE_DATA_DIR.
eventing.blobPollIntervalstring15sHow often funcd lists the prefixes that each blob EventSource watches, to fire an event for each new or rewritten object. Empty or 0s means 15s. Variable: FUNCD_EVENTING_BLOB_POLL_INTERVAL.
eventing.bucketRecheckIntervalstring15sHow often funcd checks again whether the Bucket of each blob EventSource, or the SQLDatabase of each sql EventSource, exists, as a positive duration. The EventSource's Ready condition follows what it finds. Variable: FUNCD_EVENTING_BUCKET_RECHECK_INTERVAL.
eventing.deliveryBackoffInitialstring100msHow long a Sensor waits after a failed attempt before it tries the delivery again, as a positive duration. Each later wait doubles, up to eventing.deliveryBackoffMax. Variable: FUNCD_EVENTING_DELIVERY_BACKOFF_INITIAL.
eventing.deliveryBackoffMaxstringThe longest wait between two attempts of a Sensor delivery. Empty means the larger of 10s and eventing.deliveryBackoffInitial, and a set value must be at least eventing.deliveryBackoffInitial. Variable: FUNCD_EVENTING_DELIVERY_BACKOFF_MAX.
invoke.maxNestedInFlightinteger, at least 00The most calls that Functions make over their links to one Function that may be in flight at once; one more gets 429 at once. 0 means 10, and the cap has no off switch. Variable: FUNCD_INVOKE_MAX_NESTED_IN_FLIGHT.
invoke.defaultTimeoutstringHow long a call through the data plane, or an App's hook call, waits for its response to start when its Function sets no spec.timeout, a cold start included; a data-plane call past it gets 504. Empty or 0s means 60s, and it is at most 1h. A call over a link keeps the link's own timeout. Variable: FUNCD_INVOKE_DEFAULT_TIMEOUT.
invoke.activationTimeoutstring30sHow long a call waits for a ready worker when its Function has none, the start of an idle Function included, before it gets 503. Calls that arrive during one start share its clock. It is a positive duration, less than runtime.bootTimeout. Variable: FUNCD_INVOKE_ACTIVATION_TIMEOUT.
invoke.reclaimIntervalstring30sHow often funcd stops the workers of each Function with spec.scaling.minReplicas 0 that has served no call for its spec.scaling.idleTimeout, so such a Function can run up to this long past that timeout. It is a positive duration. Variable: FUNCD_INVOKE_RECLAIM_INTERVAL.
functions.defaultResources.cpustring1The CPU cores that each worker of a Function with no spec.pooling.worker gets when its spec.resources.cpu is empty, such as 0.5 or 2; funcd refuses a value below 0.01. Empty sets no default, so such a worker has no CPU limit. The process runtime enforces no limit. Variable: FUNCD_FUNCTIONS_DEFAULT_CPU.
functions.defaultResources.memorystring512MiThe memory that each worker of a Function with no spec.pooling.worker gets when its spec.resources.memory is empty, a positive size such as 256Mi or 1GiB. Empty sets no default, so such a worker has no memory limit. The process runtime enforces no limit. Variable: FUNCD_FUNCTIONS_DEFAULT_MEMORY.
site.defaultIndexstringindex.htmlThe document that a Site serves for / when its spec.index is empty: a path inside its bundle, with no leading slash. A Site turns Ready only once its bundle holds that document. Variable: FUNCD_SITE_DEFAULT_INDEX.
sql.maxDatabasesPerNamespaceinteger0The most SQLDatabases that one namespace may hold: a create past it gets 400. 0 means 20, and a negative value means no cap. Variable: FUNCD_SQL_MAX_DATABASES_PER_NAMESPACE.
sql.callTimeoutstringHow long one context.sql call of a Function may run before it fails, as a positive duration such as 30s; the database's engine also stops each statement at it. Empty means 30s. Variable: FUNCD_SQL_CALL_TIMEOUT.
sql.changeFeedPortinteger, 0 to 655350The port where funcd takes the row changes that the SQL database engines post, which EventSources of kind sql turn into events. funcd listens on its bridge address under the containerd runtime, else on loopback. 0 means 7075 on the bridge address, and a free port chosen at start on loopback. Variable: FUNCD_SQL_CHANGE_FEED_PORT.
addons.registrieslist of stringsThe registries that an Addon's image may come from, each the image's host, such as ghcr.io, with docker.io for an image that names none. Empty, the default, refuses every Addon. A registry taken out of the list stops no engine, and refuses the Addon's next change. Variable: FUNCD_ADDONS_REGISTRIES=a,b.
addons.maxObjectsPerNamespaceinteger0The most objects of add-ons' engine and engineless kinds that one namespace may hold, all add-ons together: a create past it gets 400. Settings objects do not count. 0 means 20, and a negative value means no cap. Variable: FUNCD_ADDONS_MAX_OBJECTS_PER_NAMESPACE.
addons.maxSettingsPerNamespaceinteger0The most settings objects that one namespace may hold, of every settings kind together: a create past it gets 400. 0 means 200, and a negative value means no cap. Variable: FUNCD_ADDONS_MAX_SETTINGS_PER_NAMESPACE.
addons.callTimeoutstringHow long a Function's call of an add-on object's engine waits for the answer, through ctx.addon.fetch or the add-on proxy, as a positive duration such as 10s; a call past it gets 503. Empty means 10s. Variable: FUNCD_ADDONS_CALL_TIMEOUT.
addons.callPayloadLimitinteger, at least 00The largest request body and the largest answer body, in bytes, of a Function's call of an add-on object's engine: a larger one gets 413. 0 means 1 MiB. Variable: FUNCD_ADDONS_CALL_PAYLOAD_LIMIT.
addons.settingsTimeoutstringHow long funcd waits for a settings kind's Function to answer a call with one target's settings objects, as a positive duration such as 30s: past it the call fails, each object of the call reports ReconcileFailed, and funcd calls again after a backoff. Empty means 30s. Variable: FUNCD_ADDONS_SETTINGS_TIMEOUT.
volumes.capacityBytesinteger, at least 00The size in bytes of the one image that holds every Function volume on the containerd runtime; funcd preallocates it under storage.dataDir, or in a temporary directory with storage.mode memory, and needs root to mount it. 0 turns volumes off, as the process runtime always does: an apply of a Function with a volume is then refused, and one stored before turns Failed with the reason VolumesOff. A larger value grows the image at the next start, and a smaller one stops funcd from starting. Set at most one of this key and volumes.capacity. Variable: FUNCD_VOLUMES_CAPACITY_BYTES.
volumes.capacitystringThe size of the volume image as digits with an optional binary unit, Ki, Mi, Gi or Ti, with or without a B, such as 64Gi: the same as volumes.capacityBytes. Set at most one of the two. Variable: FUNCD_VOLUMES_CAPACITY.
app.upgradeTimeoutstringHow long an App's new revision has to get every part ready and switch, counted from the latest of its start, the App's resume, a hold's release and the end of its last pre-hook call. A revision that runs out turns Failed, and the current one keeps serving. Empty means 5m, or twice runtime.bootTimeout when that is longer; a set value must be more than runtime.bootTimeout. Variable: FUNCD_APP_UPGRADE_TIMEOUT.
app.revisionHistoryinteger, 1 to 10010How many AppRevisions an App keeps besides its current one; funcd deletes the older ones. Variable: FUNCD_APP_REVISION_HISTORY.
health.storageProbeIntervalstring10sHow often funcd reads one key of the KV engine and one of the blob store to check that each answers; with an S3 blob.target, each blob read is one request. While a read fails or runs late, every KVStore, or every Bucket, is Degraded with the reason StorageUnreachable. It is a positive duration, more than health.storageProbeTimeout. Variable: FUNCD_HEALTH_STORAGE_PROBE_INTERVAL.
health.storageProbeTimeoutstring2sHow long one storage read may take before it counts as failed; one late read is enough to make the stores Degraded. It is a positive duration, less than health.storageProbeInterval. Variable: FUNCD_HEALTH_STORAGE_PROBE_TIMEOUT.

funcd

funcd [flags]

funcd — the single-binary serverless platform daemon
FlagTypeDefaultDescription
--configstringpath to funcdconfig.yaml (else $FUNCD_CONFIG, ./funcdconfig.yaml, /etc/funcd/funcdconfig.yaml)
--memoryboolfalsekeep the platform's data in memory, lost when funcd stops (storage.mode memory); working files such as sockets still go under storage.dataDir; default is file-backed/durable

funcd bench

funcd bench [flags]

bench runs the funcd sustainability harness in-process by default (memory+file substrate, RSS). --containerd runs only the cgroup-footprint lane; --doctor reports whether the containerd lane can run and warns on a live daemon (it never installs anything). --containerd and --doctor are mutually exclusive. Run it on a dedicated/idle box.
FlagTypeDefaultDescription
--backendsstringmemory,filecomma-separated substrates
--cni-bin-dirstring/opt/cni/binCNI plugin dir (with --containerd)
--cni-conf-dirstring/etc/cni/net.dCNI conflist dir (with --containerd)
--concurrencyint8load workers
--containerdboolfalserun only the containerd cgroup-footprint lane (Linux + root + containerd/crun/CNI + curated image)
--containerd-socketstringexternal containerd socket (with --containerd); "" (default) = funcd brings its own privately-managed containerd
--densityint5extra warm functions for the density sweep
--doctorboolfalsereport whether the lanes can run + warn on a live daemon — checks only, never installs/spins a VM/ships Lima
--durationduration5sload phase per backend
--image-prefixstringfuncd/runtime-curated image prefix (with --containerd)
--mem-budget-mbint16384function-memory budget for the verdict
--outstringbenchoutput dir for the report
--pool-shimstringpath to the pooled worker_threads shim (default: the embedded pool shim; a missing path skips the comparison)
--pythonstringpython ≥3.14 for the Python pool comparison; default auto-detect, none found ⇒ skip
--shimstringpath to the node runtime shim (default: the embedded shim)
--snapshotterstringoverlayfscontainerd snapshotter (with --containerd)
--subnet-cidrstring10.63.0.0/16lateral bridge subnet (with --containerd)
--target-fnsint100agents to size for

funcd completion

funcd completion

Generate the autocompletion script for funcd for the specified shell.
See each sub-command's help for details on how to use the generated script.

funcd completion bash

funcd completion bash

Generate the autocompletion script for the bash shell.

This script depends on the 'bash-completion' package.
If it is not installed already, you can install it via your OS's package manager.

To load completions in your current shell session:

	source <(funcd completion bash)

To load completions for every new session, execute once:

#### Linux:

	funcd completion bash > /etc/bash_completion.d/funcd

#### macOS:

	funcd completion bash > $(brew --prefix)/etc/bash_completion.d/funcd

You will need to start a new shell for this setup to take effect.
FlagTypeDefaultDescription
--no-descriptionsboolfalsedisable completion descriptions

funcd completion fish

funcd completion fish [flags]

Generate the autocompletion script for the fish shell.

To load completions in your current shell session:

	funcd completion fish | source

To load completions for every new session, execute once:

	funcd completion fish > ~/.config/fish/completions/funcd.fish

You will need to start a new shell for this setup to take effect.
FlagTypeDefaultDescription
--no-descriptionsboolfalsedisable completion descriptions

funcd completion powershell

funcd completion powershell [flags]

Generate the autocompletion script for powershell.

To load completions in your current shell session:

	funcd completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command
to your powershell profile.
FlagTypeDefaultDescription
--no-descriptionsboolfalsedisable completion descriptions

funcd completion zsh

funcd completion zsh [flags]

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need
to enable it.  You can execute the following once:

	echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

	source <(funcd completion zsh)

To load completions for every new session, execute once:

#### Linux:

	funcd completion zsh > "${fpath[1]}/_funcd"

#### macOS:

	funcd completion zsh > $(brew --prefix)/share/zsh/site-functions/_funcd

You will need to start a new shell for this setup to take effect.
FlagTypeDefaultDescription
--no-descriptionsboolfalsedisable completion descriptions

funcd help

funcd help [command]

Help provides help for any command in the application.
Simply type funcd help [path to command] for full details.

funcd install

funcd install [flags]

install lays down crun + the private containerd and writes + enables ONE funcd.service systemd unit (funcd is the service; containerd is its managed child — no separate unit). It is idempotent. --print dry-runs: it prints the version-stamped unit and touches nothing.
FlagTypeDefaultDescription
--printboolfalsedry-run: print the version-stamped funcd.service unit and exit, touching nothing

funcd restore

funcd restore

List, inspect and restore platform backup generations (offline; the restored platform boots held)

funcd restore blob

funcd restore blob [<generation>] [flags]

Restore the blob store: a mirror generation into the empty store, or --at a time on a versioned blob.target
FlagTypeDefaultDescription
--atstringrestore every key of a versioned blob.target to its version at this RFC 3339 time
--configstringpath to funcdconfig.yaml (as the daemon locates it)
--credentials-filestringthe operator's restore credential for an s3:// target (never backup.credentialsFile)
--escrowstringthe escrow directory holding the secrets key and master secret
--fromstringthe backup target to read (default backup.target)
--identitystringArray[]an age identity file that opens the generation (repeatable)
--store-credentials-filestringthe operator's credential for blob.target (default blob.credentialsFile); --at needs the version reads
--timelinestringkeep only this timeline and those it descends from

funcd restore inspect

funcd restore inspect <point> [flags]

Show a generation: manifest, keys needed, version verdict, counts, evidence; one object; a diff
FlagTypeDefaultDescription
--configstringpath to funcdconfig.yaml (as the daemon locates it)
--credentials-filestringthe operator's restore credential for an s3:// target (never backup.credentialsFile)
--diffstringlist per kind the objects added, removed or changed since this point
--escrowstringthe escrow directory holding the secrets key and master secret
--fromstringthe backup target to read (default backup.target)
--identitystringArray[]an age identity file that opens the generation (repeatable)
--kvboolfalseshow a KV point <chain>/<segment> of the kv/ chains
--objectstringprint one object, <Kind>/<namespace>/<name>, for funcdctl apply -f
-o, --outputstringyamloutput format: yaml or json
--reveal-secretsboolfalseprint Secret values (with --object and --secrets-key)
--secrets-keystringthe escrowed secrets key file, to decode Secrets (--object)
--timelinestringkeep only this timeline and those it descends from

funcd restore kv

funcd restore kv [<chain>/<segment>] [flags]

Restore the KV store: a point of the kv/ chains into the empty kvstore.dataDir (default: the newest restorable)
FlagTypeDefaultDescription
--configstringpath to funcdconfig.yaml (as the daemon locates it)
--credentials-filestringthe operator's restore credential for an s3:// target (never backup.credentialsFile)
--escrowstringthe escrow directory holding the secrets key and master secret
--fromstringthe backup target to read (default backup.target)
--identitystringArray[]an age identity file that opens the generation (repeatable)
--timelinestringkeep only this timeline and those it descends from

funcd restore list

funcd restore list [flags]

List the generations as a lineage tree: each timeline under the generation its restore loaded
FlagTypeDefaultDescription
--configstringpath to funcdconfig.yaml (as the daemon locates it)
--credentials-filestringthe operator's restore credential for an s3:// target (never backup.credentialsFile)
--escrowstringthe escrow directory holding the secrets key and master secret
--fromstringthe backup target to read (default backup.target)
--identitystringArray[]an age identity file that opens the generation (repeatable)
--timelinestringkeep only this timeline and those it descends from

funcd restore run

funcd restore run <point> [flags]

Restore a generation into the empty data directories; funcd then boots held until `funcdctl hold release`
FlagTypeDefaultDescription
--configstringpath to funcdconfig.yaml (as the daemon locates it)
--credentials-filestringthe operator's restore credential for an s3:// target (never backup.credentialsFile)
--escrowstringthe escrow directory holding the secrets key and master secret
--fromstringthe backup target to read (default backup.target)
--identitystringArray[]an age identity file that opens the generation (repeatable)
--new-master-secretboolfalserestore without the generation's master secret: the credentials derived from it change
--timelinestringkeep only this timeline and those it descends from

funcd safe-mode

funcd safe-mode

Leave safe mode (held after repeated unclean starts, stopped after twice as many)

funcd safe-mode reset

funcd safe-mode reset [flags]

Clear the unclean-start count after safe mode stopped funcd; the next start is held
FlagTypeDefaultDescription
--configstringpath to funcdconfig.yaml (as the daemon locates it)

funcd uninstall

funcd uninstall

Remove the funcd systemd service (reverses install; idempotent)

funcd upgrade

funcd upgrade <new-binary> [flags]

Install new-binary over this funcd: a pre-upgrade generation first, the old binary kept at <self>.previous
FlagTypeDefaultDescription
--configstringpath to funcdconfig.yaml (as the daemon locates it)
--no-snapshotboolfalseupgrade without a pre-upgrade generation: no way back to this version
--unitstringfuncd.servicethe systemd unit to stop and start ("" when the operator stops and starts funcd)

funcd version

funcd version

Print the build identity and exit

On this page