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 | |
|---|---|
|
required |
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 |
List of status conditions for the manual trigger, such as whether the snapshot succeeded. |
status.observedGeneration |
The most recent generation that the controller observed. |
status.snapshotCreated |
A reference to the PodSnapshot that this trigger created. |
status.snapshotCreated.name |
The name of the PodSnapshot that this trigger created. |