diff --git a/ubuntu-vm-2/ks.yaml b/ubuntu-vm-2/ks.yaml new file mode 100644 index 0000000..152cdec --- /dev/null +++ b/ubuntu-vm-2/ks.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: &app ubuntu-vm-2 + namespace: ${TENANT_NAMESPACE} +spec: + commonMetadata: + labels: + app.kubernetes.io/name: *app + path: ./ubuntu-vm-2/ubuntu + prune: true + sourceRef: + kind: GitRepository + name: tenant-repos + wait: false + interval: 30m + retryInterval: 1m + timeout: 5m diff --git a/ubuntu-vm-2/ubuntu/ubuntu-vm.yaml b/ubuntu-vm-2/ubuntu/ubuntu-vm.yaml new file mode 100644 index 0000000..fa99bf6 --- /dev/null +++ b/ubuntu-vm-2/ubuntu/ubuntu-vm.yaml @@ -0,0 +1,46 @@ +--- +apiVersion: cdi.kubevirt.io/v1beta1 +kind: DataVolume +metadata: + name: ubuntu-dv-2 + namespace: kubevirt-vms +spec: + source: + http: + url: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img" + contentType: kubevirt + pvc: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 40Gi + storageClassName: standard +--- +apiVersion: kubevirt.io/v1 +kind: VirtualMachine +metadata: + name: ubuntu-vm-2 + namespace: kubevirt-vms +spec: + running: true + template: + metadata: + labels: + kubevirt.io/domain: ubuntu-vm-2 + spec: + domain: + cpu: + cores: 2 + devices: + disks: + - name: rootdisk + disk: + bus: virtio + resources: + requests: + memory: 2Gi + volumes: + - name: rootdisk + persistentVolumeClaim: + claimName: ubuntu-dv-2 \ No newline at end of file