kops spot instance

This commit is contained in:
havelight-ee
2022-12-07 18:20:21 +09:00
parent 52977e00e0
commit 7271592aa1
6 changed files with 224 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: k8s-spot.datasaker.io
name: k8s-spot-process-a
spec:
image: ami-0409b7ddbc59e3222
machineType: m5a.xlarge
manager: CloudGroup
maxSize: 1
minSize: 1
mixedInstancesPolicy:
onDemandAboveBase: 0
onDemandBase: 0
spotAllocationStrategy: capacity-optimized
nodeLabels:
datasaker/group: process
kops.k8s.io/instancegroup: k8s-spot-process-a
rootVolumeSize: 100
role: Node
subnets:
- ap-northeast-2a

View File

@@ -0,0 +1,24 @@
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: k8s-spot.datasaker.io
name: k8s-spot-process-a2
spec:
image: ami-0409b7ddbc59e3222
machineType: m5a.xlarge
manager: CloudGroup
maxSize: 1
minSize: 1
mixedInstancesPolicy:
onDemandAboveBase: 0
onDemandBase: 0
spotAllocationStrategy: capacity-optimized
nodeLabels:
datasaker/group: process
kops.k8s.io/instancegroup: k8s-spot-process-a2
rootVolumeSize: 100
role: Node
subnets:
- ap-northeast-2a

View File

@@ -0,0 +1,24 @@
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: k8s-spot.datasaker.io
name: k8s-spot-process-b
spec:
image: ami-0409b7ddbc59e3222
machineType: m6i.xlarge
manager: CloudGroup
maxSize: 1
minSize: 1
mixedInstancesPolicy:
onDemandAboveBase: 0
onDemandBase: 0
spotAllocationStrategy: capacity-optimized
nodeLabels:
datasaker/group: process
kops.k8s.io/instancegroup: k8s-spot-process-b
rootVolumeSize: 100
role: Node
subnets:
- ap-northeast-2b

View File

@@ -0,0 +1,20 @@
---
apiVersion: kops.k8s.io/v1alpha2
kind: InstanceGroup
metadata:
labels:
kops.k8s.io/cluster: k8s-spot.datasaker.io
name: k8s-spot-process-c
spec:
image: ami-0409b7ddbc59e3222
machineType: m5a.xlarge
manager: CloudGroup
maxSize: 1
minSize: 1
nodeLabels:
datasaker/group: process
kops.k8s.io/instancegroup: k8s-spot-process-c
rootVolumeSize: 100
role: Node
subnets:
- ap-northeast-2c