Skip to content

Commit

Permalink
Introduce and use a micro size server instancetype
Browse files Browse the repository at this point in the history
This should be suitable for use with CirrOS [1] and other minimal test
OSes used by KubeVirt CI.

[1] cirros-dev/cirros#53

Signed-off-by: Lee Yarwood <[email protected]>
  • Loading branch information
lyarwood committed Nov 4, 2022
1 parent 3adec0b commit d83d9b4
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ VirtualMachineClusterInstancetype
server.medium
---
VirtualMachineClusterInstancetype
server.micro
---
VirtualMachineClusterInstancetype
server.small
---
VirtualMachineClusterInstancetype
Expand Down Expand Up @@ -184,6 +187,9 @@ VirtualMachineInstancetype
server.medium
---
VirtualMachineInstancetype
server.micro
---
VirtualMachineInstancetype
server.small
---
VirtualMachineInstancetype
Expand Down
12 changes: 12 additions & 0 deletions common-clusterinstancetypes-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ spec:
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineClusterInstancetype
metadata:
labels:
kubevirt.io/size: mirco
name: server.micro
spec:
cpu:
guest: 1
memory:
guest: 256Mi
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineClusterInstancetype
metadata:
labels:
kubevirt.io/size: small
Expand Down
24 changes: 24 additions & 0 deletions common-instancetypes-all-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ spec:
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineClusterInstancetype
metadata:
labels:
kubevirt.io/size: mirco
name: server.micro
spec:
cpu:
guest: 1
memory:
guest: 256Mi
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineClusterInstancetype
metadata:
labels:
kubevirt.io/size: small
Expand Down Expand Up @@ -827,6 +839,18 @@ spec:
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineInstancetype
metadata:
labels:
kubevirt.io/size: mirco
name: server.micro
spec:
cpu:
guest: 1
memory:
guest: 256Mi
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineInstancetype
metadata:
labels:
kubevirt.io/size: small
Expand Down
12 changes: 12 additions & 0 deletions common-instancetypes-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ spec:
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineInstancetype
metadata:
labels:
kubevirt.io/size: mirco
name: server.micro
spec:
cpu:
guest: 1
memory:
guest: 256Mi
---
apiVersion: instancetype.kubevirt.io/v1alpha2
kind: VirtualMachineInstancetype
metadata:
labels:
kubevirt.io/size: small
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ resources:
- ./medium
- ./small
- ./tiny
- ./micro
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base

components:
- ../../sizes/micro
13 changes: 13 additions & 0 deletions common-instancetypes/instancetypes/sizes/micro/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

nameSuffix: .micro

patches:
- path: micro.yaml
target:
kind: VirtualMachineInstancetype
- path: micro.yaml
target:
kind: VirtualMachineClusterInstancetype
12 changes: 12 additions & 0 deletions common-instancetypes/instancetypes/sizes/micro/micro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: instancetype.kubevirt.io/v1alpha1
kind: VirtualMachineInstancetype
metadata:
name: VirtualMachineInstancetype
labels:
kubevirt.io/size: mirco
spec:
cpu:
guest: 1
memory:
guest: 256Mi

0 comments on commit d83d9b4

Please sign in to comment.