Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlipp committed Feb 25, 2024
1 parent 4bf9d6c commit c1b4d57
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions controller.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:

vm:
state: Running
guestShutdownStops: false
maximumCpus: 4
currentCpus: 2
maximumRam: 8Gi
Expand Down Expand Up @@ -58,8 +59,14 @@ spec:
The central resource created by the controller is a
[stateful set](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/)
with the same name as the VM (metadata.name). Its number of replicas is
set to 1 if `spec.vm.state` is "Running" (default is "Stopped" which sets replicas
to 0).
set to 1 if `spec.vm.state` is "Running" (default is "Stopped" which sets
replicas to 0).

Property `guestShutdownStops` (since 2.2.0) controls the effect of a
shutdown initiated by the guest. If set to `false` (default) a new pod
is automatically created by the stateful set controller and the VM thus
restarted. If set to `true`, the runner sets `spec.vm.state` to "Stopped"
before terminating and by this prevents the creation of a new pod.

## Defining the basics

Expand Down

0 comments on commit c1b4d57

Please sign in to comment.