AzureFunctionOnKubernetes@0 - Kubernetes v0 上的 Azure 函数任务

将 Azure 函数部署到 Kubernetes 群集。

AzureFunctionOnKubernetes@0任务已弃用,请使用 AzureFunctionOnKubernetes@1 来利用 工作负荷标识联合等最新功能。

将 Azure 函数部署到 Kubernetes 群集。

语法

# 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.

输入

dockerRegistryServiceConnection - Docker 注册表服务连接
string。 必填。

选择 Docker 注册表服务连接。


kubernetesServiceConnection - Kubernetes 服务连接
string。 必填。

选择 Kubernetes 服务连接。


namespace - Kubernetes 命名空间
string

Kubernetes 命名空间。


secretName - 机密名称
string

包含函数配置数据的 Kubernetes 机密(例如 AzureWebJobsStorage:Azure storage connection string)。


dockerHubNamespace - Docker 中心命名空间
string

Docker 中心命名空间。 专用 Docker 中心存储库是必需的。


appName - 应用程序名称
string。 必填。

应用程序名称。 创建的 Kubernetes 对象使用此名称。 这应遵循资源名称的 Kubernetes 命名约定。


functionRootDirectory - 函数根目录
string

函数根目录。 应包含 host.json。 从此目录执行 Docker 生成和推送。


waitForStability - 等待稳定性
boolean。 默认值:true

等待 Kubernetes 对象达到所需状态。


arguments - 参数
string

将参数传递给命令。 例如:
--no-docker --service-type NodePort。


任务控制选项

除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性

输出变量

没有。

注解

注释

有一个较新版本的任务可用,它使用 connectionType 属性以不同方式为 Kubernetes 群集提供附加支持。 有关详细信息,请参阅 AzureFunctionOnKubernetes@1AzureFunctionOnKubernetes@1 备注

要求

要求 说明
管道类型 YAML,经典版本,经典版本
运行时间 代理,DeploymentGroup
需求 没有
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任何
Settable 变量 任何
代理版本 所有支持的代理版本。
任务类别 部署