Rollout [argoproj.io/v1alpha1]

类型
object
必填
spec

规格

属性类型描述
apiVersionstring
kindstring
metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject
statusobject

.spec

类型
object
属性类型描述
analysisobject
minReadySecondsinteger
pausedboolean
progressDeadlineAbortboolean
progressDeadlineSecondsinteger
replicasinteger
restartAtstring
revisionHistoryLimitinteger
rollbackWindowobject
selectorobject
strategyobject
templateobject
workloadRefobject

.spec.analysis

类型
object
属性类型描述
successfulRunHistoryLimitinteger
unsuccessfulRunHistoryLimitinteger

.spec.rollbackWindow

类型
object
属性类型描述
revisionsinteger

.spec.selector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.selector.matchExpressions

类型
array

.spec.selector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.selector.matchExpressions[].values

类型
array

.spec.selector.matchExpressions[].values[]

类型
string

.spec.selector.matchLabels

类型
object

.spec.strategy

类型
object
属性类型描述
blueGreenobject
canaryobject

.spec.strategy.blueGreen

类型
object
必填
activeService
属性类型描述
abortScaleDownDelaySecondsinteger
activeMetadataobject
activeServicestring
antiAffinityobject
autoPromotionEnabledboolean
autoPromotionSecondsinteger
maxUnavailableinteger|string
postPromotionAnalysisobject
prePromotionAnalysisobject
previewMetadataobject
previewReplicaCountinteger
previewServicestring
scaleDownDelayRevisionLimitinteger
scaleDownDelaySecondsinteger

.spec.strategy.blueGreen.activeMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.blueGreen.activeMetadata.annotations

类型
object

.spec.strategy.blueGreen.activeMetadata.labels

类型
object

.spec.strategy.blueGreen.antiAffinity

类型
object
属性类型描述
preferredDuringSchedulingIgnoredDuringExecutionobject
requiredDuringSchedulingIgnoredDuringExecutionobject

.spec.strategy.blueGreen.antiAffinity.preferredDuringSchedulingIgnoredDuringExecution

类型
object
必填
weight
属性类型描述
weightinteger

.spec.strategy.blueGreen.antiAffinity.requiredDuringSchedulingIgnoredDuringExecution

类型
object

.spec.strategy.blueGreen.postPromotionAnalysis

类型
object
属性类型描述
analysisRunMetadataobject
argsarray
dryRunarray
measurementRetentionarray
templatesarray

.spec.strategy.blueGreen.postPromotionAnalysis.analysisRunMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.blueGreen.postPromotionAnalysis.analysisRunMetadata.annotations

类型
object

.spec.strategy.blueGreen.postPromotionAnalysis.analysisRunMetadata.labels

类型
object

.spec.strategy.blueGreen.postPromotionAnalysis.args

类型
array

