kind: NetworkInterface
spec:
name: "helloworld"
securityGroups: []
# ... Stuff
# Displays allowed use of SpEL; in this case NetworkInterface allows an iterable spec interface.
# `${ loop.count }` and other loop vars are made available automatically by `IterableSpec`
# `NetworkInterfacePoolSpec : NetworkInterfaceSpec, IterableSpec<NetworkInterfaceSpec>`. The
# interface then knows what the schema is for processing `NetworkInterfacePoolSpec`.
kind: NetworkInterfacePool
spec:
kind: ClusterBound
# Simple: Just creates the pool with the defined configuration
# ClusterBound: Will automatically attempt to bind the network interfaces to servers in the
# defined cluster. Will bind using `apply` strategy.
count: 20
name: "helloworld-${ loop.count }"
# more fields defined by NetworkInterfaceSpec
cluster:
name: "myapp-helloworld"
apply: newest # any|newest
# way, way, way down the line (2019?), could do something like...
# standard notify message any time the cluster state changes (attach, detach, etc)
onChange: "sns:arn"