Skip to content

Commit

Permalink
add centos machine
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Tavares committed Mar 13, 2024
1 parent e43b728 commit 6cd2060
Showing 1 changed file with 90 additions and 0 deletions.
90 changes: 90 additions & 0 deletions vms/centos-gitops1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
apiVersion: v1
items:
- apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
annotations:
vm.kubevirt.io/validations: |
[
{
"name": "minimal-required-memory",
"path": "jsonpath::.spec.domain.resources.requests.memory",
"rule": "integer",
"message": "This VM requires more memory.",
"min": 1610612736
}
]
labels:
app: centos-stream9-rpb4hgojbhjepns4
vm.kubevirt.io/template: centos-stream9-server-small
vm.kubevirt.io/template.revision: "1"
vm.kubevirt.io/template.version: v0.25.0
name: centos-stream9-rpb4hgojbhjepns4
spec:
dataVolumeTemplates:
- apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: centos-stream9-rpb4hgojbhjepns4
spec:
sourceRef:
kind: DataSource
name: centos-stream9
namespace: openshift-virtualization-os-images
storage:
resources:
requests:
storage: 30Gi
running: true
template:
metadata:
annotations:
vm.kubevirt.io/flavor: small
vm.kubevirt.io/os: centos-stream9
vm.kubevirt.io/workload: server
labels:
kubevirt.io/domain: centos-stream9-rpb4hgojbhjepns4
kubevirt.io/size: small
spec:
domain:
cpu:
cores: 1
sockets: 1
threads: 2
devices:
disks:
- disk:
bus: virtio
name: rootdisk
- disk:
bus: virtio
name: cloudinitdisk
interfaces:
- masquerade: {}
model: virtio
name: default
networkInterfaceMultiqueue: true
rng: {}
machine:
type: pc-q35-rhel9.2.0
resources:
requests:
memory: 4Gi
evictionStrategy: LiveMigrate
networks:
- name: default
pod: {}
terminationGracePeriodSeconds: 180
volumes:
- dataVolume:
name: centos-stream9-rpb4hgojbhjepns4
name: rootdisk
- cloudInitNoCloud:
userData: |-
#cloud-config
user: centos
password: lobh-y3k1-5g6k
chpasswd: { expire: False }
name: cloudinitdisk
kind: List
metadata: {}

0 comments on commit 6cd2060

Please sign in to comment.