Node Auto Upgrade Disabled
- Query id: dc5c5fee-6c53-43b0-ab11-4c660e064aaf
- Query name: Node Auto Upgrade Disabled
- Platform: GoogleDeploymentManager
- Severity: High
- Category: Resource Management
- URL: Github
Description¶
Kubernetes nodes must have auto upgrades set to true, which means the attribute 'nodePools' must be defined and the subattribute 'managment' must be defined and have the attribute 'autoUpgrade' set to true
Documentation
Code samples¶
Code samples with security vulnerabilities¶
Postitive test num. 1 - yaml file
resources:
- name: cluster
type: container.v1.cluster
properties:
description: my-cluster
Postitive test num. 2 - yaml file
resources:
- name: cluster
type: container.v1.cluster
properties:
description: my-cluster
nodePools:
initialNodeCount: 2
Postitive test num. 3 - yaml file
resources:
- name: cluster
type: container.v1.cluster
properties:
description: my-cluster
nodePools:
initialNodeCount: 2
management:
autoRepair: true