-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathblog.features.yml
More file actions
244 lines (238 loc) · 5.13 KB
/
blog.features.yml
File metadata and controls
244 lines (238 loc) · 5.13 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
---
# base file for services with the x-keys for BDD
version: '3.8'
secrets:
abcd: {}
john:
x-secrets:
Name: /cicd/shared/github.com/token
VarName: SOMETHING_GITHUB
zyx: {}
services:
app01:
stop_grace_period: 42s
logging:
driver: awslogs
options:
awslogs-group: a-custom-name
awslogs-create-group: "true"
sysctls:
- net.core.somaxconn=2048
- net.ipv4.tcp_syncookies=1
cap_add:
- ALL
# env_file: ./use-cases/env-files/dummy.env
deploy:
update_config:
failure_action: rollback
labels:
ecs.ephemeral.storage: 65
ecs.task.family: bignicefamily
resources:
reservations:
cpus: "0.25"
memory: 1GB
environment:
LOGLEVEL: DEBUG
SHELLY: /bin/bash
TERMY: screen
image: nginx
volumes:
- type: tmpfs
target: /tmp
tmpfs:
size: 1024
- normal-vol:/var/tmp/shared
- some-volume:/var/anotherpath:ro
- shared-images:/app/images
links:
- app03:dateteller
ports:
- mode: awsvpc
protocol: tcp
published: 5000
target: 5000
secrets:
- zyx
x-logging:
RetentionInDays: 1337
x-network:
Ingress:
Myself: False
AwsSources:
- Type: PrefixList
Id: pl-6da54004
x-iam:
Policies:
- PolicyName: AllowPublishToCw
PolicyDocument:
Version: "2012-10-17"
Statement:
- Action:
- cloudwatch:PutMetricData
Effect: Allow
Resource:
- '*'
Sid: AllowPublishMetricsToCw
x-xray: false
x-scaling:
Range: "1-4"
ScheduledActions:
- Timezone: Europe/London
Schedule: rate(1h)
ScheduledActionName: Scale.Up_EveryHour
ScalableTargetAction:
MinCapacity: 1
MaxCapacity: 2
- Timezone: Europe/London
Schedule: rate(1h)
ScheduledActionName: ScaleDown
ScalableTargetAction:
MaxCapacity: 2
MinCapacity: 2
- Timezone: Europe/London
Schedule: rate(1h)
ScheduledActionName: Bump The Max
ScalableTargetAction:
MaxCapacity: 4
app02:
depends_on:
- app01
- bignicefamily
# env_file:
# - ./use-cases/env-files/dummy.env
deploy:
update_config:
failure_action: pause
labels:
ecs.ephemeral.storage: 12128GB
ecs.task.family: youtoo
replicas: 2
resources:
reservations:
cpus: '0.1'
memory: 64000kB
environment:
LOGLEVEL: DEBUG
healthcheck:
interval: 1m30s
timeout: 10s
start_period: 15s
retries: 3
test:
- CMD
- curl
- localhost:5000/ping
image: nginx
ports:
- mode: awsvpc
protocol: tcp
published: 5000
target: 5000
secrets:
- zyx
volumes:
- source: some-volume
target: /app/data
type: volume
x-iam:
PermissionsBoundary: arn:aws:iam::aws:policy/AdministratorAccess
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AdministratorAccess
x-scaling:
Range: "1-5"
TargetScaling:
DisableScaleIn: true
x-xray: false
tmpfs: /run
app03:
tmpfs:
- /run
- /tmp
sysctls:
net.core.somaxconn: 1024
net.ipv4.tcp_syncookies: 0
cap_add:
- NET_ADMIN
- SYS_PTRACE
cap_drop:
- SYS_ADMIN
ulimits:
nofile:
soft: 1024
hard: 2048
nproc: 512
x-aws-min_percent: 50
x-aws-max_percent: 150
deploy:
labels:
ecs.ephemeral.storage: 20
testing: value
resources:
reservations:
cpus: '0.25'
memory: 134217728b
environment:
LOGLEVEL: DEBUG
image: nginx
ports:
- mode: awsvpc
protocol: tcp
published: 5000
target: 5000
secrets:
- abcd
- zyx
- john
volumes:
- /generated/volume/from/path
- shared-images:/app/images
- some-volume:/app/data:ro
x-network:
Ingress:
Myself: False
ExtSources:
- IPv4: 0.0.0.0/0
Name: ANYWHERE
x-logging:
RetentionInDays: 30
x-scaling:
Range: 1-10
rproxy:
logging:
driver: awslogs
options:
awslogs-region: us-east-1
depends_on:
- app01
- app02
deploy:
labels:
ecs.task.family: bignicefamily,youtoo
ecs.ephemeral.storage: 175
replicas: 1
resources:
limits:
cpus: '0.25'
memory: 64M
reservations:
cpus: '0.1'
memory: 32M
image: nginx
volumes:
- normal-vol:/tmp/shared
ports:
- mode: awsvpc
protocol: tcp
published: 80
target: 80
x-iam:
ManagedPolicyArns:
- arn:aws:iam::aws:policy/ReadOnlyAccess
x-xray: true
volumes:
shared-images: {}
some-volume: {}
normal-vol: {}
x-tags:
costcentre: lambda