-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
344 additions
and
3 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
files/manifests/kubevirt/armbian/armbian_vm2_pvc_x86_64.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: 2018-07-04T15:03:08Z | ||
generation: 1 | ||
labels: | ||
kubevirt.io/os: linux | ||
name: armbian-vm2 | ||
spec: | ||
running: true | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
kubevirt.io/domain: vm2 | ||
spec: | ||
domain: | ||
cpu: | ||
cores: 4 | ||
devices: | ||
interfaces: | ||
- name: podnet | ||
masquerade: {} | ||
- name: hostnetwork | ||
bridge: {} | ||
# - name: hostnetwork | ||
# binding: | ||
# name: macvtap | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: disk0 | ||
- disk: | ||
bus: virtio | ||
readonly: true | ||
name: cloudinitdisk | ||
features: | ||
acpi: {} | ||
smm: | ||
enabled: false | ||
firmware: | ||
bootloader: | ||
efi: | ||
secureBoot: false | ||
resources: | ||
requests: | ||
memory: 11G | ||
networks: | ||
- name: podnet | ||
pod: {} | ||
- name: hostnetwork | ||
multus: | ||
networkName: bridge-test | ||
# - name: hostnetwork | ||
# multus: | ||
# networkName: macvtapnetwork | ||
volumes: | ||
- name: disk0 | ||
persistentVolumeClaim: | ||
claimName: armbian | ||
- cloudInitNoCloud: | ||
networkData: | | ||
version: 2 | ||
ethernets: | ||
enp1s0: | ||
addresses: [ fd10:0:2::2/120 ] | ||
dhcp4: true | ||
gateway6: fd10:0:2::1 | ||
userData: | | ||
#cloud-config | ||
hostname: vm2 | ||
password: root | ||
chpasswd: { expire: False } | ||
ssh_pwauth: True | ||
disable_root: false | ||
ssh_authorized_keys: | ||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAhF7pobuxW0ulzW5nEU2CiC9miWV350/F/+JfeDMXF Its 2021 people have died and its time for a new key | ||
name: cloudinitdisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: cdi.kubevirt.io/v1beta1 | ||
kind: DataVolume | ||
metadata: | ||
name: "armbian" | ||
spec: | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 40Gi | ||
source: | ||
http: | ||
# url: "https://github.com/armsurvivors/armbian-release/releases/download/24.08.23-armsurvivors-423/Armbian-unofficial_24.08.23-armsurvivors-423_Uefi-x86_bookworm_current_6.6.47-metadata-cloud-k8s-1.30.img.qcow2.xz" | ||
# bad # url: "https://github.com/armsurvivors/armbian-release/releases/download/24.08.23-armsurvivors-423/Armbian-unofficial_24.08.23-armsurvivors-423_Uefi-x86_bookworm_edge_6.10.6-metadata-cloud.img.qcow2.xz" | ||
#url: "https://github.com/armsurvivors/armbian-release/releases/download/24.08.21-armsurvivors-417/Armbian-unofficial_24.08.21-armsurvivors-417_Uefi-x86_bookworm_edge_6.10.6-metadata-cloud-k8s-1.30.img.qcow2.xz" | ||
url: "https://github.com/armsurvivors/armbian-release/releases/download/24.08.23-armsurvivors-423/Armbian-unofficial_24.08.23-armsurvivors-423_Uefi-x86_bookworm_edge_6.10.6-metadata-cloud-k8s-1.30.img.qcow2.xz" |
12 changes: 12 additions & 0 deletions
12
files/manifests/kubevirt/bridge/bridge_attachment_definition.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: "k8s.cni.cncf.io/v1" | ||
kind: NetworkAttachmentDefinition | ||
metadata: | ||
name: bridge-test | ||
spec: | ||
config: '{ | ||
"cniVersion": "0.3.1", | ||
"name": "bridge-test", | ||
"type": "bridge", | ||
"bridge": "bridge0", | ||
"disableContainerInterface": false | ||
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: kubevirt.io/v1 | ||
kind: KubeVirt | ||
metadata: | ||
name: kubevirt | ||
namespace: kubevirt | ||
spec: | ||
configuration: | ||
developerConfiguration: | ||
featureGates: | ||
# - DataVolumes | ||
- NetworkBindingPlugins |
60 changes: 60 additions & 0 deletions
60
files/manifests/kubevirt/debian/debian_vm1_pvc_x86_64.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: 2018-07-04T15:03:08Z | ||
generation: 1 | ||
labels: | ||
kubevirt.io/os: linux | ||
name: debian-vm1 | ||
spec: | ||
running: true | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
kubevirt.io/domain: vm1 | ||
spec: | ||
domain: | ||
cpu: | ||
cores: 2 | ||
devices: | ||
interfaces: | ||
- name: default | ||
masquerade: {} | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: disk0 | ||
- disk: | ||
bus: virtio | ||
readonly: true | ||
name: cloudinitdisk | ||
resources: | ||
requests: | ||
memory: 1024M | ||
networks: | ||
- name: default | ||
pod: {} | ||
volumes: | ||
- name: disk0 | ||
persistentVolumeClaim: | ||
claimName: debian | ||
- cloudInitNoCloud: | ||
networkData: | | ||
version: 2 | ||
ethernets: | ||
enp1s0: | ||
addresses: [ fd10:0:2::2/120 ] | ||
dhcp4: true | ||
gateway6: fd10:0:2::1 | ||
userData: | | ||
#cloud-config | ||
hostname: vm1 | ||
password: root | ||
chpasswd: { expire: False } | ||
ssh_pwauth: True | ||
disable_root: false | ||
ssh_authorized_keys: | ||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAhF7pobuxW0ulzW5nEU2CiC9miWV350/F/+JfeDMXF Its 2021 people have died and its time for a new key | ||
name: cloudinitdisk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: cdi.kubevirt.io/v1beta1 | ||
kind: DataVolume | ||
metadata: | ||
name: "debian" | ||
spec: | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
source: | ||
http: | ||
url: "https://cloud.debian.org/images/cloud/bookworm/latest/debian-12-generic-amd64.raw" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: cdi.kubevirt.io/v1beta1 | ||
kind: DataVolume | ||
metadata: | ||
name: "fedora" | ||
spec: | ||
storage: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
source: | ||
http: | ||
#url: "https://download.fedoraproject.org/pub/fedora/linux/releases/40/Cloud/x86_64/images/Fedora-Cloud-Base-AmazonEC2.x86_64-40-1.14.raw.xz" | ||
url: "https://download.fedoraproject.org/pub/fedora/linux/releases/40/Cloud/x86_64/images/Fedora-Cloud-Base-Generic.x86_64-40-1.14.qcow2" |
60 changes: 60 additions & 0 deletions
60
files/manifests/kubevirt/fedora/fedora_vm3_pvc_x86_64.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
apiVersion: kubevirt.io/v1 | ||
kind: VirtualMachine | ||
metadata: | ||
creationTimestamp: 2018-07-04T15:03:08Z | ||
generation: 1 | ||
labels: | ||
kubevirt.io/os: linux | ||
name: fedora-vm3 | ||
spec: | ||
running: true | ||
template: | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
kubevirt.io/domain: vm3 | ||
spec: | ||
domain: | ||
cpu: | ||
cores: 2 | ||
devices: | ||
interfaces: | ||
- name: default | ||
masquerade: {} | ||
disks: | ||
- disk: | ||
bus: virtio | ||
name: disk0 | ||
- disk: | ||
bus: virtio | ||
readonly: true | ||
name: cloudinitdisk | ||
resources: | ||
requests: | ||
memory: 1024M | ||
networks: | ||
- name: default | ||
pod: {} | ||
volumes: | ||
- name: disk0 | ||
persistentVolumeClaim: | ||
claimName: fedora | ||
- cloudInitNoCloud: | ||
networkData: | | ||
version: 2 | ||
ethernets: | ||
enp1s0: | ||
addresses: [ fd10:0:2::2/120 ] | ||
dhcp4: true | ||
gateway6: fd10:0:2::1 | ||
userData: | | ||
#cloud-config | ||
hostname: vm3 | ||
password: root | ||
chpasswd: { expire: False } | ||
ssh_pwauth: True | ||
disable_root: false | ||
ssh_authorized_keys: | ||
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAhF7pobuxW0ulzW5nEU2CiC9miWV350/F/+JfeDMXF Its 2021 people have died and its time for a new key | ||
name: cloudinitdisk |
13 changes: 13 additions & 0 deletions
13
files/manifests/kubevirt/mactap/attachment_definition_bridge0.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
kind: NetworkAttachmentDefinition | ||
apiVersion: k8s.cni.cncf.io/v1 | ||
metadata: | ||
name: macvtapnetwork | ||
annotations: | ||
k8s.v1.cni.cncf.io/resourceName: macvtap.network.kubevirt.io/eno1 | ||
spec: | ||
config: '{ | ||
"cniVersion": "0.3.1", | ||
"name": "macvtapnetwork", | ||
"type": "macvtap", | ||
"mtu": 1500 | ||
}' |
6 changes: 6 additions & 0 deletions
6
files/manifests/kubevirt/mactap/mactap_minimal_configmap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: macvtap-deviceplugin-config | ||
data: | ||
DP_MACVTAP_CONF: "[]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
export ARCH_CNI=$([ $(uname -m) = aarch64 ] && echo arm64 || echo amd64) | ||
export CNI_PLUGIN_VERSION=v1.5.1 | ||
mkdir -p /opt/cni/bin | ||
curl -L -o cni-plugins.tgz "https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGIN_VERSION}/cni-plugins-linux-${ARCH_CNI}-${CNI_PLUGIN_VERSION}".tgz && | ||
tar -C /opt/cni/bin -xzf cni-plugins.tgz --wildcards --no-anchored 'bridge' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters