PodSnapshotManualTrigger

The PodSnapshotManualTrigger custom resource lets you take a snapshot of a specific Pod on demand. To use manual triggers, the PodSnapshotPolicy that selects the Pod must set the spec.triggerConfig.type field to manual. When the snapshot completes, Google Kubernetes Engine (GKE) records the name of the resulting PodSnapshot in the status.snapshotCreated.name field.

For more information, see About GKE Pod snapshots.

PodSnapshotManualTrigger specification

The following code shows the PodSnapshotManualTrigger specification:

spec:
  targetPod: string

The following table describes the fields in the PodSnapshotManualTrigger specification:

Fields

spec.targetPod

required

string

The name of the Pod to take a snapshot of.

PodSnapshotManualTrigger status

The status section indicates the observed state of the PodSnapshotManualTrigger, including whether the trigger succeeded and which PodSnapshot it created.

The following table describes the fields in the status section:

Fields
status.conditions

array (object)

List of status conditions for the manual trigger, such as whether the snapshot succeeded.

status.observedGeneration

integer

The most recent generation that the controller observed.

status.snapshotCreated

object

A reference to the PodSnapshot that this trigger created.

status.snapshotCreated.name

string

The name of the PodSnapshot that this trigger created.