vm: use block volumes to enable live-migration (#316)

Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
This commit is contained in:
Andrei Kvapil
2024-08-30 13:14:46 +02:00
committed by GitHub
parent 5efef2eec5
commit 55282acdba
4 changed files with 5 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ generate:
readme-generator -v values.yaml -s values.schema.json.tmp -r README.md
cat values.schema.json.tmp | \
jq '.properties.image.enum = ["ubuntu", "cirros", "alpine", "fedora"]' | \
jq '.properties.resources.properties.memory["x-display"] = "slider"' \
jq '.properties.resources.properties.memory["x-display"] = "slider"' | \
jq '.properties.externalPorts.items.type = "integer"' \
> values.schema.json
rm -f values.schema.json.tmp

View File

@@ -55,11 +55,6 @@ You can customize the exposed ports by specifying them under `service.ports` in
## Example virtual machine:
```yaml
external: true
externalPorts:
- 22
- 80
- 443
running: true
image: fedora
storageClass: replicated

View File

@@ -11,8 +11,9 @@ spec:
name: {{ include "virtual-machine.fullname" . }}
spec:
pvc:
volumeMode: Block
accessModes:
- ReadWriteOnce
- ReadWriteMany
resources:
requests:
storage: {{ .Values.resources.disk | quote }}

View File

@@ -12,7 +12,7 @@
"description": "Specify ports to forward from outside the cluster",
"default": "[]",
"items": {
"type": "string"
"type": "integer"
}
},
"running": {