-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathspecification.yaml
41 lines (41 loc) · 1.08 KB
/
specification.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
name: load-generator
service_account_id: ${SERVICE_ACCOUNT_ID}
scale_policy:
fixed_scale:
size: 6
deploy_policy:
max_unavailable: 2
allocation_policy:
zones:
- zone_id: ru-central1-b
- zone_id: ru-central1-c
load_balancer_spec:
target_group_spec:
name: load-generator
instance_template:
service_account_id: ${SERVICE_ACCOUNT_ID}
platform_id: standard-v1
resources_spec:
memory: 4G
cores: 2
core_fraction: 100
metadata:
docker-container-declaration: |-
spec:
containers:
- image: cr.yandex/yc/demo/nginx-hostname:cli
name: nginx
securityContext:
privileged: false
restartPolicy: Always
tty: false
stdin: false
boot_disk_spec:
mode: READ_WRITE
disk_spec:
type_id: network-hdd
size: 10G
image_id: fd81a49qficqvt0dthu8 # yc compute image get-latest-from-family container-optimized-image --folder-id standard-images
network_interface_specs:
- network_id: ${NETWORK_ID}
primary_v4_address_spec: { one_to_one_nat_spec: { ip_version: IPV4 }}