Skip to content

Commit e9af8d6

Browse files
committed
docs: add snapshot and warmpool reference YAMLs
1 parent 71b151c commit e9af8d6

4 files changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- snapshot.yaml

examples/snapshot/snapshot.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Example: one-shot ImpVMSnapshot with node-local storage and 3-execution retention.
2+
# Prerequisites: a running ImpVM named "my-vm" in namespace "default".
3+
# After applying, watch: kubectl get impvmsnapshot -n default -w
4+
# Elect a base: kubectl imp elect my-snap <child-name>
5+
apiVersion: imp.dev/v1alpha1
6+
kind: ImpVMSnapshot
7+
metadata:
8+
name: my-snap
9+
namespace: default
10+
spec:
11+
sourceVMName: my-vm
12+
sourceVMNamespace: default
13+
storage:
14+
type: node-local
15+
nodeLocal:
16+
path: /var/lib/imp/snapshots
17+
retention: 3
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- warmpool.yaml

examples/warmpool/warmpool.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Example: ImpWarmPool keeping 3 pre-booted VMs from an elected snapshot.
2+
# Prerequisites:
3+
# - ImpVMSnapshot "my-snap" with a baseSnapshot elected
4+
# - ImpVMTemplate "standard-runner" in namespace "default"
5+
# After applying, watch: kubectl get impwarmpool -n default -w
6+
apiVersion: imp.dev/v1alpha1
7+
kind: ImpWarmPool
8+
metadata:
9+
name: fast-pool
10+
namespace: default
11+
spec:
12+
snapshotRef: my-snap
13+
templateName: standard-runner
14+
size: 3
15+
expireAfter: 1h

0 commit comments

Comments
 (0)