@@ -1250,6 +1250,57 @@ spec:
1250
1250
copied to the Pod RunTimeClass, this will replace any existing value or previously
1251
1251
applied Profile.
1252
1252
type : string
1253
+ strategy :
1254
+ description : Strategy allows customizing the deployment strategy for
1255
+ function deployments.
1256
+ properties :
1257
+ rollingUpdate :
1258
+ description : |-
1259
+ Rolling update config params. Present only if DeploymentStrategyType =
1260
+ RollingUpdate.
1261
+ ---
1262
+ TODO: Update this to follow our convention for oneOf, whatever we decide it
1263
+ to be.
1264
+ properties :
1265
+ maxSurge :
1266
+ anyOf :
1267
+ - type : integer
1268
+ - type : string
1269
+ description : |-
1270
+ The maximum number of pods that can be scheduled above the desired number of
1271
+ pods.
1272
+ Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
1273
+ This can not be 0 if MaxUnavailable is 0.
1274
+ Absolute number is calculated from percentage by rounding up.
1275
+ Defaults to 25%.
1276
+ Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
1277
+ the rolling update starts, such that the total number of old and new pods do not exceed
1278
+ 130% of desired pods. Once old pods have been killed,
1279
+ new ReplicaSet can be scaled up further, ensuring that total number of pods running
1280
+ at any time during the update is at most 130% of desired pods.
1281
+ x-kubernetes-int-or-string : true
1282
+ maxUnavailable :
1283
+ anyOf :
1284
+ - type : integer
1285
+ - type : string
1286
+ description : |-
1287
+ The maximum number of pods that can be unavailable during the update.
1288
+ Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
1289
+ Absolute number is calculated from percentage by rounding down.
1290
+ This can not be 0 if MaxSurge is 0.
1291
+ Defaults to 25%.
1292
+ Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
1293
+ immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
1294
+ can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
1295
+ that the total number of pods available at all times during the update is at
1296
+ least 70% of desired pods.
1297
+ x-kubernetes-int-or-string : true
1298
+ type : object
1299
+ type :
1300
+ description : Type of deployment. Can be "Recreate" or "RollingUpdate".
1301
+ Default is RollingUpdate.
1302
+ type : string
1303
+ type : object
1253
1304
tolerations :
1254
1305
description : |-
1255
1306
If specified, the function's pod tolerations.
0 commit comments