forked from zalando-stups/senza
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elastigroup.yaml
34 lines (30 loc) · 1.02 KB
/
elastigroup.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
SenzaInfo:
StackName: hello-world
StackVersion: latest
SpotinstAccessToken: <5da...dc7> # Token created using the SpotInst console for the target account
SenzaComponents:
- Configuration:
Type: Senza::StupsAutoConfiguration # auto-detect network setup
- AppServerElastigroup:
Type: Senza::Elastigroup
InstanceType: m3.large
SpotAlternatives:
- m3.large
- m4.large
- c3.large
- c4.large
SecurityGroups: default # for this to work make sure the default security group allows ingress on TCP/8000
ElasticLoadBalancerV2: AppLoadBalancer
TaupageConfig:
runtime: Docker
source: "crccheck/hello-world:latest"
health_check_path: /
ports:
8000: 8000
- AppLoadBalancer:
Type: Senza::WeightedDnsElasticLoadBalancerV2
HTTPPort: 8000
HealthCheckPath: /
SecurityGroups:
- default # for this to work make sure the default security group allows ingress on TCP/443
Scheme: internal