Add Node group maintenance policy (#4097) (#306)

Signed-off-by: Modular Magician <magic-modules@google.com>
This commit is contained in:
The Magician 2020-10-13 08:36:31 -07:00 committed by GitHub
commit 7809fee324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 144 additions and 1 deletions

View file

@ -144,6 +144,42 @@ resources:
- The total number of nodes in the node group.
returned: success
type: int
maintenancePolicy:
description:
- 'Specifies how to handle instances when a node in the group undergoes maintenance.
Set to one of: DEFAULT, RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP. The
default value is DEFAULT.'
returned: success
type: str
autoscalingPolicy:
description:
- If you use sole-tenant nodes for your workloads, you can use the node group
autoscaler to automatically manage the sizes of your node groups.
returned: success
type: complex
contains:
mode:
description:
- 'The autoscaling mode. Set to one of the following: - OFF: Disables the
autoscaler.'
- "- ON: Enables scaling in and scaling out."
- "- ONLY_SCALE_OUT: Enables only scaling out."
- You must use this mode if your node groups are configured to restart their
hosted VMs on minimal servers.
returned: success
type: str
minNodes:
description:
- Minimum size of the node group. Must be less than or equal to max-nodes.
The default value is 0.
returned: success
type: int
maxNodes:
description:
- Maximum size of the node group. Set to a value less than or equal to 100
and greater than or equal to min-nodes.
returned: success
type: int
zone:
description:
- Zone where this node group is located .