From 88a93c67d3e703ae2739949b21b7b9566a179fa9 Mon Sep 17 00:00:00 2001 From: "john.leitao@phoenix-systems.ch" Date: Wed, 30 Jul 2025 13:44:53 +0200 Subject: [PATCH] oisndfoisf --- ubuntu-vm-3 john/ks.yaml | 18 ++++++++++ ubuntu-vm-3 john/ubuntu/ubuntu-vm.yaml | 48 ++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 ubuntu-vm-3 john/ks.yaml create mode 100644 ubuntu-vm-3 john/ubuntu/ubuntu-vm.yaml diff --git a/ubuntu-vm-3 john/ks.yaml b/ubuntu-vm-3 john/ks.yaml new file mode 100644 index 0000000..152cdec --- /dev/null +++ b/ubuntu-vm-3 john/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-3 john/ubuntu/ubuntu-vm.yaml b/ubuntu-vm-3 john/ubuntu/ubuntu-vm.yaml new file mode 100644 index 0000000..c4bc587 --- /dev/null +++ b/ubuntu-vm-3 john/ubuntu/ubuntu-vm.yaml @@ -0,0 +1,48 @@ +apiVersion: kubevirt.io/v1 +kind: VirtualMachine +metadata: + name: ubuntu-vm-3-john + namespace: kubevirt-vms +spec: + running: true + template: + metadata: + labels: + kubevirt.io/domain: ubuntu-vm-3-john + spec: + domain: + cpu: + cores: 2 + devices: + disks: + - disk: + bus: virtio + name: containerdisk + - disk: + bus: virtio + name: cloudinitdisk + resources: + requests: + memory: 2Gi + cpu: 1 + limits: + memory: 2Gi + cpu: 2 + memory: + guest: 2Gi + volumes: + - name: containerdisk + containerDisk: + image: quay.io/containerdisks/ubuntu:22.04 + - name: cloudinitdisk + cloudInitNoCloud: + userData: | + #cloud-config + hostname: ubuntu-vm-2 + ssh_pwauth: True + users: + - name: ubuntu + ssh-authorized-keys: + - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPqlhZW/pPLK8zENt3o6tgl0QVinhGAF1sHvajqq3UvI ubuntu + sudo: ['ALL=(ALL) NOPASSWD:ALL'] + shell: /bin/bash \ No newline at end of file