mirror of
https://github.com/portainer/portainer.git
synced 2026-08-07 10:54:48 +00:00
feat(kubernetes): advanced node drain options with agent failover [C9S-334] (#3346)
This commit is contained in:
@@ -6311,6 +6311,13 @@ paths:
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/kubernetes.drainNodePayload"
|
||||
description: Drain options, matching kubectl drain flags. Defaults are applied
|
||||
to any omitted field.
|
||||
responses:
|
||||
"204":
|
||||
description: Success
|
||||
@@ -13464,6 +13471,38 @@ components:
|
||||
describe:
|
||||
type: string
|
||||
type: object
|
||||
kubernetes.drainNodePayload:
|
||||
properties:
|
||||
DeleteEmptyDirData:
|
||||
description: DeleteEmptyDirData allows eviction of pods using emptyDir volumes,
|
||||
whose data is lost once the pod is deleted.
|
||||
example: true
|
||||
type: boolean
|
||||
DisableEviction:
|
||||
description: DisableEviction forces the use of direct pod deletion instead of
|
||||
the eviction API, ignoring any configured PodDisruptionBudgets.
|
||||
example: false
|
||||
type: boolean
|
||||
Force:
|
||||
description: Force allows deletion of standalone pods not managed by a controller.
|
||||
example: false
|
||||
type: boolean
|
||||
GracePeriodSeconds:
|
||||
description: GracePeriodSeconds overrides each pod's termination grace period.
|
||||
-1 uses the pod's own grace period.
|
||||
example: -1
|
||||
type: integer
|
||||
IgnoreDaemonSets:
|
||||
description: IgnoreDaemonSets skips DaemonSet-managed pods, which would
|
||||
otherwise block the drain.
|
||||
example: true
|
||||
type: boolean
|
||||
TimeoutSeconds:
|
||||
description: TimeoutSeconds is the overall time to wait for the drain to
|
||||
complete. Defaults to 60 when omitted.
|
||||
example: 60
|
||||
type: integer
|
||||
type: object
|
||||
kubernetes.kubernetesVersionResponse:
|
||||
properties:
|
||||
buildDate:
|
||||
|
||||
@@ -2486,6 +2486,38 @@ definitions:
|
||||
describe:
|
||||
type: string
|
||||
type: object
|
||||
kubernetes.drainNodePayload:
|
||||
properties:
|
||||
DeleteEmptyDirData:
|
||||
description: DeleteEmptyDirData allows eviction of pods using emptyDir volumes,
|
||||
whose data is lost once the pod is deleted.
|
||||
example: true
|
||||
type: boolean
|
||||
DisableEviction:
|
||||
description: DisableEviction forces the use of direct pod deletion instead
|
||||
of the eviction API, ignoring any configured PodDisruptionBudgets.
|
||||
example: false
|
||||
type: boolean
|
||||
Force:
|
||||
description: Force allows deletion of standalone pods not managed by a controller.
|
||||
example: false
|
||||
type: boolean
|
||||
GracePeriodSeconds:
|
||||
description: GracePeriodSeconds overrides each pod's termination grace period.
|
||||
-1 uses the pod's own grace period.
|
||||
example: -1
|
||||
type: integer
|
||||
IgnoreDaemonSets:
|
||||
description: IgnoreDaemonSets skips DaemonSet-managed pods, which would otherwise
|
||||
block the drain.
|
||||
example: true
|
||||
type: boolean
|
||||
TimeoutSeconds:
|
||||
description: TimeoutSeconds is the overall time to wait for the drain to complete.
|
||||
Defaults to 60 when omitted.
|
||||
example: 60
|
||||
type: integer
|
||||
type: object
|
||||
kubernetes.kubernetesVersionResponse:
|
||||
properties:
|
||||
buildDate:
|
||||
@@ -15802,6 +15834,12 @@ paths:
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
- description: Drain options, matching kubectl drain flags. Defaults are applied
|
||||
to any omitted field.
|
||||
in: body
|
||||
name: body
|
||||
schema:
|
||||
$ref: '#/definitions/kubernetes.drainNodePayload'
|
||||
responses:
|
||||
"204":
|
||||
description: Success
|
||||
|
||||
Reference in New Issue
Block a user