google_gke_hub_fleet

Fleet contains information about a group of clusters.

To get more information about Fleet, see:

Example Usage - Gkehub Fleet Basic

resource "google_gke_hub_fleet" "default" {
  display_name = "my production fleet"
  default_cluster_config {
    security_posture_config {
      mode = "DISABLED"
      vulnerability_mode = "VULNERABILITY_DISABLED"
    }
  }
}

Argument Reference

The following arguments are supported:


The default_cluster_config block supports:

The binary_authorization_config block supports:

The policy_bindings block supports:

The security_posture_config block supports:

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

The state block contains:

Timeouts

This resource provides the following Timeouts configuration options:

Import

Fleet can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Fleet using one of the formats above. For example:

import {
  id = "projects/{{project}}/locations/global/fleets/default"
  to = google_gke_hub_fleet.default
}

When using the terraform import command, Fleet can be imported using one of the formats above. For example:

$ terraform import google_gke_hub_fleet.default projects/{{project}}/locations/global/fleets/default
$ terraform import google_gke_hub_fleet.default {{project}}

User Project Overrides

This resource supports User Project Overrides.