PodSnapshotStorageConfig

The PodSnapshotStorageConfig custom resource defines the Cloud Storage bucket where Google Kubernetes Engine (GKE) stores Pod snapshots. Unlike the other Pod snapshot custom resources, PodSnapshotStorageConfig is cluster-scoped. A PodSnapshotPolicy references this resource by name in its spec.storageConfigName field.

For more information, see About GKE Pod snapshots.

PodSnapshotStorageConfig specification

The following code shows the PodSnapshotStorageConfig specification:

spec:
  snapshotStorageConfig:
    gcs:
      bucket: string
      path: string
      tokenSource: string

The following table describes the fields in the PodSnapshotStorageConfig specification:

Fields

spec.snapshotStorageConfig

required

object

The storage configuration for Pod snapshots.

spec.snapshotStorageConfig.gcs

required

object

The Cloud Storage configuration.

spec.snapshotStorageConfig.gcs.bucket

required

string

The name of the Cloud Storage bucket where GKE stores Pod snapshots.

spec.snapshotStorageConfig.gcs.path

optional

string

The path within the bucket that GKE uses as a subdirectory for storing Pod snapshots.

spec.snapshotStorageConfig.gcs.tokenSource

optional

string

The identity that GKE uses to authenticate to Cloud Storage. The following values are supported:

  • podKSA (default): uses the Identity and Access Management (IAM) bindings between the Pod's own Kubernetes ServiceAccount and the Cloud Storage bucket.
  • federatedP4SA: uses the GKE node service account to mint short-lived, path-restricted tokens on demand. Use this value for multi-tenant environments.

For more information, see Multi-tenancy and identity.

PodSnapshotStorageConfig status

The status section indicates the observed state of the PodSnapshotStorageConfig.

The following table describes the fields in the status section:

Fields
status.conditions

array (object)

List of status conditions for the storage configuration.

status.observedGeneration

integer

The most recent generation that the controller observed.