Skip to content

Commit

Permalink
Showing 3 changed files with 20 additions and 29 deletions.
2 changes: 1 addition & 1 deletion charts/kubevirt-vm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ name: kubevirt-vm
description: Configure a virtual machine for use with Kubevirt

type: application
version: 0.3.1
version: 0.3.2
appVersion: "0.1.0"

maintainers:
8 changes: 3 additions & 5 deletions charts/kubevirt-vm/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kubevirt-vm

![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)
![Version: 0.3.2](https://img.shields.io/badge/Version-0.3.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square)

Configure a virtual machine for use with Kubevirt

@@ -17,9 +17,7 @@ Configure a virtual machine for use with Kubevirt
| cloudinit | object | `{"enabled":true,"secretName":"friend-scrapmetal-user-data"}` | enable or disable usage of cloud-init |
| diskErrorPolicy | string | `"report"` | controls hypervisor behavior when IO errors occur on disk read or write. Possible values are: 'report', 'ignore', 'enospace' |
| disks | list | `[{"bootorder":2,"bus":"virtio","name":"harddrive","nodePlacement":"scremlin","pvaccessMode":"ReadWriteOnce","pvcname":"debian12","pvcnamespace":"kubevirt","pvsize":"64G","pvstorageClassName":"raid","readonly":false,"source":"pvc","type":"disk"}]` | List of disks to create for the VM, Will be used to create Datavolumes or PVCs. |
| livenessProbe | object | `{"initialDelaySeconds":120,"periodSeconds":20,"tcpSocket":{"port":1500},"timeoutSeconds":10}` | set tieming and port number for liveness probe |
| readinessProbe | object | `{"failureThreshold":3,"httpGet":{"port":1500},"initialDelaySeconds":120,"periodSeconds":20,"successThreshold":3,"timeoutSeconds":10}` | set tieming and port number for readiness probe |
| service | list | `[{"externalTrafficPolicy":"Cluster","name":"service","ports":[{"name":"ssh","nodePort":30001,"port":22,"protocol":"TCP","targetPort":22},{"name":"status","nodePort":30001,"port":1500,"protocol":"TCP","targetPort":1500},{"name":"vnc","nodePort":30005,"port":5900,"protocol":"TCP","targetPort":5900}],"type":"NodePort"}]` | Service objects are used to expose the VM to the outside world. Just like int he cloud each VM starts off isolated and will need to be exposed via a LoadBalancer, NodePort, or ClusterIp service. |
| service | list | `[{"externalTrafficPolicy":"Cluster","name":"service","ports":[{"name":"ssh","port":22,"protocol":"TCP","targetPort":22},{"name":"vnc","port":5900,"protocol":"TCP","targetPort":5900}],"type":"LoadBalancer"}]` | Service objects are used to expose the VM to the outside world. Just like int he cloud each VM starts off isolated and will need to be exposed via a LoadBalancer, NodePort, or ClusterIp service. |
| virtualMachine.features.acpiEnabled | bool | `true` | |
| virtualMachine.features.autoattachGraphicsDevice | bool | `true` | Attach a basic graphics device for VNC access |
| virtualMachine.features.autoattachPodInterface | bool | `true` | Make pod network interface the default for the VM |
@@ -36,7 +34,7 @@ Configure a virtual machine for use with Kubevirt
| virtualMachine.machine.pinCores | bool | `false` | Pin QEMU process to specific physical cores Requires `--cpu-manager-policy` enabled in kubelet |
| virtualMachine.machine.vCores | int | `4` | Number of Virtual cores to pass to the Guest |
| virtualMachine.name | string | `"scrapmetal"` | name of the virtualMachine or virtualMachinePool object |
| virtualMachine.namespace | string | `"default"` | namespace to deploy |
| virtualMachine.namespace | string | `"kubevirt"` | namespace to deploy |
| virtualMachine.runStrategy | string | `"RerunOnFailure"` | One of 'Always' `RerunOnFailure` `Manual` `Halted` |
| virtualMachinePool.enabled | bool | `false` | |
| virtualMachinePool.maxReplicas | int | `5` | |
39 changes: 16 additions & 23 deletions charts/kubevirt-vm/values.yaml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ virtualMachine:
name: scrapmetal

# -- namespace to deploy
namespace: default
namespace: kubevirt

# -- One of 'Always' `RerunOnFailure` `Manual` `Halted`
runStrategy: "RerunOnFailure"
@@ -210,24 +210,17 @@ service:
#########################
# NodePort Example
- name: service
type: NodePort
type: LoadBalancer
externalTrafficPolicy: Cluster
ports:
- name: ssh
port: 22
targetPort: 22
protocol: TCP
nodePort: 30001
- name: status
port: 1500
targetPort: 1500
protocol: TCP
nodePort: 30001
- name: vnc
port: 5900
targetPort: 5900
protocol: TCP
nodePort: 30005
#########################
# LaodBalancer Example
#- name: vm0-lb
@@ -249,19 +242,19 @@ cloudinit:
secretName: friend-scrapmetal-user-data

# -- set tieming and port number for liveness probe
livenessProbe:
initialDelaySeconds: 120
periodSeconds: 20
tcpSocket:
port: 1500
timeoutSeconds: 10
#livenessProbe:
# initialDelaySeconds: 120
# periodSeconds: 20
# tcpSocket:
# port: 1500
# timeoutSeconds: 10

# -- set tieming and port number for readiness probe
readinessProbe:
initialDelaySeconds: 120
periodSeconds: 20
timeoutSeconds: 10
failureThreshold: 3
successThreshold: 3
httpGet:
port: 1500
#readinessProbe:
# initialDelaySeconds: 120
# periodSeconds: 20
# timeoutSeconds: 10
# failureThreshold: 3
# successThreshold: 3
# httpGet:
# port: 1500

0 comments on commit 087da96

Please sign in to comment.