generated from phoenix-oss/tenant-tpl
add second machine
This commit is contained in:
parent
7f26175372
commit
1f688f0af5
2 changed files with 64 additions and 0 deletions
18
ubuntu-vm-2/ks.yaml
Normal file
18
ubuntu-vm-2/ks.yaml
Normal file
|
@ -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
|
46
ubuntu-vm-2/ubuntu/ubuntu-vm.yaml
Normal file
46
ubuntu-vm-2/ubuntu/ubuntu-vm.yaml
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue