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 | |
|---|---|
|
required |
The storage configuration for Pod snapshots. |
|
required |
The Cloud Storage configuration. |
|
required |
The name of the Cloud Storage bucket where GKE stores Pod snapshots. |
|
optional |
The path within the bucket that GKE uses as a subdirectory for storing Pod snapshots. |
|
optional |
The identity that GKE uses to authenticate to Cloud Storage. The following values are supported:
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 |
List of status conditions for the storage configuration. |
status.observedGeneration |
The most recent generation that the controller observed. |