From c0fcae364d61c28a474f36ad614ec4933eda6de7 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Fri, 30 Aug 2024 12:28:14 +0200 Subject: [PATCH] use bridge binding for Kubernetes VMs Signed-off-by: Andrei Kvapil --- packages/apps/kubernetes/Chart.yaml | 2 +- packages/apps/kubernetes/templates/cluster.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/apps/kubernetes/Chart.yaml b/packages/apps/kubernetes/Chart.yaml index 746d9685..fcd0f184 100644 --- a/packages/apps/kubernetes/Chart.yaml +++ b/packages/apps/kubernetes/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.9.0 +version: 0.10.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/packages/apps/kubernetes/templates/cluster.yaml b/packages/apps/kubernetes/templates/cluster.yaml index 8932501e..72358c24 100644 --- a/packages/apps/kubernetes/templates/cluster.yaml +++ b/packages/apps/kubernetes/templates/cluster.yaml @@ -18,6 +18,8 @@ spec: runStrategy: Always template: metadata: + annotations: + kubevirt.io/allow-pod-bridge-network-live-migration: "true" labels: {{- range .group.roles }} node-role.kubernetes.io/{{ . }}: "" @@ -38,7 +40,9 @@ spec: disk: bus: virtio pciAddress: 0000:08:00.0 - networkInterfaceMultiqueue: true + interfaces: + - name: default + bridge: {} memory: guest: {{ .group.resources.memory }} evictionStrategy: External @@ -49,6 +53,9 @@ spec: - name: ephemeral emptyDisk: capacity: {{ .group.ephemeralStorage | default "20Gi" }} + networks: + - name: default + pod: {} {{- end }} --- apiVersion: cluster.x-k8s.io/v1beta1