generated from phoenix-oss/tenant-tpl
Clean up and name conflic resolve
Signed-off-by: maximilian.bartz <maximilian.bartz@phoenix-systems.ch>
This commit is contained in:
parent
3ba56fe3d2
commit
583f604437
10 changed files with 8 additions and 215 deletions
14
ubuntu-vm-3/vm/pvc/ubuntu-datadisk.yaml
Normal file
14
ubuntu-vm-3/vm/pvc/ubuntu-datadisk.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: ubuntu-datadisk-3
|
||||
namespace: ${TENANT_NAMESPACE}
|
||||
labels:
|
||||
app: ubuntu-vm-3
|
||||
spec:
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
49
ubuntu-vm-3/vm/ubuntu/ubuntu-vm.yaml
Normal file
49
ubuntu-vm-3/vm/ubuntu/ubuntu-vm.yaml
Normal file
|
@ -0,0 +1,49 @@
|
|||
apiVersion: kubevirt.io/v1
|
||||
kind: VirtualMachine
|
||||
metadata:
|
||||
name: &name ubuntu-vm-3
|
||||
namespace: ${TENANT_NAMESPACE}
|
||||
spec:
|
||||
running: true
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: *name
|
||||
kubevirt.io/domain: *name
|
||||
spec:
|
||||
hostname: ubuntu
|
||||
subdomain: test
|
||||
domain:
|
||||
devices:
|
||||
disks:
|
||||
- disk:
|
||||
bus: scsi
|
||||
name: ubuntu-rootdisk-3
|
||||
- disk:
|
||||
bus: scsi
|
||||
name: ubuntu-datadisk
|
||||
- disk:
|
||||
bus: virtio
|
||||
name: cloudinit-disk
|
||||
cpu:
|
||||
sockets: 1
|
||||
cores: 2
|
||||
threads: 1
|
||||
resources:
|
||||
requests:
|
||||
cpu: 2
|
||||
memory: 2Gi
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: 2Gi
|
||||
volumes:
|
||||
- name: ubuntu-rootdisk-3
|
||||
containerDisk:
|
||||
image: quay.io/containerdisks/ubuntu:22.04
|
||||
- name: ubuntu-datadisk
|
||||
persistentVolumeClaim:
|
||||
claimName: ubuntu-datadisk-3
|
||||
- name: cloudinit-disk
|
||||
cloudInitNoCloud:
|
||||
secretRef:
|
||||
name: ubuntu-cloud-init
|
Loading…
Add table
Add a link
Reference in a new issue