-
Notifications
You must be signed in to change notification settings - Fork 207
/
worker.machineset.yaml
71 lines (71 loc) · 2.14 KB
/
worker.machineset.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
apiVersion: cluster.k8s.io/v1alpha1
kind: MachineSet
metadata:
name: worker
namespace: {{ .TargetNamespace }}
labels:
sigs.k8s.io/cluster-api-cluster: {{.AWS.ClusterName}}
sigs.k8s.io/cluster-api-machine-role: worker
sigs.k8s.io/cluster-api-machine-type: worker
spec:
replicas: {{.AWS.Replicas}}
selector:
matchLabels:
sigs.k8s.io/cluster-api-machineset: worker
sigs.k8s.io/cluster-api-cluster: {{.AWS.ClusterName}}
template:
metadata:
labels:
sigs.k8s.io/cluster-api-machineset: worker
sigs.k8s.io/cluster-api-cluster: {{.AWS.ClusterName}}
sigs.k8s.io/cluster-api-machine-role: worker
sigs.k8s.io/cluster-api-machine-type: worker
spec:
providerConfig:
value:
apiVersion: aws.cluster.k8s.io/v1alpha1
kind: AWSMachineProviderConfig
{{- if .AWS.WithCreds }}
credentialsSecret:
name: aws-credentials-secret
{{- end}}
ami:
id: {{.AWS.Image}}
filters:
- name: "name"
values:
- CoreOS-{{.AWS.ReleaseChannel}}-{{.AWS.ContainerLinuxVersion}}-*
- name: "architecture"
values:
- "x86_64"
- name: "virtualization-type"
values:
- "hvm"
- name: "owner-id"
values:
- "595879546273"
instanceType: m4.large
placement:
region: {{.AWS.Region}}
availabilityZone: {{.AWS.AvailabilityZone}}
subnet:
filters:
- name: "tag:Name"
values:
- "{{.AWS.ClusterName}}-worker-*"
iamInstanceProfile:
id: "{{.AWS.ClusterName}}-worker-profile"
tags:
- name: tectonicClusterID
value: {{.AWS.ClusterID}}
securityGroups:
- filters:
- name: "tag:Name"
values:
- "{{.AWS.ClusterName}}_worker_sg"
userDataSecret:
name: ignition-worker
versions:
kubelet: ""
controlPlane: ""