-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodegroup-spot.yaml
More file actions
31 lines (31 loc) · 1.02 KB
/
Copy pathnodegroup-spot.yaml
File metadata and controls
31 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# EKS Managed Node Group with SPOT instances in eu-central-1
# References the IAM Role from iam-node-role.yaml (nodeRoleArnRef). Replace subnetIds; clusterNameRef must match Cluster.
# Apply after the Cluster is READY.
apiVersion: eks.aws.upbound.io/v1beta1
kind: NodeGroup
metadata:
name: my-eks-spot-nodegroup
spec:
forProvider:
region: eu-central-1
# Must match the Cluster metadata.name
clusterNameRef:
name: my-eks-cluster
# Reference to the IAM Role created by iam-node-role.yaml (Role is in crossplane-system)
nodeRoleArnRef:
name: eks-node-role
namespace: crossplane-system
subnetIds:
- subnet-xxxxxxxxxxxxxxxxx
- subnet-yyyyyyyyyyyyyyyyy
# Spot instances
capacityType: SPOT
# Multiple instance types recommended for Spot (diversity = fewer interruptions)
instanceTypes:
- t3.medium
- t3a.medium
scalingConfig:
minSize: 1
maxSize: 5
desiredSize: 2
# providerConfigRef optional (default ClusterProviderConfig used if omitted)