.spec.strategy.blueGreen.postPromotionAnalysis.args[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.strategy.blueGreen.postPromotionAnalysis.args[].valueFrom

类型
object
属性类型描述
fieldRefobject
podTemplateHashValuestring

.spec.strategy.blueGreen.postPromotionAnalysis.args[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
fieldPathstring

.spec.strategy.blueGreen.postPromotionAnalysis.dryRun

类型
array

.spec.strategy.blueGreen.postPromotionAnalysis.dryRun[]

类型
object
必填
metricName
属性类型描述
metricNamestring

.spec.strategy.blueGreen.postPromotionAnalysis.measurementRetention

类型
array

.spec.strategy.blueGreen.postPromotionAnalysis.measurementRetention[]

类型
object
必填
limitmetricName
属性类型描述
limitinteger
metricNamestring

.spec.strategy.blueGreen.postPromotionAnalysis.templates

类型
array

.spec.strategy.blueGreen.postPromotionAnalysis.templates[]

类型
object
属性类型描述
clusterScopeboolean
templateNamestring

.spec.strategy.blueGreen.prePromotionAnalysis

类型
object
属性类型描述
analysisRunMetadataobject
argsarray
dryRunarray
measurementRetentionarray
templatesarray

.spec.strategy.blueGreen.prePromotionAnalysis.analysisRunMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.blueGreen.prePromotionAnalysis.analysisRunMetadata.annotations

类型
object

.spec.strategy.blueGreen.prePromotionAnalysis.analysisRunMetadata.labels

类型
object

.spec.strategy.blueGreen.prePromotionAnalysis.args

类型
array

.spec.strategy.blueGreen.prePromotionAnalysis.args[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.strategy.blueGreen.prePromotionAnalysis.args[].valueFrom

类型
object
属性类型描述
fieldRefobject
podTemplateHashValuestring

.spec.strategy.blueGreen.prePromotionAnalysis.args[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
fieldPathstring

.spec.strategy.blueGreen.prePromotionAnalysis.dryRun

类型
array

.spec.strategy.blueGreen.prePromotionAnalysis.dryRun[]

类型
object
必填
metricName
属性类型描述
metricNamestring

.spec.strategy.blueGreen.prePromotionAnalysis.measurementRetention

类型
array

.spec.strategy.blueGreen.prePromotionAnalysis.measurementRetention[]

类型
object
必填
limitmetricName
属性类型描述
limitinteger
metricNamestring

.spec.strategy.blueGreen.prePromotionAnalysis.templates

类型
array

.spec.strategy.blueGreen.prePromotionAnalysis.templates[]

类型
object
属性类型描述
clusterScopeboolean
templateNamestring

.spec.strategy.blueGreen.previewMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.blueGreen.previewMetadata.annotations

类型
object

.spec.strategy.blueGreen.previewMetadata.labels

类型
object

.spec.strategy.canary

类型
object
属性类型描述
abortScaleDownDelaySecondsinteger
analysisobject
antiAffinityobject
canaryMetadataobject
canaryServicestring
dynamicStableScaleboolean
maxSurgeinteger|string
maxUnavailableinteger|string
minPodsPerReplicaSetinteger
pingPongobject
scaleDownDelayRevisionLimitinteger
scaleDownDelaySecondsinteger
stableMetadataobject
stableServicestring
stepsarray
trafficRoutingobject

.spec.strategy.canary.analysis

类型
object
属性类型描述
analysisRunMetadataobject
argsarray
dryRunarray
measurementRetentionarray
startingStepinteger
templatesarray

.spec.strategy.canary.analysis.analysisRunMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.canary.analysis.analysisRunMetadata.annotations

类型
object

.spec.strategy.canary.analysis.analysisRunMetadata.labels

类型
object

.spec.strategy.canary.analysis.args

类型
array

.spec.strategy.canary.analysis.args[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.strategy.canary.analysis.args[].valueFrom

类型
object
属性类型描述
fieldRefobject
podTemplateHashValuestring

.spec.strategy.canary.analysis.args[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
fieldPathstring

.spec.strategy.canary.analysis.dryRun

类型
array

.spec.strategy.canary.analysis.dryRun[]

类型
object
必填
metricName
属性类型描述
metricNamestring

.spec.strategy.canary.analysis.measurementRetention

类型
array

.spec.strategy.canary.analysis.measurementRetention[]

类型
object
必填
limitmetricName
属性类型描述
limitinteger
metricNamestring

.spec.strategy.canary.analysis.templates

类型
array

.spec.strategy.canary.analysis.templates[]

类型
object
属性类型描述
clusterScopeboolean
templateNamestring

.spec.strategy.canary.antiAffinity

类型
object
属性类型描述
preferredDuringSchedulingIgnoredDuringExecutionobject
requiredDuringSchedulingIgnoredDuringExecutionobject

.spec.strategy.canary.antiAffinity.preferredDuringSchedulingIgnoredDuringExecution

类型
object
必填
weight
属性类型描述
weightinteger

.spec.strategy.canary.antiAffinity.requiredDuringSchedulingIgnoredDuringExecution

类型
object

.spec.strategy.canary.canaryMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.canary.canaryMetadata.annotations

类型
object

.spec.strategy.canary.canaryMetadata.labels

类型
object

.spec.strategy.canary.pingPong

类型
object
必填
pingServicepongService
属性类型描述
pingServicestring
pongServicestring

.spec.strategy.canary.stableMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.canary.stableMetadata.annotations

类型
object

.spec.strategy.canary.stableMetadata.labels

类型
object

.spec.strategy.canary.steps

类型
array

.spec.strategy.canary.steps[]

类型
object
属性类型描述
analysisobject
experimentobject
pauseobject
pluginobject
setCanaryScaleobject
setHeaderRouteobject
setMirrorRouteobject
setWeightinteger

.spec.strategy.canary.steps[].analysis

类型
object
属性类型描述
analysisRunMetadataobject
argsarray
dryRunarray
measurementRetentionarray
templatesarray

.spec.strategy.canary.steps[].analysis.analysisRunMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.canary.steps[].analysis.analysisRunMetadata.annotations

类型
object

.spec.strategy.canary.steps[].analysis.analysisRunMetadata.labels

类型
object

.spec.strategy.canary.steps[].analysis.args

类型
array

.spec.strategy.canary.steps[].analysis.args[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.strategy.canary.steps[].analysis.args[].valueFrom

类型
object
属性类型描述
fieldRefobject
podTemplateHashValuestring

.spec.strategy.canary.steps[].analysis.args[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
fieldPathstring

.spec.strategy.canary.steps[].analysis.dryRun

类型
array

.spec.strategy.canary.steps[].analysis.dryRun[]

类型
object
必填
metricName
属性类型描述
metricNamestring

.spec.strategy.canary.steps[].analysis.measurementRetention

类型
array

.spec.strategy.canary.steps[].analysis.measurementRetention[]

类型
object
必填
limitmetricName
属性类型描述
limitinteger
metricNamestring

.spec.strategy.canary.steps[].analysis.templates

类型
array

.spec.strategy.canary.steps[].analysis.templates[]

类型
object
属性类型描述
clusterScopeboolean
templateNamestring

.spec.strategy.canary.steps[].experiment

类型
object
必填
templates
属性类型描述
analysesarray
analysisRunMetadataobject
dryRunarray
durationstring
templatesarray

.spec.strategy.canary.steps[].experiment.analyses

类型
array

.spec.strategy.canary.steps[].experiment.analyses[]

类型
object
必填
nametemplateName
属性类型描述
argsarray
clusterScopeboolean
namestring
requiredForCompletionboolean
templateNamestring

.spec.strategy.canary.steps[].experiment.analyses[].args

类型
array

.spec.strategy.canary.steps[].experiment.analyses[].args[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.strategy.canary.steps[].experiment.analyses[].args[].valueFrom

类型
object
属性类型描述
fieldRefobject
podTemplateHashValuestring

.spec.strategy.canary.steps[].experiment.analyses[].args[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
fieldPathstring

.spec.strategy.canary.steps[].experiment.analysisRunMetadata

类型
object
属性类型描述
annotationsobject
labelsobject

.spec.strategy.canary.steps[].experiment.analysisRunMetadata.annotations

类型
object

.spec.strategy.canary.steps[].experiment.analysisRunMetadata.labels

类型
object

.spec.strategy.canary.steps[].experiment.dryRun

类型
array

.spec.strategy.canary.steps[].experiment.dryRun[]

类型
object
必填
metricName
属性类型描述
metricNamestring

.spec.strategy.canary.steps[].experiment.templates

类型
array

.spec.strategy.canary.steps[].experiment.templates[]

类型
object
必填
namespecRef
属性类型描述
metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

namestring
replicasinteger
selectorobject
serviceobject
specRefstring
weightinteger

.spec.strategy.canary.steps[].experiment.templates[].selector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.strategy.canary.steps[].experiment.templates[].selector.matchExpressions

类型
array

.spec.strategy.canary.steps[].experiment.templates[].selector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.strategy.canary.steps[].experiment.templates[].selector.matchExpressions[].values

类型
array

.spec.strategy.canary.steps[].experiment.templates[].selector.matchExpressions[].values[]

类型
string

.spec.strategy.canary.steps[].experiment.templates[].selector.matchLabels

类型
object

.spec.strategy.canary.steps[].experiment.templates[].service

类型
object
属性类型描述
namestring

.spec.strategy.canary.steps[].pause

类型
object
属性类型描述
durationinteger|string

.spec.strategy.canary.steps[].plugin

类型
object
必填
name
属性类型描述
configobject
namestring

.spec.strategy.canary.steps[].plugin.config

类型
object

.spec.strategy.canary.steps[].setCanaryScale

类型
object
属性类型描述
matchTrafficWeightboolean
replicasinteger
weightinteger

.spec.strategy.canary.steps[].setHeaderRoute

类型
object
属性类型描述
matcharray
namestring

.spec.strategy.canary.steps[].setHeaderRoute.match

类型
array

.spec.strategy.canary.steps[].setHeaderRoute.match[]

类型
object
必填
headerNameheaderValue
属性类型描述
headerNamestring
headerValueobject

.spec.strategy.canary.steps[].setHeaderRoute.match[].headerValue

类型
object
属性类型描述
exactstring
prefixstring
regexstring

.spec.strategy.canary.steps[].setMirrorRoute

类型
object
必填
name
属性类型描述
matcharray
namestring
percentageinteger

.spec.strategy.canary.steps[].setMirrorRoute.match

类型
array

.spec.strategy.canary.steps[].setMirrorRoute.match[]

类型
object
属性类型描述
headersobject
methodobject
pathobject

.spec.strategy.canary.steps[].setMirrorRoute.match[].headers

类型
object

.spec.strategy.canary.steps[].setMirrorRoute.match[].method

类型
object
属性类型描述
exactstring
prefixstring
regexstring

.spec.strategy.canary.steps[].setMirrorRoute.match[].path

类型
object
属性类型描述
exactstring
prefixstring
regexstring

.spec.strategy.canary.trafficRouting

类型
object
属性类型描述
albobject
ambassadorobject
apisixobject
appMeshobject
istioobject
managedRoutesarray
maxTrafficWeightinteger
nginxobject
pluginsobject
smiobject
traefikobject

.spec.strategy.canary.trafficRouting.alb

类型
object
必填
servicePort
属性类型描述
annotationPrefixstring
ingressstring
ingressesarray
rootServicestring
servicePortinteger
stickinessConfigobject

.spec.strategy.canary.trafficRouting.alb.ingresses

类型
array

.spec.strategy.canary.trafficRouting.alb.ingresses[]

类型
string

.spec.strategy.canary.trafficRouting.alb.stickinessConfig

类型
object
必填
durationSecondsenabled
属性类型描述
durationSecondsinteger
enabledboolean

.spec.strategy.canary.trafficRouting.ambassador

类型
object
必填
mappings
属性类型描述
mappingsarray

.spec.strategy.canary.trafficRouting.ambassador.mappings

类型
array

.spec.strategy.canary.trafficRouting.ambassador.mappings[]

类型
string

.spec.strategy.canary.trafficRouting.apisix

类型
object
属性类型描述
routeobject

.spec.strategy.canary.trafficRouting.apisix.route

类型
object
必填
name
属性类型描述
namestring
rulesarray

.spec.strategy.canary.trafficRouting.apisix.route.rules

类型
array

.spec.strategy.canary.trafficRouting.apisix.route.rules[]

类型
string

.spec.strategy.canary.trafficRouting.appMesh

类型
object
属性类型描述
virtualNodeGroupobject
virtualServiceobject

.spec.strategy.canary.trafficRouting.appMesh.virtualNodeGroup

类型
object
必填
canaryVirtualNodeRefstableVirtualNodeRef
属性类型描述
canaryVirtualNodeRefobject
stableVirtualNodeRefobject

.spec.strategy.canary.trafficRouting.appMesh.virtualNodeGroup.canaryVirtualNodeRef

类型
object
必填
name
属性类型描述
namestring

.spec.strategy.canary.trafficRouting.appMesh.virtualNodeGroup.stableVirtualNodeRef

类型
object
必填
name
属性类型描述
namestring

.spec.strategy.canary.trafficRouting.appMesh.virtualService

类型
object
必填
name
属性类型描述
namestring
routesarray

.spec.strategy.canary.trafficRouting.appMesh.virtualService.routes

类型
array

.spec.strategy.canary.trafficRouting.appMesh.virtualService.routes[]

类型
string

.spec.strategy.canary.trafficRouting.istio

类型
object
属性类型描述
destinationRuleobject
virtualServiceobject
virtualServicesarray

.spec.strategy.canary.trafficRouting.istio.destinationRule

类型
object
必填
canarySubsetNamenamestableSubsetName
属性类型描述
canarySubsetNamestring
namestring
stableSubsetNamestring

.spec.strategy.canary.trafficRouting.istio.virtualService

类型
object
必填
name
属性类型描述
namestring
routesarray
tcpRoutesarray
tlsRoutesarray

.spec.strategy.canary.trafficRouting.istio.virtualService.routes

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualService.routes[]

类型
string

.spec.strategy.canary.trafficRouting.istio.virtualService.tcpRoutes

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualService.tcpRoutes[]

类型
object
属性类型描述
portinteger

.spec.strategy.canary.trafficRouting.istio.virtualService.tlsRoutes

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualService.tlsRoutes[]

类型
object
属性类型描述
portinteger
sniHostsarray

.spec.strategy.canary.trafficRouting.istio.virtualService.tlsRoutes[].sniHosts

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualService.tlsRoutes[].sniHosts[]

类型
string

.spec.strategy.canary.trafficRouting.istio.virtualServices

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualServices[]

类型
object
必填
name
属性类型描述
namestring
routesarray
tcpRoutesarray
tlsRoutesarray

.spec.strategy.canary.trafficRouting.istio.virtualServices[].routes

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualServices[].routes[]

类型
string

.spec.strategy.canary.trafficRouting.istio.virtualServices[].tcpRoutes

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualServices[].tcpRoutes[]

类型
object
属性类型描述
portinteger

.spec.strategy.canary.trafficRouting.istio.virtualServices[].tlsRoutes

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualServices[].tlsRoutes[]

类型
object
属性类型描述
portinteger
sniHostsarray

.spec.strategy.canary.trafficRouting.istio.virtualServices[].tlsRoutes[].sniHosts

类型
array

.spec.strategy.canary.trafficRouting.istio.virtualServices[].tlsRoutes[].sniHosts[]

类型
string

.spec.strategy.canary.trafficRouting.managedRoutes

类型
array

.spec.strategy.canary.trafficRouting.managedRoutes[]

类型
object
必填
name
属性类型描述
namestring

.spec.strategy.canary.trafficRouting.nginx

类型
object
属性类型描述
additionalIngressAnnotationsobject
annotationPrefixstring
canaryIngressAnnotationsobject
stableIngressstring
stableIngressesarray

.spec.strategy.canary.trafficRouting.nginx.additionalIngressAnnotations

类型
object

.spec.strategy.canary.trafficRouting.nginx.canaryIngressAnnotations

类型
object

.spec.strategy.canary.trafficRouting.nginx.stableIngresses

类型
array

.spec.strategy.canary.trafficRouting.nginx.stableIngresses[]

类型
string

.spec.strategy.canary.trafficRouting.plugins

类型
object

.spec.strategy.canary.trafficRouting.smi

类型
object
属性类型描述
rootServicestring
trafficSplitNamestring

.spec.strategy.canary.trafficRouting.traefik

类型
object
必填
weightedTraefikServiceName
属性类型描述
weightedTraefikServiceNamestring

.spec.template

类型
object
属性类型描述
metadataObjectMeta

ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

specobject

.spec.template.spec

类型
object
必填
containers
属性类型描述
activeDeadlineSecondsinteger
affinityobject
automountServiceAccountTokenboolean
containersarray
dnsConfigobject
dnsPolicystring
enableServiceLinksboolean
ephemeralContainersarray
hostAliasesarray
hostIPCboolean
hostNetworkboolean
hostPIDboolean
hostUsersboolean
hostnamestring
imagePullSecretsarray
initContainersarray
nodeNamestring
nodeSelectorobject
osobject
overheadobject
preemptionPolicystring
priorityinteger
priorityClassNamestring
readinessGatesarray
resourceClaimsarray
restartPolicystring
runtimeClassNamestring
schedulerNamestring
schedulingGatesarray
securityContextobject
serviceAccountstring
serviceAccountNamestring
setHostnameAsFQDNboolean
shareProcessNamespaceboolean
subdomainstring
terminationGracePeriodSecondsinteger
tolerationsarray
topologySpreadConstraintsarray
volumesarray

.spec.template.spec.affinity

类型
object
属性类型描述
nodeAffinityobject
podAffinityobject
podAntiAffinityobject

.spec.template.spec.affinity.nodeAffinity

类型
object
属性类型描述
preferredDuringSchedulingIgnoredDuringExecutionarray
requiredDuringSchedulingIgnoredDuringExecutionobject

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution

类型
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[]

类型
object
必填
preferenceweight
属性类型描述
preferenceobject
weightinteger

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference

类型
object
属性类型描述
matchExpressionsarray
matchFieldsarray

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions

类型
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values

类型
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields

类型
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values

类型
array

.spec.template.spec.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[].preference.matchFields[].values[]

类型
string

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution

类型
object
必填
nodeSelectorTerms
属性类型描述
nodeSelectorTermsarray

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms

类型
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[]

类型
object
属性类型描述
matchExpressionsarray
matchFieldsarray

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions

类型
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values

类型
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields

类型
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values

类型
array

.spec.template.spec.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[].matchFields[].values[]

类型
string

.spec.template.spec.affinity.podAffinity

类型
object
属性类型描述
preferredDuringSchedulingIgnoredDuringExecutionarray
requiredDuringSchedulingIgnoredDuringExecutionarray

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[]

类型
object
必填
podAffinityTermweight
属性类型描述
podAffinityTermobject
weightinteger

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm

类型
object
必填
topologyKey
属性类型描述
labelSelectorobject
matchLabelKeysarray
mismatchLabelKeysarray
namespaceSelectorobject
namespacesarray
topologyKeystring

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces

类型
array

.spec.template.spec.affinity.podAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]

类型
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[]

类型
object
必填
topologyKey
属性类型描述
labelSelectorobject
matchLabelKeysarray
mismatchLabelKeysarray
namespaceSelectorobject
namespacesarray
topologyKeystring

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces

类型
array

.spec.template.spec.affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]

类型
string

.spec.template.spec.affinity.podAntiAffinity

类型
object
属性类型描述
preferredDuringSchedulingIgnoredDuringExecutionarray
requiredDuringSchedulingIgnoredDuringExecutionarray

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[]

类型
object
必填
podAffinityTermweight
属性类型描述
podAffinityTermobject
weightinteger

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm

类型
object
必填
topologyKey
属性类型描述
labelSelectorobject
matchLabelKeysarray
mismatchLabelKeysarray
namespaceSelectorobject
namespacesarray
topologyKeystring

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.labelSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.matchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.mismatchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaceSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces

类型
array

.spec.template.spec.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[].podAffinityTerm.namespaces[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[]

类型
object
必填
topologyKey
属性类型描述
labelSelectorobject
matchLabelKeysarray
mismatchLabelKeysarray
namespaceSelectorobject
namespacesarray
topologyKeystring

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].labelSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].matchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].mismatchLabelKeys[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaceSelector.matchLabels

类型
object

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces

类型
array

.spec.template.spec.affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[].namespaces[]

类型
string

.spec.template.spec.containers

类型
array

.spec.template.spec.containers[]

类型
object
必填
name
属性类型描述
argsarray
commandarray
envarray
envFromarray
imagestring
imagePullPolicystring
lifecycleobject
livenessProbeobject
namestring
portsarray
readinessProbeobject
resizePolicyarray
resourcesobject
restartPolicystring
securityContextobject
startupProbeobject
stdinboolean
stdinOnceboolean
terminationMessagePathstring
terminationMessagePolicystring
ttyboolean
volumeDevicesarray
volumeMountsarray
workingDirstring

.spec.template.spec.containers[].args

类型
array

.spec.template.spec.containers[].args[]

类型
string

.spec.template.spec.containers[].command

类型
array

.spec.template.spec.containers[].command[]

类型
string

.spec.template.spec.containers[].env

类型
array

.spec.template.spec.containers[].env[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.template.spec.containers[].env[].valueFrom

类型
object
属性类型描述
configMapKeyRefobject
fieldRefobject
resourceFieldRefobject
secretKeyRefobject

.spec.template.spec.containers[].env[].valueFrom.configMapKeyRef

类型
object
必填
key
属性类型描述
keystring
namestring
optionalboolean

.spec.template.spec.containers[].env[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
apiVersionstring
fieldPathstring

.spec.template.spec.containers[].env[].valueFrom.resourceFieldRef

类型
object
必填
resource
属性类型描述
containerNamestring
divisorinteger|string
resourcestring

.spec.template.spec.containers[].env[].valueFrom.secretKeyRef

类型
object
必填
key
属性类型描述
keystring
namestring
optionalboolean

.spec.template.spec.containers[].envFrom

类型
array

.spec.template.spec.containers[].envFrom[]

类型
object
属性类型描述
configMapRefobject
prefixstring
secretRefobject

.spec.template.spec.containers[].envFrom[].configMapRef

类型
object
属性类型描述
namestring
optionalboolean

.spec.template.spec.containers[].envFrom[].secretRef

类型
object
属性类型描述
namestring
optionalboolean

.spec.template.spec.containers[].lifecycle

类型
object
属性类型描述
postStartobject
preStopobject

.spec.template.spec.containers[].lifecycle.postStart

类型
object
属性类型描述
execobject
httpGetobject
sleepobject
tcpSocketobject

.spec.template.spec.containers[].lifecycle.postStart.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.containers[].lifecycle.postStart.exec.command

类型
array

.spec.template.spec.containers[].lifecycle.postStart.exec.command[]

类型
string

.spec.template.spec.containers[].lifecycle.postStart.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.containers[].lifecycle.postStart.httpGet.httpHeaders

类型
array

.spec.template.spec.containers[].lifecycle.postStart.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.containers[].lifecycle.postStart.sleep

类型
object
必填
seconds
属性类型描述
secondsinteger

.spec.template.spec.containers[].lifecycle.postStart.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.containers[].lifecycle.preStop

类型
object
属性类型描述
execobject
httpGetobject
sleepobject
tcpSocketobject

.spec.template.spec.containers[].lifecycle.preStop.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.containers[].lifecycle.preStop.exec.command

类型
array

.spec.template.spec.containers[].lifecycle.preStop.exec.command[]

类型
string

.spec.template.spec.containers[].lifecycle.preStop.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.containers[].lifecycle.preStop.httpGet.httpHeaders

类型
array

.spec.template.spec.containers[].lifecycle.preStop.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.containers[].lifecycle.preStop.sleep

类型
object
必填
seconds
属性类型描述
secondsinteger

.spec.template.spec.containers[].lifecycle.preStop.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.containers[].livenessProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.containers[].livenessProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.containers[].livenessProbe.exec.command

类型
array

.spec.template.spec.containers[].livenessProbe.exec.command[]

类型
string

.spec.template.spec.containers[].livenessProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.containers[].livenessProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.containers[].livenessProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.containers[].livenessProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.containers[].livenessProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.containers[].ports

类型
array

.spec.template.spec.containers[].ports[]

类型
object
必填
containerPort
属性类型描述
containerPortinteger
hostIPstring
hostPortinteger
namestring
protocolstring

.spec.template.spec.containers[].readinessProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.containers[].readinessProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.containers[].readinessProbe.exec.command

类型
array

.spec.template.spec.containers[].readinessProbe.exec.command[]

类型
string

.spec.template.spec.containers[].readinessProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.containers[].readinessProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.containers[].readinessProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.containers[].readinessProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.containers[].readinessProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.containers[].resizePolicy

类型
array

.spec.template.spec.containers[].resizePolicy[]

类型
object
必填
resourceNamerestartPolicy
属性类型描述
resourceNamestring
restartPolicystring

.spec.template.spec.containers[].resources

类型
object
属性类型描述
claimsarray
limits
requests

.spec.template.spec.containers[].resources.claims

类型
array

.spec.template.spec.containers[].resources.claims[]

类型
object
必填
name
属性类型描述
namestring

.spec.template.spec.containers[].securityContext

类型
object
属性类型描述
allowPrivilegeEscalationboolean
capabilitiesobject
privilegedboolean
procMountstring
readOnlyRootFilesystemboolean
runAsGroupinteger
runAsNonRootboolean
runAsUserinteger
seLinuxOptionsobject
seccompProfileobject
windowsOptionsobject

.spec.template.spec.containers[].securityContext.capabilities

类型
object
属性类型描述
addarray
droparray

.spec.template.spec.containers[].securityContext.capabilities.add

类型
array

.spec.template.spec.containers[].securityContext.capabilities.add[]

类型
string

.spec.template.spec.containers[].securityContext.capabilities.drop

类型
array

.spec.template.spec.containers[].securityContext.capabilities.drop[]

类型
string

.spec.template.spec.containers[].securityContext.seLinuxOptions

类型
object
属性类型描述
levelstring
rolestring
typestring
userstring

.spec.template.spec.containers[].securityContext.seccompProfile

类型
object
必填
type
属性类型描述
localhostProfilestring
typestring

.spec.template.spec.containers[].securityContext.windowsOptions

类型
object
属性类型描述
gmsaCredentialSpecstring
gmsaCredentialSpecNamestring
hostProcessboolean
runAsUserNamestring

.spec.template.spec.containers[].startupProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.containers[].startupProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.containers[].startupProbe.exec.command

类型
array

.spec.template.spec.containers[].startupProbe.exec.command[]

类型
string

.spec.template.spec.containers[].startupProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.containers[].startupProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.containers[].startupProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.containers[].startupProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.containers[].startupProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.containers[].volumeDevices

类型
array

.spec.template.spec.containers[].volumeDevices[]

类型
object
必填
devicePathname
属性类型描述
devicePathstring
namestring

.spec.template.spec.containers[].volumeMounts

类型
array

.spec.template.spec.containers[].volumeMounts[]

类型
object
必填
mountPathname
属性类型描述
mountPathstring
mountPropagationstring
namestring
readOnlyboolean
subPathstring
subPathExprstring

.spec.template.spec.dnsConfig

类型
object
属性类型描述
nameserversarray
optionsarray
searchesarray

.spec.template.spec.dnsConfig.nameservers

类型
array

.spec.template.spec.dnsConfig.nameservers[]

类型
string

.spec.template.spec.dnsConfig.options

类型
array

.spec.template.spec.dnsConfig.options[]

类型
object
属性类型描述
namestring
valuestring

.spec.template.spec.dnsConfig.searches

类型
array

.spec.template.spec.dnsConfig.searches[]

类型
string

.spec.template.spec.ephemeralContainers

类型
array

.spec.template.spec.ephemeralContainers[]

类型
object
必填
name
属性类型描述
argsarray
commandarray
envarray
envFromarray
imagestring
imagePullPolicystring
lifecycleobject
livenessProbeobject
namestring
portsarray
readinessProbeobject
resizePolicyarray
resourcesobject
restartPolicystring
securityContextobject
startupProbeobject
stdinboolean
stdinOnceboolean
targetContainerNamestring
terminationMessagePathstring
terminationMessagePolicystring
ttyboolean
volumeDevicesarray
volumeMountsarray
workingDirstring

.spec.template.spec.ephemeralContainers[].args

类型
array

.spec.template.spec.ephemeralContainers[].args[]

类型
string

.spec.template.spec.ephemeralContainers[].command

类型
array

.spec.template.spec.ephemeralContainers[].command[]

类型
string

.spec.template.spec.ephemeralContainers[].env

类型
array

.spec.template.spec.ephemeralContainers[].env[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.template.spec.ephemeralContainers[].env[].valueFrom

类型
object
属性类型描述
configMapKeyRefobject
fieldRefobject
resourceFieldRefobject
secretKeyRefobject

.spec.template.spec.ephemeralContainers[].env[].valueFrom.configMapKeyRef

类型
object
必填
key
属性类型描述
keystring
namestring
optionalboolean

.spec.template.spec.ephemeralContainers[].env[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
apiVersionstring
fieldPathstring

.spec.template.spec.ephemeralContainers[].env[].valueFrom.resourceFieldRef

类型
object
必填
resource
属性类型描述
containerNamestring
divisorinteger|string
resourcestring

.spec.template.spec.ephemeralContainers[].env[].valueFrom.secretKeyRef

类型
object
必填
key
属性类型描述
keystring
namestring
optionalboolean

.spec.template.spec.ephemeralContainers[].envFrom

类型
array

.spec.template.spec.ephemeralContainers[].envFrom[]

类型
object
属性类型描述
configMapRefobject
prefixstring
secretRefobject

.spec.template.spec.ephemeralContainers[].envFrom[].configMapRef

类型
object
属性类型描述
namestring
optionalboolean

.spec.template.spec.ephemeralContainers[].envFrom[].secretRef

类型
object
属性类型描述
namestring
optionalboolean

.spec.template.spec.ephemeralContainers[].lifecycle

类型
object
属性类型描述
postStartobject
preStopobject

.spec.template.spec.ephemeralContainers[].lifecycle.postStart

类型
object
属性类型描述
execobject
httpGetobject
sleepobject
tcpSocketobject

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.exec.command

类型
array

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.exec.command[]

类型
string

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.httpGet.httpHeaders

类型
array

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.sleep

类型
object
必填
seconds
属性类型描述
secondsinteger

.spec.template.spec.ephemeralContainers[].lifecycle.postStart.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.ephemeralContainers[].lifecycle.preStop

类型
object
属性类型描述
execobject
httpGetobject
sleepobject
tcpSocketobject

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.exec.command

类型
array

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.exec.command[]

类型
string

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.httpGet.httpHeaders

类型
array

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.sleep

类型
object
必填
seconds
属性类型描述
secondsinteger

.spec.template.spec.ephemeralContainers[].lifecycle.preStop.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.ephemeralContainers[].livenessProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.ephemeralContainers[].livenessProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.ephemeralContainers[].livenessProbe.exec.command

类型
array

.spec.template.spec.ephemeralContainers[].livenessProbe.exec.command[]

类型
string

.spec.template.spec.ephemeralContainers[].livenessProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.ephemeralContainers[].livenessProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.ephemeralContainers[].livenessProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.ephemeralContainers[].livenessProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.ephemeralContainers[].livenessProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.ephemeralContainers[].ports

类型
array

.spec.template.spec.ephemeralContainers[].ports[]

类型
object
必填
containerPort
属性类型描述
containerPortinteger
hostIPstring
hostPortinteger
namestring
protocolstring

.spec.template.spec.ephemeralContainers[].readinessProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.ephemeralContainers[].readinessProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.ephemeralContainers[].readinessProbe.exec.command

类型
array

.spec.template.spec.ephemeralContainers[].readinessProbe.exec.command[]

类型
string

.spec.template.spec.ephemeralContainers[].readinessProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.ephemeralContainers[].readinessProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.ephemeralContainers[].readinessProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.ephemeralContainers[].readinessProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.ephemeralContainers[].readinessProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.ephemeralContainers[].resizePolicy

类型
array

.spec.template.spec.ephemeralContainers[].resizePolicy[]

类型
object
必填
resourceNamerestartPolicy
属性类型描述
resourceNamestring
restartPolicystring

.spec.template.spec.ephemeralContainers[].resources

类型
object
属性类型描述
claimsarray
limits
requests

.spec.template.spec.ephemeralContainers[].resources.claims

类型
array

.spec.template.spec.ephemeralContainers[].resources.claims[]

类型
object
必填
name
属性类型描述
namestring

.spec.template.spec.ephemeralContainers[].securityContext

类型
object
属性类型描述
allowPrivilegeEscalationboolean
capabilitiesobject
privilegedboolean
procMountstring
readOnlyRootFilesystemboolean
runAsGroupinteger
runAsNonRootboolean
runAsUserinteger
seLinuxOptionsobject
seccompProfileobject
windowsOptionsobject

.spec.template.spec.ephemeralContainers[].securityContext.capabilities

类型
object
属性类型描述
addarray
droparray

.spec.template.spec.ephemeralContainers[].securityContext.capabilities.add

类型
array

.spec.template.spec.ephemeralContainers[].securityContext.capabilities.add[]

类型
string

.spec.template.spec.ephemeralContainers[].securityContext.capabilities.drop

类型
array

.spec.template.spec.ephemeralContainers[].securityContext.capabilities.drop[]

类型
string

.spec.template.spec.ephemeralContainers[].securityContext.seLinuxOptions

类型
object
属性类型描述
levelstring
rolestring
typestring
userstring

.spec.template.spec.ephemeralContainers[].securityContext.seccompProfile

类型
object
必填
type
属性类型描述
localhostProfilestring
typestring

.spec.template.spec.ephemeralContainers[].securityContext.windowsOptions

类型
object
属性类型描述
gmsaCredentialSpecstring
gmsaCredentialSpecNamestring
hostProcessboolean
runAsUserNamestring

.spec.template.spec.ephemeralContainers[].startupProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.ephemeralContainers[].startupProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.ephemeralContainers[].startupProbe.exec.command

类型
array

.spec.template.spec.ephemeralContainers[].startupProbe.exec.command[]

类型
string

.spec.template.spec.ephemeralContainers[].startupProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.ephemeralContainers[].startupProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.ephemeralContainers[].startupProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.ephemeralContainers[].startupProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.ephemeralContainers[].startupProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.ephemeralContainers[].volumeDevices

类型
array

.spec.template.spec.ephemeralContainers[].volumeDevices[]

类型
object
必填
devicePathname
属性类型描述
devicePathstring
namestring

.spec.template.spec.ephemeralContainers[].volumeMounts

类型
array

.spec.template.spec.ephemeralContainers[].volumeMounts[]

类型
object
必填
mountPathname
属性类型描述
mountPathstring
mountPropagationstring
namestring
readOnlyboolean
subPathstring
subPathExprstring

.spec.template.spec.hostAliases

类型
array

.spec.template.spec.hostAliases[]

类型
object
属性类型描述
hostnamesarray
ipstring

.spec.template.spec.hostAliases[].hostnames

类型
array

.spec.template.spec.hostAliases[].hostnames[]

类型
string

.spec.template.spec.imagePullSecrets

类型
array

.spec.template.spec.imagePullSecrets[]

类型
object
属性类型描述
namestring

.spec.template.spec.initContainers

类型
array

.spec.template.spec.initContainers[]

类型
object
必填
name
属性类型描述
argsarray
commandarray
envarray
envFromarray
imagestring
imagePullPolicystring
lifecycleobject
livenessProbeobject
namestring
portsarray
readinessProbeobject
resizePolicyarray
resourcesobject
restartPolicystring
securityContextobject
startupProbeobject
stdinboolean
stdinOnceboolean
terminationMessagePathstring
terminationMessagePolicystring
ttyboolean
volumeDevicesarray
volumeMountsarray
workingDirstring

.spec.template.spec.initContainers[].args

类型
array

.spec.template.spec.initContainers[].args[]

类型
string

.spec.template.spec.initContainers[].command

类型
array

.spec.template.spec.initContainers[].command[]

类型
string

.spec.template.spec.initContainers[].env

类型
array

.spec.template.spec.initContainers[].env[]

类型
object
必填
name
属性类型描述
namestring
valuestring
valueFromobject

.spec.template.spec.initContainers[].env[].valueFrom

类型
object
属性类型描述
configMapKeyRefobject
fieldRefobject
resourceFieldRefobject
secretKeyRefobject

.spec.template.spec.initContainers[].env[].valueFrom.configMapKeyRef

类型
object
必填
key
属性类型描述
keystring
namestring
optionalboolean

.spec.template.spec.initContainers[].env[].valueFrom.fieldRef

类型
object
必填
fieldPath
属性类型描述
apiVersionstring
fieldPathstring

.spec.template.spec.initContainers[].env[].valueFrom.resourceFieldRef

类型
object
必填
resource
属性类型描述
containerNamestring
divisorinteger|string
resourcestring

.spec.template.spec.initContainers[].env[].valueFrom.secretKeyRef

类型
object
必填
key
属性类型描述
keystring
namestring
optionalboolean

.spec.template.spec.initContainers[].envFrom

类型
array

.spec.template.spec.initContainers[].envFrom[]

类型
object
属性类型描述
configMapRefobject
prefixstring
secretRefobject

.spec.template.spec.initContainers[].envFrom[].configMapRef

类型
object
属性类型描述
namestring
optionalboolean

.spec.template.spec.initContainers[].envFrom[].secretRef

类型
object
属性类型描述
namestring
optionalboolean

.spec.template.spec.initContainers[].lifecycle

类型
object
属性类型描述
postStartobject
preStopobject

.spec.template.spec.initContainers[].lifecycle.postStart

类型
object
属性类型描述
execobject
httpGetobject
sleepobject
tcpSocketobject

.spec.template.spec.initContainers[].lifecycle.postStart.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.initContainers[].lifecycle.postStart.exec.command

类型
array

.spec.template.spec.initContainers[].lifecycle.postStart.exec.command[]

类型
string

.spec.template.spec.initContainers[].lifecycle.postStart.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.initContainers[].lifecycle.postStart.httpGet.httpHeaders

类型
array

.spec.template.spec.initContainers[].lifecycle.postStart.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.initContainers[].lifecycle.postStart.sleep

类型
object
必填
seconds
属性类型描述
secondsinteger

.spec.template.spec.initContainers[].lifecycle.postStart.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.initContainers[].lifecycle.preStop

类型
object
属性类型描述
execobject
httpGetobject
sleepobject
tcpSocketobject

.spec.template.spec.initContainers[].lifecycle.preStop.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.initContainers[].lifecycle.preStop.exec.command

类型
array

.spec.template.spec.initContainers[].lifecycle.preStop.exec.command[]

类型
string

.spec.template.spec.initContainers[].lifecycle.preStop.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.initContainers[].lifecycle.preStop.httpGet.httpHeaders

类型
array

.spec.template.spec.initContainers[].lifecycle.preStop.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.initContainers[].lifecycle.preStop.sleep

类型
object
必填
seconds
属性类型描述
secondsinteger

.spec.template.spec.initContainers[].lifecycle.preStop.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.initContainers[].livenessProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.initContainers[].livenessProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.initContainers[].livenessProbe.exec.command

类型
array

.spec.template.spec.initContainers[].livenessProbe.exec.command[]

类型
string

.spec.template.spec.initContainers[].livenessProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.initContainers[].livenessProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.initContainers[].livenessProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.initContainers[].livenessProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.initContainers[].livenessProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.initContainers[].ports

类型
array

.spec.template.spec.initContainers[].ports[]

类型
object
必填
containerPort
属性类型描述
containerPortinteger
hostIPstring
hostPortinteger
namestring
protocolstring

.spec.template.spec.initContainers[].readinessProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.initContainers[].readinessProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.initContainers[].readinessProbe.exec.command

类型
array

.spec.template.spec.initContainers[].readinessProbe.exec.command[]

类型
string

.spec.template.spec.initContainers[].readinessProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.initContainers[].readinessProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.initContainers[].readinessProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.initContainers[].readinessProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.initContainers[].readinessProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.initContainers[].resizePolicy

类型
array

.spec.template.spec.initContainers[].resizePolicy[]

类型
object
必填
resourceNamerestartPolicy
属性类型描述
resourceNamestring
restartPolicystring

.spec.template.spec.initContainers[].resources

类型
object
属性类型描述
claimsarray
limits
requests

.spec.template.spec.initContainers[].resources.claims

类型
array

.spec.template.spec.initContainers[].resources.claims[]

类型
object
必填
name
属性类型描述
namestring

.spec.template.spec.initContainers[].securityContext

类型
object
属性类型描述
allowPrivilegeEscalationboolean
capabilitiesobject
privilegedboolean
procMountstring
readOnlyRootFilesystemboolean
runAsGroupinteger
runAsNonRootboolean
runAsUserinteger
seLinuxOptionsobject
seccompProfileobject
windowsOptionsobject

.spec.template.spec.initContainers[].securityContext.capabilities

类型
object
属性类型描述
addarray
droparray

.spec.template.spec.initContainers[].securityContext.capabilities.add

类型
array

.spec.template.spec.initContainers[].securityContext.capabilities.add[]

类型
string

.spec.template.spec.initContainers[].securityContext.capabilities.drop

类型
array

.spec.template.spec.initContainers[].securityContext.capabilities.drop[]

类型
string

.spec.template.spec.initContainers[].securityContext.seLinuxOptions

类型
object
属性类型描述
levelstring
rolestring
typestring
userstring

.spec.template.spec.initContainers[].securityContext.seccompProfile

类型
object
必填
type
属性类型描述
localhostProfilestring
typestring

.spec.template.spec.initContainers[].securityContext.windowsOptions

类型
object
属性类型描述
gmsaCredentialSpecstring
gmsaCredentialSpecNamestring
hostProcessboolean
runAsUserNamestring

.spec.template.spec.initContainers[].startupProbe

类型
object
属性类型描述
execobject
failureThresholdinteger
grpcobject
httpGetobject
initialDelaySecondsinteger
periodSecondsinteger
successThresholdinteger
tcpSocketobject
terminationGracePeriodSecondsinteger
timeoutSecondsinteger

.spec.template.spec.initContainers[].startupProbe.exec

类型
object
属性类型描述
commandarray

.spec.template.spec.initContainers[].startupProbe.exec.command

类型
array

.spec.template.spec.initContainers[].startupProbe.exec.command[]

类型
string

.spec.template.spec.initContainers[].startupProbe.grpc

类型
object
必填
port
属性类型描述
portinteger
servicestring

.spec.template.spec.initContainers[].startupProbe.httpGet

类型
object
必填
port
属性类型描述
hoststring
httpHeadersarray
pathstring
portinteger|string
schemestring

.spec.template.spec.initContainers[].startupProbe.httpGet.httpHeaders

类型
array

.spec.template.spec.initContainers[].startupProbe.httpGet.httpHeaders[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.initContainers[].startupProbe.tcpSocket

类型
object
必填
port
属性类型描述
hoststring
portinteger|string

.spec.template.spec.initContainers[].volumeDevices

类型
array

.spec.template.spec.initContainers[].volumeDevices[]

类型
object
必填
devicePathname
属性类型描述
devicePathstring
namestring

.spec.template.spec.initContainers[].volumeMounts

类型
array

.spec.template.spec.initContainers[].volumeMounts[]

类型
object
必填
mountPathname
属性类型描述
mountPathstring
mountPropagationstring
namestring
readOnlyboolean
subPathstring
subPathExprstring

.spec.template.spec.nodeSelector

类型
object

.spec.template.spec.os

类型
object
必填
name
属性类型描述
namestring

.spec.template.spec.overhead

类型
object

.spec.template.spec.readinessGates

类型
array

.spec.template.spec.readinessGates[]

类型
object
必填
conditionType
属性类型描述
conditionTypestring

.spec.template.spec.resourceClaims

类型
array

.spec.template.spec.resourceClaims[]

类型
object
必填
name
属性类型描述
namestring
sourceobject

.spec.template.spec.resourceClaims[].source

类型
object
属性类型描述
resourceClaimNamestring
resourceClaimTemplateNamestring

.spec.template.spec.schedulingGates

类型
array

.spec.template.spec.schedulingGates[]

类型
object
必填
name
属性类型描述
namestring

.spec.template.spec.securityContext

类型
object
属性类型描述
fsGroupinteger
fsGroupChangePolicystring
runAsGroupinteger
runAsNonRootboolean
runAsUserinteger
seLinuxOptionsobject
seccompProfileobject
supplementalGroupsarray
sysctlsarray
windowsOptionsobject

.spec.template.spec.securityContext.seLinuxOptions

类型
object
属性类型描述
levelstring
rolestring
typestring
userstring

.spec.template.spec.securityContext.seccompProfile

类型
object
必填
type
属性类型描述
localhostProfilestring
typestring

.spec.template.spec.securityContext.supplementalGroups

类型
array

.spec.template.spec.securityContext.supplementalGroups[]

类型
integer

.spec.template.spec.securityContext.sysctls

类型
array

.spec.template.spec.securityContext.sysctls[]

类型
object
必填
namevalue
属性类型描述
namestring
valuestring

.spec.template.spec.securityContext.windowsOptions

类型
object
属性类型描述
gmsaCredentialSpecstring
gmsaCredentialSpecNamestring
hostProcessboolean
runAsUserNamestring

.spec.template.spec.tolerations

类型
array

.spec.template.spec.tolerations[]

类型
object
属性类型描述
effectstring
keystring
operatorstring
tolerationSecondsinteger
valuestring

.spec.template.spec.topologySpreadConstraints

类型
array

.spec.template.spec.topologySpreadConstraints[]

类型
object
必填
maxSkewtopologyKeywhenUnsatisfiable
属性类型描述
labelSelectorobject
matchLabelKeysarray
maxSkewinteger
minDomainsinteger
nodeAffinityPolicystring
nodeTaintsPolicystring
topologyKeystring
whenUnsatisfiablestring

.spec.template.spec.topologySpreadConstraints[].labelSelector

类型
object
属性类型描述
matchExpressionsarray
matchLabelsobject

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions

类型
array

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[]

类型
object
必填
keyoperator
属性类型描述
keystring
operatorstring
valuesarray

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[].values

类型
array

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchExpressions[].values[]

类型
string

.spec.template.spec.topologySpreadConstraints[].labelSelector.matchLabels

类型
object

.spec.template.spec.topologySpreadConstraints[].matchLabelKeys

类型
array

.spec.template.spec.topologySpreadConstraints[].matchLabelKeys[]

类型
string

.spec.template.spec.volumes

类型
array

.spec.template.spec.volumes[]

类型

.spec.workloadRef

类型
object
属性类型描述
apiVersionstring
kindstring
namestring
scaleDownstring

.status

类型
object
属性类型描述
HPAReplicasinteger
abortboolean
abortedAtstring
albobject
albsarray
availableReplicasinteger
blueGreenobject
canaryobject
collisionCountinteger
conditionsarray
controllerPauseboolean
currentPodHashstring
currentStepHashstring
currentStepIndexinteger
messagestring
observedGenerationstring
pauseConditionsarray
phasestring
promoteFullboolean
readyReplicasinteger
replicasinteger
restartedAtstring
selectorstring
stableRSstring
updatedReplicasinteger
workloadObservedGenerationstring

.status.alb

类型
object
属性类型描述
canaryTargetGroupobject
ingressstring
loadBalancerobject
stableTargetGroupobject

.status.alb.canaryTargetGroup

类型
object
必填
arnname
属性类型描述
arnstring
fullNamestring
namestring

.status.alb.loadBalancer

类型
object
必填
arnname
属性类型描述
arnstring
fullNamestring
namestring

.status.alb.stableTargetGroup

类型
object
必填
arnname
属性类型描述
arnstring
fullNamestring
namestring

.status.albs

类型
array

.status.albs[]

类型
object
属性类型描述
canaryTargetGroupobject
ingressstring
loadBalancerobject
stableTargetGroupobject

.status.albs[].canaryTargetGroup

类型
object
必填
arnname
属性类型描述
arnstring
fullNamestring
namestring

.status.albs[].loadBalancer

类型
object
必填
arnname
属性类型描述
arnstring
fullNamestring
namestring

.status.albs[].stableTargetGroup

类型
object
必填
arnname
属性类型描述
arnstring
fullNamestring
namestring

.status.blueGreen

类型
object
属性类型描述
activeSelectorstring
postPromotionAnalysisRunStatusobject
prePromotionAnalysisRunStatusobject
previewSelectorstring
scaleUpPreviewCheckPointboolean

.status.blueGreen.postPromotionAnalysisRunStatus

类型
object
必填
namestatus
属性类型描述
messagestring
namestring
statusstring

.status.blueGreen.prePromotionAnalysisRunStatus

类型
object
必填
namestatus
属性类型描述
messagestring
namestring
statusstring

.status.canary

类型
object
属性类型描述
currentBackgroundAnalysisRunStatusobject
currentExperimentstring
currentStepAnalysisRunStatusobject
stablePingPongstring
stepPluginStatusesarray
weightsobject

.status.canary.currentBackgroundAnalysisRunStatus

类型
object
必填
namestatus
属性类型描述
messagestring
namestring
statusstring

.status.canary.currentStepAnalysisRunStatus

类型
object
必填
namestatus
属性类型描述
messagestring
namestring
statusstring

.status.canary.stepPluginStatuses

类型
array

.status.canary.stepPluginStatuses[]

类型
object
必填
indexnameoperation
属性类型描述
backoffstring
disabledboolean
executionsinteger
finishedAtstring
indexinteger
messagestring
namestring
operationstring
phasestring
startedAtstring
statusobject
updatedAtstring

.status.canary.stepPluginStatuses[].status

类型
object

.status.canary.weights

类型
object
必填
canarystable
属性类型描述
additionalarray
canaryobject
stableobject
verifiedboolean

.status.canary.weights.additional

类型
array

.status.canary.weights.additional[]

类型
object
必填
weight
属性类型描述
podTemplateHashstring
serviceNamestring
weightinteger

.status.canary.weights.canary

类型
object
必填
weight
属性类型描述
podTemplateHashstring
serviceNamestring
weightinteger

.status.canary.weights.stable

类型
object
必填
weight
属性类型描述
podTemplateHashstring
serviceNamestring
weightinteger

.status.conditions

类型
array

.status.conditions[]

类型
object
必填
lastTransitionTimelastUpdateTimemessagereasonstatustype
属性类型描述
lastTransitionTimestring
lastUpdateTimestring
messagestring
reasonstring
statusstring
typestring

.status.pauseConditions

类型
array

.status.pauseConditions[]

类型
object
必填
reasonstartTime
属性类型描述
reasonstring
startTimestring

API 端点

可用的 API 端点如下:

  • /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts
    • DELETE: delete collection of Rollout
    • GET: list objects of kind Rollout
    • POST: create a new Rollout
  • /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
    • DELETE: delete the specified Rollout
    • GET: read the specified Rollout
    • PATCH: partially update the specified Rollout
    • PUT: replace the specified Rollout
  • /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/status
    • GET: read status of the specified Rollout
    • PATCH: partially update status of the specified Rollout
    • PUT: replace status of the specified Rollout
  • /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/scale
    • GET: read scale of the specified Rollout
    • PATCH: partially update scale of the specified Rollout
    • PUT: replace scale of the specified Rollout

/kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts

HTTP 方法
DELETE
描述
delete collection of Rollout
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind Rollout
HTTP 响应
HTTP 状态码响应体
200 - OKRolloutList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyRollout schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKRollout schema
201 - CreatedRollout schema
202 - AcceptedRollout schema
401 - UnauthorizedEmpty

/kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}

HTTP 方法
DELETE
描述
delete the specified Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified Rollout
HTTP 响应
HTTP 状态码响应体
200 - OKRollout schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKRollout schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyRollout schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKRollout schema
201 - CreatedRollout schema
401 - UnauthorizedEmpty

/kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/status

HTTP 方法
GET
描述
read status of the specified Rollout
HTTP 响应
HTTP 状态码响应体
200 - OKRollout schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKRollout schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyRollout schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKRollout schema
201 - CreatedRollout schema
401 - UnauthorizedEmpty

/kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/scale

HTTP 方法
GET
描述
read scale of the specified Rollout
HTTP 响应
HTTP 状态码响应体
200 - OKScale schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update scale of the specified Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 方法
PUT
描述
replace scale of the specified Rollout
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyScale schemaapplication/json formatted

API usage

The Argo Rollouts kubectl plugin operates on the namespaced Rollout custom resource. The API server path for a Rollout is:

/kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts

Use a bearer token in the Authorization header. Use application/merge-patch+json for the merge patches below and application/json-patch+json for the JSON Patch used by undo.

Command-to-API mapping

Plugin commandKubernetes API request
get rolloutGET the Rollout and list/watch its related resources.
list rolloutsGET the namespaced Rollout collection.
pausePATCH the Rollout with spec.paused=true.
resumeFor legacy clients, clear spec.paused and status.pauseConditions; see Resume a rollout. The v1.2.0 source uses promote as the registered command.
promoteGET the Rollout, then patch spec.paused, status.pauseConditions, status.currentStepIndex, or status.promoteFull according to the current rollout state.
abortPATCH the Rollout status with status.abort=true.
set imageGET the Rollout, then PUT the Rollout or its referenced workload with the changed pod-template image.
undoGET the Rollout and its controlled ReplicaSets, then JSON-patch the Rollout or its referenced workload with a previous pod template.

Replace {cluster}, {namespace}, and {name} with the target cluster, namespace, and Rollout name.

Get a rollout

get rollout builds its status tree from informers rather than issuing only one request. The initial cache population reads the following resources:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts
GET /kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/replicasets
GET /kubernetes/{cluster}/api/v1/namespaces/{namespace}/pods
GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/experiments
GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/analysisruns

When the Rollout uses spec.workloadRef, the plugin also reads the referenced Deployment:

GET /kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/deployments/{workloadName}

With --watch, the plugin watches these resources and refreshes the displayed tree when a related resource changes. The Rollout watch endpoint is:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts?watch=true&resourceVersion={resourceVersion}

The other related resources use their corresponding collection endpoint with watch=true and the current resourceVersion.

List rollouts

List all Rollouts in a namespace:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts

Filter by name, as the plugin does for list rollouts --name:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts?fieldSelector=metadata.name%3D{name}

List across all namespaces by omitting the namespace segment:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/rollouts

Watch the collection by adding watch=true. Start from the returned list's metadata.resourceVersion to avoid missing events:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts?watch=true&resourceVersion={resourceVersion}

Pause a rollout

pause sends a merge patch to the Rollout resource:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
Content-Type: application/merge-patch+json
{
  "spec": {
    "paused": true
  }
}

Resume a rollout

The current v1.2.0 source registers promote, not a separate resume command. A legacy resume implementation used this merge patch on the main Rollout resource:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
Content-Type: application/merge-patch+json
{
  "spec": {
    "paused": false
  },
  "status": {
    "pauseConditions": null
  }
}

For clusters with the Rollout status subresource enabled, send the two fields as separate requests instead:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
Content-Type: application/merge-patch+json
{
  "spec": {
    "paused": false
  }
}
PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/status
Content-Type: application/merge-patch+json
{
  "status": {
    "pauseConditions": null
  }
}

Use promote when the Rollout is paused by a canary step, a blue-green pre-promotion, or an analysis step. promote also advances the canary step when necessary.

Promote a rollout

promote first reads the Rollout:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}

The follow-up patch depends on the returned spec and status:

Rollout state or optionRequest body
spec.paused=true{"spec":{"paused":false}} on the Rollout resource.
status.pauseConditions is non-empty{"status":{"pauseConditions":null}} on /status.
A canary step must be skipped{"status":{"currentStepIndex":{nextStepIndex}}} on /status.
--full and the current pod hash is not the stable ReplicaSet{"status":{"promoteFull":true}} on /status.
An inconclusive analysis paused the rollout{"status":{"pauseConditions":null,"controllerPause":false,"currentStepIndex":{nextStepIndex}}} on /status.

For example, clear an automatic pause condition:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/status
Content-Type: application/merge-patch+json
{
  "status": {
    "pauseConditions": null
  }
}

Advance a canary rollout to the next step:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/status
Content-Type: application/merge-patch+json
{
  "status": {
    "pauseConditions": null,
    "currentStepIndex": 2
  }
}

Fully promote a rollout:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/status
Content-Type: application/merge-patch+json
{
  "status": {
    "promoteFull": true
  }
}

A client must not blindly send every field above. Read the Rollout first and apply only the patch required by its current state. The plugin first attempts a status-subresource patch. For clusters without that subresource, it falls back to a merge patch on the main Rollout resource.

Abort a rollout

abort first tries the status subresource:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}/status
Content-Type: application/merge-patch+json
{
  "status": {
    "abort": true
  }
}

If the status subresource returns 404 Not Found, send the same patch to the main Rollout resource:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
Content-Type: application/merge-patch+json
{
  "status": {
    "abort": true
  }
}

The Rollout controller handles the abort and reconciles the active ReplicaSet. The patch does not change spec.template; update the template separately if the new version must be fully reverted.

Set a rollout image

set image first reads the Rollout:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}

The plugin changes the matching container image in spec.template.spec.initContainers, containers, or ephemeralContainers. It then sends a full-object update, not a small patch.

For a Rollout without spec.workloadRef:

PUT /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
Content-Type: application/json

The request body must be the complete Rollout returned by the GET request, with the selected image changed. Preserve metadata.resourceVersion and all fields not being changed. A shortened example is:

{
  "apiVersion": "argoproj.io/v1alpha1",
  "kind": "Rollout",
  "metadata": {
    "name": "demo-rollout",
    "namespace": "{namespace}",
    "resourceVersion": "{resourceVersion}"
  },
  "spec": {
    "template": {
      "spec": {
        "containers": [
          {
            "name": "demo",
            "image": "registry.example.com/demo:v2"
          }
        ]
      }
    }
  }
}

When spec.workloadRef is present, the v1.2.0 plugin treats workloadRef.name as an apps/v1 Deployment name, then reads and updates that Deployment instead:

GET /kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/deployments/{workloadName}
PUT /kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/deployments/{workloadName}
Content-Type: application/json

set image does not branch on workloadRef.kind in the v1.2.0 source; it always uses the Deployment endpoint shown above. On an optimistic-concurrency conflict, repeat the GET and full update. The plugin retries this sequence up to five times.

Undo a rollout

undo restores the previous revision by copying its pod template. The plugin performs these reads first:

GET /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
GET /kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/replicasets?labelSelector={rolloutSelector}

It considers only ReplicaSets controlled by the Rollout and selects the previous ReplicaSet by the rollout.argoproj.io/revision annotation. Use --to-revision={revision} to select an explicit revision; without it, the plugin selects the second newest revision. If the selected pod template already matches the current template, no update is sent.

The plugin removes the rollouts-pod-template-hash label from the selected pod template and sends this JSON Patch:

PATCH /kubernetes/{cluster}/apis/argoproj.io/v1alpha1/namespaces/{namespace}/rollouts/{name}
Content-Type: application/json-patch+json
[
  {
    "op": "replace",
    "path": "/spec/template",
    "value": {
      "metadata": {
        "labels": {
          "app": "demo"
        }
      },
      "spec": {
        "containers": [
          {
            "name": "demo",
            "image": "registry.example.com/demo:v1"
          }
        ]
      }
    }
  }
]

When spec.workloadRef is present, apply the same JSON Patch to the referenced object instead of the Rollout:

PATCH /kubernetes/{cluster}/apis/apps/v1/namespaces/{namespace}/deployments/{workloadName}
Content-Type: application/json-patch+json

For a ReplicaSet workload reference use /apis/apps/v1/.../replicasets/{workloadName}. For a PodTemplate workload reference use /api/v1/.../podtemplates/{workloadName}. The v1.2.0 implementation rejects unsupported workloadRef.kind values.

Permissions

The caller needs permission to read Rollouts and their related resources. Mutating operations additionally require the corresponding patch or update permission:

  • get rollout: list and watch on Rollouts, ReplicaSets, Pods, Experiments, AnalysisRuns, and referenced Deployments. A direct GET request, outside the plugin's informer flow, requires get.
  • list rollouts: list on Rollouts; add watch when watching the collection.
  • pause, resume, promote, and abort: patch on Rollouts and, when used, patch on the Rollout status subresource.
  • set image: get and update on Rollouts, or get and update on the referenced Deployment.
  • undo: get and list on Rollouts and ReplicaSets, plus patch on the Rollout or referenced workload.