test ubuntu simple

This commit is contained in:
maximilian.bartz 2025-08-14 17:12:57 +02:00
parent 18efeeef18
commit 3396f65ef9
3 changed files with 69 additions and 0 deletions

View file

@ -14,6 +14,7 @@ resources:
- ubuntu-vm-3/ks.yaml - ubuntu-vm-3/ks.yaml
- ubuntu-vm-4-john/ks.yaml - ubuntu-vm-4-john/ks.yaml
- ubuntu-vm-5/ks.yaml - ubuntu-vm-5/ks.yaml
- ubuntu-vm-6/ks.yaml
- container/ks-debug.yaml - container/ks-debug.yaml
- templates/image-server/ks-nginx.yaml - templates/image-server/ks-nginx.yaml
- templates/image-server/ks-pvc.yaml - templates/image-server/ks-pvc.yaml

18
ubuntu-vm-6/ks.yaml Normal file
View file

@ -0,0 +1,18 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app ubuntu-vm-6
namespace: ${TENANT_NAMESPACE}
spec:
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./ubuntu-vm-3/ubuntu
prune: true
sourceRef:
kind: GitRepository
name: tenant-repos
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

View file

@ -0,0 +1,50 @@
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: ubuntu-vm-3
namespace: ${TENANT_NAMESPACE}
spec:
running: true
template:
metadata:
labels:
kubevirt.io/domain: ubuntu-vm-3
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
users:
- name: testuser
groups: [sudo]
sudo: "ALL=(ALL) NOPASSWD:ALL"
lock_passwd: false
passwd: "$6$oMZf5uou7t0.oAJ1$825Te06yt7JZwHSSj4MGQMjpd87LflANQpajCwIVPASkKZdOJo4L2bAEDDuK.jtu.fsRNc9bZAsYefmoqdN8O1"
chpasswd:
expire: false
ssh_pwauth: true