AzureFunctionOnKubernetes@0 - Azure Function on Kubernetes v0 task
Deploy Azure function to Kubernetes cluster.
Syntax
# Azure Function on Kubernetes v0
# Deploy Azure function to Kubernetes cluster.
- task: AzureFunctionOnKubernetes@0
inputs:
# Service Connections
dockerRegistryServiceConnection: # string. Required. Docker registry service connection.
kubernetesServiceConnection: # string. Required. Kubernetes service connection.
# Commands
#namespace: # string. Kubernetes namespace.
#secretName: # string. Secret Name.
#dockerHubNamespace: # string. Docker Hub namespace.
appName: # string. Required. Application Name.
#functionRootDirectory: # string. Function root directory.
#waitForStability: true # boolean. Wait for stability. Default: true.
#arguments: # string. Arguments.
Inputs
dockerRegistryServiceConnection
- Docker registry service connection
string
. Required.
Select a Docker registry service connection.
kubernetesServiceConnection
- Kubernetes service connection
string
. Required.
Select a Kubernetes service connection.
namespace
- Kubernetes namespace
string
.
Kubernetes namespace.
secretName
- Secret Name
string
.
Kubernetes secret containing function config data (for ex. AzureWebJobsStorage: Azure storage connection string
).
dockerHubNamespace
- Docker Hub namespace
string
.
Docker Hub namespace. Required for private Docker Hub repository.
appName
- Application Name
string
. Required.
Application Name. The Kubernetes objects created use this name. This should follow Kubernetes naming conventions for resource names.
functionRootDirectory
- Function root directory
string
.
Function root directory. Should contain host.json. Docker build and push is performed from this directory.
waitForStability
- Wait for stability
boolean
. Default value: true
.
Wait for the Kubernetes objects to reach the desired state.
arguments
- Arguments
string
.
Pass arguments to command. Ex:
--no-docker --service-type NodePort.
Task control options
All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.
Output variables
None.
Remarks
Note
There is a newer version of this task available that provides additional support for targetting a Kubernetes cluster in different ways, using the connectionType
property. For more information, see AzureFunctionOnKubernetes@1 and AzureFunctionOnKubernetes@1 remarks
Requirements
Requirement | Description |
---|---|
Pipeline types | YAML, Classic build, Classic release |
Runs on | Agent, DeploymentGroup |
Demands | None |
Capabilities | This task does not satisfy any demands for subsequent tasks in the job. |
Command restrictions | Any |
Settable variables | Any |
Agent version | All supported agent versions. |
Task category | Deploy |
Athugasemdir
https://aka.ms/ContentUserFeedback.
Væntanlegt: Á árinu 2024 munum við hætta með GitHub-mál sem ábendingaleið fyrir efni og skipta því út fyrir nýtt ábendingakerfi. Frekari upplýsingar er að finna hér:Senda inn og skoða endurgjöf fyrir