Warning
You are currently viewing v"1.4" of the documentation and it is not the latest. For the most recent documentation, kindly click here.
Azure Blob Storage Click here for latest
Scale applications based on the count of blobs in a given Azure Blob Storage container.
This specification describes the azure-blob
trigger for Azure Blob Storage. It scales based on the count of blobs in a given blob storage container and assumes the worker is responsible for clearing the container by delete/move the blobs once the blob processing completed.
triggers:
- type: azure-blob
metadata:
blobContainerName: functions-blob # Required: Name of Azure Blob Storage container
blobCount: '5' # Optional. Amount of blobs to scale out on. Default: 5 blobs
connection: STORAGE_CONNECTIONSTRING_ENV_NAME # Optional if TriggerAuthentication defined with pod identity or connection string authentication.
blobPrefix: # Optional. Prefix for the Blob. Use this to specify sub path for the blobs if required. Default : ""
blobDelimiter: # Optional. Delimiter for identifying the blob Prefix. Default: "/"
The connection
value is the name of the environment variable your deployment uses to get the connection string. This is usually resolved from a Secret V1
or a ConfigMap V1
collections. env
and envFrom
are both supported.
You can authenticate by using pod identity or connection string authentication.
Connection String Authentication:
connection
- Connection string for Azure Storage Account.apiVersion: keda.k8s.io/v1alpha1
kind: TriggerAuthentication
metadata:
name: azure-blob-auth
spec:
podIdentity:
provider: azure
---
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: azure-blob-scaledobject
namespace: default
spec:
scaleTargetRef:
deploymentName: azureblob-function
triggers:
- type: azure-blob
metadata:
# Required
blobContainerName: functionsblob
# Optional
blobCount: "5" # default 5
blobPrefix: blobsubpath # Default : ""
blobDelimiter: "/" # Default: "/"
authenticationRef:
name: azure-blob-auth # authenticationRef would need either podIdentity or define a connection parameter