你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.KubernetesConfiguration fluxConfigurations 2022-01-01-preview
Bicep 资源定义
可以使用目标操作部署 fluxConfigurations 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.KubernetesConfiguration/fluxConfigurations 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.KubernetesConfiguration/fluxConfigurations@2022-01-01-preview' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
bucket: {
accessKey: 'string'
bucketName: 'string'
insecure: bool
localAuthRef: 'string'
syncIntervalInSeconds: int
timeoutInSeconds: int
url: 'string'
}
configurationProtectedSettings: {
{customized property}: 'string'
}
gitRepository: {
httpsCACert: 'string'
httpsUser: 'string'
localAuthRef: 'string'
repositoryRef: {
branch: 'string'
commit: 'string'
semver: 'string'
tag: 'string'
}
sshKnownHosts: 'string'
syncIntervalInSeconds: int
timeoutInSeconds: int
url: 'string'
}
kustomizations: {
{customized property}: {
dependsOn: [
{
kustomizationName: 'string'
}
]
force: bool
path: 'string'
prune: bool
retryIntervalInSeconds: int
syncIntervalInSeconds: int
timeoutInSeconds: int
}
}
namespace: 'string'
scope: 'string'
sourceKind: 'string'
suspend: bool
}
}
属性值
BucketDefinition
名字 |
描述 |
价值 |
accessKey |
用于安全访问 S3 存储桶的纯文本访问密钥 |
字符串 |
bucketName |
要从 flux 配置的 URL 终结点同步的存储桶名称。 |
字符串 |
不安全的 |
指定在从 S3 存储桶中将数据扑出时是否使用不安全的通信。 |
bool |
localAuthRef |
Kubernetes 群集上用作身份验证机密的本地机密的名称,而不是托管或用户提供的配置机密。 |
字符串 |
syncIntervalInSeconds |
重新协调群集 git 存储库源与远程的间隔。 |
int |
timeoutInSeconds |
尝试将群集 git 存储库源与远程协调的最长时间。 |
int |
url |
要同步的 flux 配置 S3 存储桶的 URL。 |
字符串 |
DependsOnDefinition
名字 |
描述 |
价值 |
kustomizationName |
声明依赖的 kustomization 的名称 |
字符串 |
FluxConfigurationProperties
FluxConfigurationPropertiesConfigurationProtectedSettings
FluxConfigurationPropertiesKustomizations
GitRepositoryDefinition
名字 |
描述 |
价值 |
httpsCACert |
用于通过 HTTPS 访问 git 专用 git 存储库的 Base64 编码 HTTPS 证书颁发机构内容 |
字符串 |
httpsUser |
用于通过 HTTPS 访问专用 git 存储库的纯文本 HTTPS 用户名 |
字符串 |
localAuthRef |
Kubernetes 群集上用作身份验证机密的本地机密的名称,而不是托管或用户提供的配置机密。 |
字符串 |
repositoryRef |
GitRepository 对象的源引用。 |
RepositoryRefDefinition |
sshKnownHosts |
Base64 编码known_hosts值,其中包含通过 SSH 访问专用 git 存储库所需的公钥 |
字符串 |
syncIntervalInSeconds |
重新协调群集 git 存储库源与远程的间隔。 |
int |
timeoutInSeconds |
尝试将群集 git 存储库源与远程协调的最长时间。 |
int |
url |
要同步的 flux 配置 git 存储库的 URL。 |
字符串 |
KustomizationDefinition
名字 |
描述 |
价值 |
dependsOn |
指定此 Kustomization 依赖的其他 Kustomization。 在完成其对帐之前,此 Kustomization 不会协调。 |
DependsOnDefinition[] |
力 |
由于不可变字段更改,修补失败时,启用/禁用在群集上重新创建 Kubernetes 资源。 |
bool |
路径 |
要在群集上协调的源引用中的路径。 |
字符串 |
修剪 |
启用/禁用此 Kustomization 创建的 Kubernetes 对象的垃圾回收。 |
bool |
retryIntervalInSeconds |
在对帐失败时重新协调群集上的 Kustomization 的间隔。 |
int |
syncIntervalInSeconds |
重新协调群集上的 Kustomization 的间隔。 |
int |
timeoutInSeconds |
尝试协调群集上的 Kustomization 的最长时间。 |
int |
Microsoft.KubernetesConfiguration/fluxConfigurations
RepositoryRefDefinition
名字 |
描述 |
价值 |
分支 |
要签出的 git 存储库分支名称。 |
字符串 |
犯 |
要签出的提交 SHA。 此值必须与分支名称结合使用才能有效。 这优先于 semver。 |
字符串 |
semver |
用于与 git 存储库标记匹配的 semver 范围。 这优先于标记。 |
字符串 |
标记 |
要签出的 git 存储库标记名称。 这优先于分支。 |
字符串 |
ARM 模板资源定义
可以使用目标操作部署 fluxConfigurations 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.KubernetesConfiguration/fluxConfigurations 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.KubernetesConfiguration/fluxConfigurations",
"apiVersion": "2022-01-01-preview",
"name": "string",
"properties": {
"bucket": {
"accessKey": "string",
"bucketName": "string",
"insecure": "bool",
"localAuthRef": "string",
"syncIntervalInSeconds": "int",
"timeoutInSeconds": "int",
"url": "string"
},
"configurationProtectedSettings": {
"{customized property}": "string"
},
"gitRepository": {
"httpsCACert": "string",
"httpsUser": "string",
"localAuthRef": "string",
"repositoryRef": {
"branch": "string",
"commit": "string",
"semver": "string",
"tag": "string"
},
"sshKnownHosts": "string",
"syncIntervalInSeconds": "int",
"timeoutInSeconds": "int",
"url": "string"
},
"kustomizations": {
"{customized property}": {
"dependsOn": [
{
"kustomizationName": "string"
}
],
"force": "bool",
"path": "string",
"prune": "bool",
"retryIntervalInSeconds": "int",
"syncIntervalInSeconds": "int",
"timeoutInSeconds": "int"
}
},
"namespace": "string",
"scope": "string",
"sourceKind": "string",
"suspend": "bool"
}
}
属性值
BucketDefinition
名字 |
描述 |
价值 |
accessKey |
用于安全访问 S3 存储桶的纯文本访问密钥 |
字符串 |
bucketName |
要从 flux 配置的 URL 终结点同步的存储桶名称。 |
字符串 |
不安全的 |
指定在从 S3 存储桶中将数据扑出时是否使用不安全的通信。 |
bool |
localAuthRef |
Kubernetes 群集上用作身份验证机密的本地机密的名称,而不是托管或用户提供的配置机密。 |
字符串 |
syncIntervalInSeconds |
重新协调群集 git 存储库源与远程的间隔。 |
int |
timeoutInSeconds |
尝试将群集 git 存储库源与远程协调的最长时间。 |
int |
url |
要同步的 flux 配置 S3 存储桶的 URL。 |
字符串 |
DependsOnDefinition
名字 |
描述 |
价值 |
kustomizationName |
声明依赖的 kustomization 的名称 |
字符串 |
FluxConfigurationProperties
FluxConfigurationPropertiesConfigurationProtectedSettings
FluxConfigurationPropertiesKustomizations
GitRepositoryDefinition
名字 |
描述 |
价值 |
httpsCACert |
用于通过 HTTPS 访问 git 专用 git 存储库的 Base64 编码 HTTPS 证书颁发机构内容 |
字符串 |
httpsUser |
用于通过 HTTPS 访问专用 git 存储库的纯文本 HTTPS 用户名 |
字符串 |
localAuthRef |
Kubernetes 群集上用作身份验证机密的本地机密的名称,而不是托管或用户提供的配置机密。 |
字符串 |
repositoryRef |
GitRepository 对象的源引用。 |
RepositoryRefDefinition |
sshKnownHosts |
Base64 编码known_hosts值,其中包含通过 SSH 访问专用 git 存储库所需的公钥 |
字符串 |
syncIntervalInSeconds |
重新协调群集 git 存储库源与远程的间隔。 |
int |
timeoutInSeconds |
尝试将群集 git 存储库源与远程协调的最长时间。 |
int |
url |
要同步的 flux 配置 git 存储库的 URL。 |
字符串 |
KustomizationDefinition
名字 |
描述 |
价值 |
dependsOn |
指定此 Kustomization 依赖的其他 Kustomization。 在完成其对帐之前,此 Kustomization 不会协调。 |
DependsOnDefinition[] |
力 |
由于不可变字段更改,修补失败时,启用/禁用在群集上重新创建 Kubernetes 资源。 |
bool |
路径 |
要在群集上协调的源引用中的路径。 |
字符串 |
修剪 |
启用/禁用此 Kustomization 创建的 Kubernetes 对象的垃圾回收。 |
bool |
retryIntervalInSeconds |
在对帐失败时重新协调群集上的 Kustomization 的间隔。 |
int |
syncIntervalInSeconds |
重新协调群集上的 Kustomization 的间隔。 |
int |
timeoutInSeconds |
尝试协调群集上的 Kustomization 的最长时间。 |
int |
Microsoft.KubernetesConfiguration/fluxConfigurations
名字 |
描述 |
价值 |
apiVersion |
API 版本 |
'2022-01-01-preview' |
名字 |
资源名称 |
string (必需) |
性能 |
用于创建 Flux 配置资源的属性 |
FluxConfigurationProperties |
类型 |
资源类型 |
“Microsoft.KubernetesConfiguration/fluxConfigurations” |
RepositoryRefDefinition
名字 |
描述 |
价值 |
分支 |
要签出的 git 存储库分支名称。 |
字符串 |
犯 |
要签出的提交 SHA。 此值必须与分支名称结合使用才能有效。 这优先于 semver。 |
字符串 |
semver |
用于与 git 存储库标记匹配的 semver 范围。 这优先于标记。 |
字符串 |
标记 |
要签出的 git 存储库标记名称。 这优先于分支。 |
字符串 |
可以使用目标操作部署 fluxConfigurations 资源类型:
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
若要创建 Microsoft.KubernetesConfiguration/fluxConfigurations 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.KubernetesConfiguration/fluxConfigurations@2022-01-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
bucket = {
accessKey = "string"
bucketName = "string"
insecure = bool
localAuthRef = "string"
syncIntervalInSeconds = int
timeoutInSeconds = int
url = "string"
}
configurationProtectedSettings = {
{customized property} = "string"
}
gitRepository = {
httpsCACert = "string"
httpsUser = "string"
localAuthRef = "string"
repositoryRef = {
branch = "string"
commit = "string"
semver = "string"
tag = "string"
}
sshKnownHosts = "string"
syncIntervalInSeconds = int
timeoutInSeconds = int
url = "string"
}
kustomizations = {
{customized property} = {
dependsOn = [
{
kustomizationName = "string"
}
]
force = bool
path = "string"
prune = bool
retryIntervalInSeconds = int
syncIntervalInSeconds = int
timeoutInSeconds = int
}
}
namespace = "string"
scope = "string"
sourceKind = "string"
suspend = bool
}
})
}
属性值
BucketDefinition
名字 |
描述 |
价值 |
accessKey |
用于安全访问 S3 存储桶的纯文本访问密钥 |
字符串 |
bucketName |
要从 flux 配置的 URL 终结点同步的存储桶名称。 |
字符串 |
不安全的 |
指定在从 S3 存储桶中将数据扑出时是否使用不安全的通信。 |
bool |
localAuthRef |
Kubernetes 群集上用作身份验证机密的本地机密的名称,而不是托管或用户提供的配置机密。 |
字符串 |
syncIntervalInSeconds |
重新协调群集 git 存储库源与远程的间隔。 |
int |
timeoutInSeconds |
尝试将群集 git 存储库源与远程协调的最长时间。 |
int |
url |
要同步的 flux 配置 S3 存储桶的 URL。 |
字符串 |
DependsOnDefinition
名字 |
描述 |
价值 |
kustomizationName |
声明依赖的 kustomization 的名称 |
字符串 |
FluxConfigurationProperties
FluxConfigurationPropertiesConfigurationProtectedSettings
FluxConfigurationPropertiesKustomizations
GitRepositoryDefinition
名字 |
描述 |
价值 |
httpsCACert |
用于通过 HTTPS 访问 git 专用 git 存储库的 Base64 编码 HTTPS 证书颁发机构内容 |
字符串 |
httpsUser |
用于通过 HTTPS 访问专用 git 存储库的纯文本 HTTPS 用户名 |
字符串 |
localAuthRef |
Kubernetes 群集上用作身份验证机密的本地机密的名称,而不是托管或用户提供的配置机密。 |
字符串 |
repositoryRef |
GitRepository 对象的源引用。 |
RepositoryRefDefinition |
sshKnownHosts |
Base64 编码known_hosts值,其中包含通过 SSH 访问专用 git 存储库所需的公钥 |
字符串 |
syncIntervalInSeconds |
重新协调群集 git 存储库源与远程的间隔。 |
int |
timeoutInSeconds |
尝试将群集 git 存储库源与远程协调的最长时间。 |
int |
url |
要同步的 flux 配置 git 存储库的 URL。 |
字符串 |
KustomizationDefinition
名字 |
描述 |
价值 |
dependsOn |
指定此 Kustomization 依赖的其他 Kustomization。 在完成其对帐之前,此 Kustomization 不会协调。 |
DependsOnDefinition[] |
力 |
由于不可变字段更改,修补失败时,启用/禁用在群集上重新创建 Kubernetes 资源。 |
bool |
路径 |
要在群集上协调的源引用中的路径。 |
字符串 |
修剪 |
启用/禁用此 Kustomization 创建的 Kubernetes 对象的垃圾回收。 |
bool |
retryIntervalInSeconds |
在对帐失败时重新协调群集上的 Kustomization 的间隔。 |
int |
syncIntervalInSeconds |
重新协调群集上的 Kustomization 的间隔。 |
int |
timeoutInSeconds |
尝试协调群集上的 Kustomization 的最长时间。 |
int |
Microsoft.KubernetesConfiguration/fluxConfigurations
名字 |
描述 |
价值 |
名字 |
资源名称 |
string (必需) |
parent_id |
要向其应用此扩展资源的资源的 ID。 |
string (必需) |
性能 |
用于创建 Flux 配置资源的属性 |
FluxConfigurationProperties |
类型 |
资源类型 |
“Microsoft.KubernetesConfiguration/fluxConfigurations@2022-01-01-preview” |
RepositoryRefDefinition
名字 |
描述 |
价值 |
分支 |
要签出的 git 存储库分支名称。 |
字符串 |
犯 |
要签出的提交 SHA。 此值必须与分支名称结合使用才能有效。 这优先于 semver。 |
字符串 |
semver |
用于与 git 存储库标记匹配的 semver 范围。 这优先于标记。 |
字符串 |
标记 |
要签出的 git 存储库标记名称。 这优先于分支。 |
字符串 |