Files
nodepool/nodepool/tests/fixtures/config_validate/aws-fleet-good.yaml
Benedikt Loeffler 7d31a8e79f Support EC2 Fleet API
This change adds support for launching Amazon EC2 instances
(On-Demand and Spot), using the EC2 fleet API.

One key difference comparing to other type of labels is the quota
information can not be determined by the label itself, it is only
known after the instance is launched.

Therefore, when EC2 fleet API is configured, quota is not checked
before launching the instance, but the quota would be taken into
account after the instance is launched.

In the current change the `InstanceRequirements` is not supported.

Change-Id: I1759d3539ef79d4a556661898553396d85aa69fa
Co-Authored-By: James E. Blair <jim@acmegating.com>
Co-Authored-By: Dong Zhang <dong.zhang@bmw.de>
2024-07-23 09:49:07 +02:00

36 lines
786 B
YAML

elements-dir: /etc/nodepool/elements
images-dir: /opt/nodepool_dib
zookeeper-servers:
- host: zk1.openstack.org
port: 2181
chroot: /test
labels:
- name: ubuntu1404-on-demand
- name: ubuntu1404-spot
providers:
- name: ec2-us-west-2
driver: aws
region-name: us-west-2
cloud-images:
- name: ubuntu1404
image-id: ami-1e749f67
username: ubuntu
pools:
- name: main
max-servers: 10
node-attributes:
key1: value1
key2: value2
labels:
- name: ubuntu1404-on-demand
cloud-image: ubuntu1404
key-name: zuul
fleet:
instance-types:
- t3.small
- t3.large
allocation-strategy: lowest-price