Skip to content

Latest commit

 

History

History
213 lines (169 loc) · 6.63 KB

azure-function-on-kubernetes-v0.md

File metadata and controls

213 lines (169 loc) · 6.63 KB
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

AzureFunctionOnKubernetes@0 - Azure Function on Kubernetes v0 task

:::moniker range=">=azure-pipelines-2020"

Deploy Azure function to Kubernetes cluster.

:::moniker-end

Syntax

:::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

Inputs

:::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

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

:::moniker range=">=azure-pipelines-2020"

None.

:::moniker-end

:::moniker range=">azure-pipelines-2022"

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

:::moniker-end

Requirements

:::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