-
Notifications
You must be signed in to change notification settings - Fork 120
/
aws-machine-class.yaml
42 lines (41 loc) · 2.11 KB
/
aws-machine-class.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
# Sample AWS machine class
apiVersion: machine.sapcloud.io/v1alpha1
kind: AWSMachineClass
metadata:
name: test-aws # Name of aws machine class goes here
namespace: default # Namespace in which the machine class is to be deployed
spec:
ami: ami-123456 # Amazon machine image name goes here
region: eu-east-1 # Region in which machine is to be deployed
machineType: t2.large # Type of ec2 machine
iam:
name: iam-name # Name of the AWS Identity and Access Management
keyName: key-value-pair-name # EC2 keypair used to access ec2 machine
networkInterfaces:
- subnetID: subnet-acbd1234 # The subnetID in which machine is to be deployed
securityGroupIDs: ["sg-xyz12345"] # The security groups to which it is attached to
tags:
Name: sample-machine-name # Name tag that can be used to identify a machine at AWS
kubernetes.io/cluster/YOUR_CLUSTER_NAME: "1" # This is mandatory as the safety controller uses this tag to identify VMs created by this controller.
kubernetes.io/role/YOUR_ROLE_NAME: "1" # This is mandatory as the safety controller uses this tag to identify VMs created by by this controller.
tag1: tag1-value # A set of additional tags attached to a machine (optional)
tag2: tag2-value # A set of additional tags attached to a machine (optional)
secretRef: # Secret pointing to a secret which contains the provider secret and cloudconfig
namespace: default # Namespace
name: test-secret # Name of the secret
# credentialsSecretRef: # Optional - Kubernetes secret containing only provider secrets (in this case the Secret in the secretRef does not need them)
# name: "test-secret-credentials" # Name of the secret
# namespace: "default" # Namespace of secret
blockDevices:
- deviceName: /root
ebs:
volumeSize: 50 # Size of the root block device
volumeType: gp2 # Type of the root block device
encrypted: false
deleteOnTermination: true
- deviceName: /dev/sdb
ebs:
volumeSize: 50 # Size of the root block device
volumeType: gp2 # Type of the root block device
encrypted: true
deleteOnTermination: true