Integrate GKE with Google SecOps
This document explains how to configure and integrate Google Kubernetes Engine (GKE) with Google Security Operations.
Use cases
The GKE integration uses Google SecOps capabilities to support the following use cases:
Cluster inventory: Automatically retrieve a list of all GKE clusters within a specified location. This helps security teams to maintain an up-to-date inventory of their Kubernetes infrastructure.
Dynamic auto scaling: Automatically adjust the size of node pools in response to security events or operational alerts, ensuring optimal performance.
Label-based isolation: Automatically apply labels to GKE clusters based on security policies or incident response procedures.
Add-on configuration adjustment: Automatically enable or disable GKE add-ons based on security best practices. Disabling insecure add-ons can reduce the attack surface.
Operation status monitoring: Automatically monitor the status of GKE operations that are triggered by security playbooks or incident response workflows. This lets security analysts monitor remediation progress and check the status of ongoing operations.
Before you begin
Before you configure the GKE integration in Google SecOps, complete the following prerequisite steps:
Create and configure a custom Identity and Access Management role.
Choose and configure one of the following authentication methods:
Option 1: Workload Identity (recommended): This method uses short-lived tokens via service account impersonation.
Option 2: Service account JSON key: This method relies on a static, long-lived secret key file.
Create and configure an IAM role
To provide the integration with the necessary permissions, create a custom role in your project:
In the Google Cloud console, go to Roles.
Click Create role.
Provide a Title (for example,
SecOps GKE Analyst), Description, and a unique ID.Set the Role Launch Stage to General Availability.
Add the following permissions to the role:
container.clusters.listcontainer.clusters.updatecontainer.clusters.getcontainer.operations.listcontainer.operations.get
Click Create.
Create a service account
In the Google Cloud console, go to IAM & Admin > Service Accounts.
Click addCreate service account.
Provide a name and description, and click Create and continue.
In the Grant this service account access to project step, assign the custom IAM role you created.
Click Done. Take note of the service account's Email address.
Configure Workload Identity credentials
Workload Identity is the recommended approach as it uses short-lived access tokens using service account impersonation.
Identify the unique instance identity
Establishing a connection requires granting your Google SecOps instance permission to impersonate your service account.
In Google SecOps, go to Content Hub > Response Integrations.
Select the GKE integration and enter your service account email in the
Workload Identity Emailfield.Click Save > Test. The test is expected to fail.
Click the close_small button next to Test and locate the identity email beginning with
gke-init-python@...orsoar-python@....Copy this unique email address.
Authorize the instance identity in Google Cloud
In the Google Cloud console, go to IAM & Admin > Service Accounts.
Select the target service account and navigate to Permissions > Grant Access.
Paste the unique email address into the New principals field and assign the Service Account Token Creator role (
roles/iam.serviceAccountTokenCreator).
Grant quota project access
Authenticating with Workload Identity requires a Quota Project ID to track API
usage and billing.
In the Google Cloud console, go to IAM for the project used as the quota project.
Locate your service account and click Edit principal (edit).
Click Add another role and select Service Usage Consumer (
roles/serviceusage.serviceUsageConsumer).Click Save.
Configure a JSON key
Static, long-lived secret key files require manual rotation. Only use this method if Workload Identity authentication is unavailable.
In the Google Cloud console, go to IAM & Admin > Service Accounts and select your service account.
Go to the Keys tab and click Add key > Create new key.
Select JSON and click Create. The browser downloads the JSON file to your computer.
Configure manual individual parameters
If you choose to enter credentials manually, keep the downloaded JSON key file open in a text editor to copy the individual values required in the integration settings.
Integration parameters
To establish a connection between Google SecOps and GKE, you must configure the following parameters. The integration supports three distinct authentication paths. Choose one of the following methods to provide credentials:
Workload Identity: Uses
Workload Identity EmailandQuota Project ID.Service account JSON file: Uses
Service Account Json File Contentto provide the entire key file.Manual individual parameters: Uses separate fields manually copied from a JSON key.
| Parameter | Description |
|---|---|
API Root |
Required. The API root of the GKE instance. The default value is |
Workload Identity Email |
Optional. The client email address of your service account. Only configure this parameter if you're authenticating using a Workload
Identity. If configured, you must also provide a
|
Service Account Json File Content |
Optional. The full content of the service account key JSON file. Only configure this parameter if you're authenticating using a JSON key. |
Project ID |
Optional. The project ID to target in GKE. If no value is provided, the integration retrieves the ID from the service account credentials. |
Quota Project ID |
Optional. The project ID used for API usage and billing. This parameter is required when using Workload Identity authentication. If no value is provided, the integration retrieves the ID from the service account credentials. |
Location ID |
Optional. The location ID used to scope cluster operations. The default value is |
Verify SSL |
Required. If selected, the integration validates the SSL certificate when connecting to the Google Cloud server. Enabled by default. |
Individual credential parameters
Only configure the following parameters if you're manually entering credentials rather than using the full JSON file content or a Workload Identity.
| Parameter | Description |
|---|---|
Account Type |
Optional. The value found in the |
Private Key ID |
Optional. The value found in the |
Private Key |
Optional. The value found in the |
Client Email |
Optional. The value found in the |
Client ID |
Optional. The value found in the |
Auth URI |
Optional. The value found in the The default is |
Token URI |
Optional. The value found in the The default is |
Auth Provider X509 URL |
Optional. The value found in the
|
Client X509 URL |
Optional. The value found in the
|
For instructions about how to configure an integration in Google SecOps, see Configure integrations.
You can make changes at a later stage, if needed. After you configure an integration instance, you can use it in playbooks. For more information about how to configure and support multiple instances, see Supporting multiple instances.
Actions
For more information about actions, see Respond to pending actions from Your Workdesk and Perform a manual action.
Get Operation Status
Use the Get Operation Status action to retrieve the GKE operation status.
This action is asynchronous. Adjust the Google SecOps integrated development environment (IDE) for the action as needed.
This action doesn't run on Google SecOps entities.
Action inputs
The Get Operation Status action requires the following parameters:
| Parameter | Description |
|---|---|
Location |
Required. A location to retrieve the operation statuses, such
as |
Operation Name |
Required. An operation to retrieve. |
Wait for the operation to finish |
Optional. If selected, the action waits for the results of the operation. Not selected by default. |
Action outputs
The Get Operation Status action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result output received when using the Get Operation Status action:
{
"name": "operation-OPERATION_ID",
"zone": "europe-central2-a",
"operationType": "SET_NODE_POOL_SIZE",
"status": "RUNNING",
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/operations/operation-OPERATION_ID",
"targetLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-test/nodePools/default-pool",
"startTime": "2021-08-15T11:53:55.904254615Z"
}
Output messages
The Get Operation Status action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Get Operation Status action:
| Script result name | Value |
|---|---|
is_success |
True or False |
List Clusters
Use the List Clusters action to list GKE clusters based on the specified search criteria.
This action doesn't run on Google SecOps entities.
Action inputs
The List Clusters action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. The location to search for clusters, such as
|
Filter Logic |
Optional. The filter logic to apply. The filtering logic
works with the The possible values are as follows:
The default
value is |
Filter Value |
Optional. The value to use for the filter. The filtering
logic works with the If you set the
|
Max Records To Return |
Optional. The number of records to return. The default value is |
Action outputs
The List Clusters action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
Case wall table
The List Clusters action can return the following table:
Table name: Found Clusters
Table columns:
- ID
- Name
- Description
- Cluster Network
- Cluster IPv4 CIDR
- Labels
- Cluster Endpoint
- Status
- Location
- Zone
- Initial Cluster Version
- Current Master Version
- Current Node Version
- Create Time
JSON result
The following example shows the JSON result output received when using the List Clusters action:
{
"name": "cluster-test",
"description": "Requested by user",
"nodeConfig": {
"machineType": "e2-micro",
"diskSizeGb": 15,
"oauthScopes": [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/trace.append"
],
"metadata": {
"disable-legacy-endpoints": "true"
},
"imageType": "COS",
"tags": [
"pod-net-tag"
],
"serviceAccount": "default",
"diskType": "pd-standard",
"shieldedInstanceConfig": {
"enableIntegrityMonitoring": true
}
},
"masterAuth": {
"clusterCaCertificate": "CERTIFICATE"
}
}
Output messages
The List Clusters action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the List Clusters action:
| Script result name | Value |
|---|---|
is_success |
True or False |
List Node Pools
Use the List Node Pools action to list node pools for the GKE cluster based on the specified search criteria.
The filtering logic works with the node pool name field.
This action doesn't run on Google SecOps entities.
Action inputs
The List Node Pools action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. A location to search for clusters, such as
|
Cluster Name |
Required. The name of the cluster to search for. |
Filter Logic |
Optional. The filter logic to apply. The filtering logic
works with the The possible values are as follows:
The default
value is |
Filter Value |
Optional. The value to use for the filter. The filtering
logic works with the If you set the
|
Max Records To Return |
Optional. The number of records to return. The default value is |
Action outputs
The List Node Pools action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
Case wall table
The List Node Pools action can return the following table:
Table name: Found Node Pools
- Name
- Status
- Version
- Machine Type
- Tags
- Service Account
- Initial Node Count
- Autoscaling
- Max Pods Constraint
- Locations
JSON result
The following example shows the JSON result output received when using the List Node Pools action:
{
"nodePools": [
{
"name": "example-pool",
"config": {
"machineType": "e2-micro",
"diskSizeGb": 15,
"oauthScopes": [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/trace.append"
],
"metadata": {
"disable-legacy-endpoints": "true"
},
"imageType": "COS",
"tags": [
"pod-net-tag"
],
"serviceAccount": "default",
"diskType": "pd-standard",
"shieldedInstanceConfig": {
"enableIntegrityMonitoring": true
}
},
"initialNodeCount": 3,
"autoscaling": {},
"management": {
"autoUpgrade": true,
"autoRepair": true
},
"maxPodsConstraint": {
"maxPodsPerNode": "8"
},
"podIpv4CidrSize": 28,
"locations": [
"europe-central2-a"
],
"networkConfig": {
"podRange": "gke-cluster-example-pods-ID",
"podIpv4CidrBlock": "192.0.2.0/24"
},
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-example/nodePools/example-pool",
"version": "1.18.20-gke.900",
"instanceGroupUrls": [
"https://www.googleapis.com/compute/v1/projects/PROJECT_ID/zones/europe-central2-a/instanceGroupManagers/gke-cluster-example-example-pool-ID-grp"
],
"status": "RUNNING",
"upgradeSettings": {
"maxSurge": 1
}
}
]
}
Output messages
The List Node Pools action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the List Node Pools action:
| Script result name | Value |
|---|---|
is_success |
True or False |
List Operations
Use the List Operations action to list GKE operations for a location based on the specified search criteria.
The filtering logic works with the operation name field.
This action doesn't run on Google SecOps entities.
Action inputs
The List Operations action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. The location to search for operations, such as
|
Filter Logic |
Optional. The filter logic to apply. The filtering logic
works with the The possible values are as follows:
The default value is |
Filter Value |
Optional. The value to use for the filter. The filtering
logic works with the If you set the
|
Max Records To Return |
Optional. The number of records to return. The default value is |
Action outputs
The List Operations action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
Case wall table
The List Operations action can return the following table:
Table name: Found Operations
Table columns:
- Name
- Zone
- Operation Type
- Status
- Start Time
- End Time
- Target Link
- Self Link
JSON result
The following example shows the JSON result output received when using the List Operations action:
{
"operations": [
{
"name": "operation-OPERATION_ID",
"zone": "europe-central2-a",
"operationType": "UPGRADE_MASTER",
"status": "DONE",
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/operations/operation-OPERATION_ID",
"targetLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-example",
"startTime": "2021-08-06T12:33:51.614562051Z",
"endTime": "2021-08-06T12:38:55.038159801Z"
},
]
}
Output messages
The List Operations action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the List Operations action:
| Script result name | Value |
|---|---|
is_success |
True or False |
Ping
Use the Ping action to test the connectivity to GKE.
This action doesn't run on Google SecOps entities.
Action inputs
None.
Action outputs
The Ping action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Not available |
| Output messages | Available |
| Script result | Available |
Output messages
The Ping action can return the following output messages:
| Output message | Message description |
|---|---|
Successfully connected to the GKE service with the provided
connection parameters! |
The action succeeded. |
Failed to connect to the GKE service! Error is ERROR_REASON |
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Ping action:
| Script result name | Value |
|---|---|
is_success |
True or False |
Set Cluster Addons
Use the Set Cluster Addons action to set add-ons for the GKE cluster.
If the target cluster is already undergoing a configuration change, it cannot accept new configuration changes until the current configuration change is complete.
This action runs asynchronous. Adjust the Google SecOps IDE settings as needed.
This action doesn't run on Google SecOps entities.
Action inputs
The Set Cluster Addons action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. A location to search for clusters, such as
|
Cluster Name |
Required. The name of the cluster to search for. |
HTTP Load Balancing |
Optional. The value for the HTTP load balancing add-on. The possible values are as follows:
The default value is |
Horizontal Pod Autoscaling |
Optional. The value for the horizontal Pod autoscaling add-on. The possible values are as follows:
The default value is |
Network Policy Config |
Optional. The value for the network policy configuration add-on. The possible values are as follows:
The default value is |
Cloud Run Config |
Optional. The value for the Cloud Run configuration add-on. The possible values are as follows:
The
default value is |
DNS Cache Config |
Optional. The value for the DNS cache configuration add-on. The possible values are as follows:
The default value is |
Config Connector Config |
Optional. The value for the Config Connector configuration add-on. The possible values are as follows:
The default value is |
Persistent Disk Csi Driver Config |
Optional. Specify the value for the Compute Engine persistent disk Container Storage Interface (CSI) Driver configuration add-on. The possible values are as follows:
The default value is |
Wait for cluster configuration change operation to finish
|
Optional. If selected, the action waits for the results of the cluster configuration change operation. Selected by default. |
Action outputs
The Set Cluster Addons action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result output received when using the Set Cluster Addons action:
{
"name": "operation-OPERATION_ID",
"zone": "europe-central2-a",
"operationType": "UPDATE_CLUSTER",
"status": "RUNNING",
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/operations/operation-OPERATION_ID",
"targetLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-test",
"startTime": "2021-08-15T11:34:43.051036236Z"
}
Output messages
The Set Cluster Addons action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Set Cluster Addons action:
| Script result name | Value |
|---|---|
is_success |
True or False |
Set Cluster Labels
Use the Set Cluster Labels action to set labels for the GKE cluster. The action appends new labels to any existing cluster labels.
If the target cluster is already undergoing a configuration change, it cannot accept new configuration changes until the current configuration change is complete.
This action runs asynchronous. Adjust the Google SecOps IDE settings as needed.
This action doesn't run on Google SecOps entities.
Action inputs
The Set Cluster Labels action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. A location to search for clusters, such as
|
Cluster Name |
Required. The name of the cluster to search for. |
Cluster Labels |
Required. A JSON object that contains labels to add to the cluster. The action appends new labels to any existing cluster labels. The default value is as follows: {
"key1":"value1",
"key2":"value2"
}
|
Wait for cluster configuration change operation to finish
|
Optional. If selected, the action waits for the results of the cluster configuration change operation. Not selected by default. |
Action outputs
The Set Cluster Labels action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result output received when using the Set Cluster Labels action:
{
"name": "operation-OPERATION_ID",
"zone": "europe-central2-a",
"operationType": "UPDATE_CLUSTER",
"status": "RUNNING",
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/operations/operation-OPERATION_ID",
"targetLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-test",
"startTime": "2021-08-15T11:53:55.904254615Z"
}
Output messages
The Set Cluster Labels action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Set Cluster Labels action:
| Script result name | Value |
|---|---|
is_success |
True or False |
Set Node Autoscaling
Use the Set Node Autoscaling action to set the node pool auto scaling configuration for the GKE cluster. The action is asynchronous.
If the target cluster is already undergoing a configuration change, it cannot accept new configuration changes until the current configuration change is complete.
This action runs asynchronous. Adjust the Google SecOps IDE settings as needed.
This action doesn't run on Google SecOps entities.
Action inputs
The Set Node Autoscaling action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. A location to search for clusters, such as
|
Cluster Name |
Required. The name of the cluster to search for. |
Node Pool Name |
Required. The node pool name for the cluster. |
Autoscaling Mode |
Optional. The auto scaling mode status for the node pool. The possible values are as follows:
The default value is |
Minimum Node Count |
Optional. The minimum number of nodes for the node pool configuration. |
Maximum Node Count |
Optional. The maximum number of nodes for the node pool configuration. |
Wait for cluster configuration change operation to finish
|
Optional. If selected, the action waits for the results of the cluster configuration change operation. Not selected by default. |
Action outputs
The Set Node Autoscaling action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result output received when using the Set Node Autoscaling action:
{
"name": "operation-OPERATION_ID",
"zone": "europe-central2-a",
"operationType": "UPDATE_CLUSTER",
"status": "RUNNING",
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/operations/operation-OPERATION_ID",
"targetLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-test",
"startTime": "2021-08-15T11:53:55.904254615Z"
}
Output messages
The Set Node Autoscaling action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Set Node Autoscaling action:
| Script result name | Value |
|---|---|
is_success |
True or False |
Set Node Pool Management
Use the Set Node Pool Management action to set the node pool management configuration for the GKE cluster.
This action runs asynchronous. Adjust the Google SecOps IDE settings as needed.
This action doesn't run on Google SecOps entities.
Action inputs
The Set Node Pool Management action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. A location to search for clusters, such as
|
Cluster Name |
Required. The name of the cluster to search for. |
Node Pool Name |
Required. The node pool name for the GKE cluster. |
Auto Upgrade |
Optional. The status of the auto upgrade management feature. |
Auto Repair |
Optional. The status of auto repair management feature. |
Wait for cluster configuration change operation to finish
|
Optional. If selected, the action waits for the results of the cluster configuration change operation. Not selected by default. |
Action outputs
The Set Node Pool Management action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result output received when using the Set Node Pool Management action:
{
"name": "operation-OPERATION_ID",
"zone": "europe-central2-a",
"operationType": "SET_NODE_POOL_MANAGEMENT",
"status": "RUNNING",
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/operations/operation-OPERATION_ID",
"targetLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-test/nodePools/default-pool",
"startTime": "2021-08-15T11:53:55.904254615Z"
}
Output messages
The Set Node Pool Management action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Set Node Pool Management action:
| Script result name | Value |
|---|---|
is_success |
True or False |
Set Node Count
Use the Set Node Count action to set the node count for the GKE cluster node pool.
This action runs asynchronous. Adjust the Google SecOps IDE settings as needed.
This action doesn't run on Google SecOps entities.
Action inputs
The Set Node Count action requires the following parameters:
| Parameter | Description |
|---|---|
Cluster Location |
Required. A location to search for clusters, such as
|
Cluster Name |
Required. The name of the cluster to search for. |
Node Pool Name |
Required. The node pool name for the GKE cluster. |
Node Count |
Required. The number of nodes for the GKE cluster node pool. |
Wait for cluster configuration change operation to finish
|
Optional. If selected, the action waits for the results of the cluster configuration change operation. Not selected by default. |
Action outputs
The Set Node Count action provides the following outputs:
| Action output type | Availability |
|---|---|
| Case wall attachment | Not available |
| Case wall link | Not available |
| Case wall table | Not available |
| Enrichment table | Not available |
| JSON result | Available |
| Output messages | Available |
| Script result | Available |
JSON result
The following example shows the JSON result output received when using the Set Node Count action:
{
"name": "operation-OPERATION_ID",
"zone": "europe-central2-a",
"operationType": "SET_NODE_POOL_SIZE",
"status": "RUNNING",
"selfLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/operations/operation-OPERATION_ID",
"targetLink": "https://container.googleapis.com/v1/projects/PROJECT_ID/zones/europe-central2-a/clusters/cluster-test/nodePools/default-pool",
"startTime": "2021-08-15T11:53:55.904254615Z"
}
Output messages
The Set Node Count action can return the following output messages:
| Output message | Message description |
|---|---|
|
The action succeeded. |
|
|
The action failed. Check the connection to the server, input parameters, or credentials. |
Script result
The following table lists the value for the script result output when using the Set Node Count action:
| Script result name | Value |
|---|---|
is_success |
True or False |
Need more help? Get answers from Community members and Google SecOps professionals.