File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ apiVersion : kustomize.config.k8s.io/v1beta1
2+ kind : Kustomization
3+ resources :
4+ - snapshot.yaml
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1+ apiVersion : kustomize.config.k8s.io/v1beta1
2+ kind : Kustomization
3+ resources :
4+ - warmpool.yaml
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments