e1406d67d6dd33f04e2f32a68aa333eeb65a5ff5
[osm/devops.git] /
1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13 # implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
17
18 apiVersion: eks.aws.upbound.io/v1beta1
19 kind: NodeGroup
20 metadata:
21   name: ${cluster_resource_name}-nodegroup
22   annotations:
23     crossplane.io/external-name: ${cluster_name}-nodegroup
24   labels:
25     provider: aws
26     cluster: ${cluster_resource_name}
27 spec:
28   forProvider:
29     region: ${cluster_location}
30     clusterNameSelector:
31       matchLabels:
32         provider: aws
33         cluster: ${cluster_resource_name}
34         type: cluster
35     nodeRoleArnSelector:
36       matchLabels:
37         provider: aws
38         cluster: ${cluster_resource_name}
39         type: ec2
40     subnetIdSelector:
41         matchLabels:
42           cluster: ${cluster_resource_name}
43           type: subnet
44           access: private
45     scalingConfig:
46       - minSize: 1
47         desiredSize: ${node_count}
48         maxSize: 10
49     diskSize: 30
50     instanceTypes:
51       - ${vm_size}
52     tags:
53       Name: ${cluster_name}
54   # Use in case you wanted to use different credentials (i.e., ProviderConfig different than default)
55   providerConfigRef:
56     name: ${providerconfig_name}