title | description | ms.date | monikerRange |
---|---|---|---|
AzureFunctionOnKubernetes@0 - Azure Function on Kubernetes v0 task |
Deploy Azure function to Kubernetes cluster (task version 0). |
05/14/2024 |
>=azure-pipelines-2020 |
:::moniker range=">=azure-pipelines-2020"
Deploy Azure function to Kubernetes cluster.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
# 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.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
dockerRegistryServiceConnection
- Docker registry service connection
string
. Required.
Select a Docker registry service connection.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
kubernetesServiceConnection
- Kubernetes service connection
string
. Required.
Select a Kubernetes service connection.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
namespace
- Kubernetes namespace
string
.
Kubernetes namespace.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
secretName
- Secret Name
string
.
Kubernetes secret containing function config data (for ex. AzureWebJobsStorage: Azure storage connection string
).
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
dockerHubNamespace
- Docker Hub namespace
string
.
Docker Hub namespace. Required for private Docker Hub repository.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
appName
- Application Name
string
. Required.
Application Name. The Kubernetes objects created use this name. This should follow Kubernetes naming conventions for resource names.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
functionRootDirectory
- Function root directory
string
.
Function root directory. Should contain host.json. Docker build and push is performed from this directory.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
waitForStability
- Wait for stability
boolean
. Default value: true
.
Wait for the Kubernetes objects to reach the desired state.
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
arguments
- Arguments
string
.
Pass arguments to command. Ex:
--no-docker --service-type NodePort.
:::moniker-end
All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.
:::moniker range=">=azure-pipelines-2020"
None.
:::moniker-end
:::moniker range=">azure-pipelines-2022"
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
:::moniker-end
:::moniker range=">=azure-pipelines-2020"
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 |
:::moniker-end