project-config/grafana/create-nodepool.sh
Clark Boylan 48515a5fcc Add InMotion cloud to nodepool
This adds the new inmotion cloud to nodepool. We will upload images then
use a max server count of 8. There is potential to grow this number if
we can run an executor in this cloud that can hit node private addresses
or if we can get IPv6.

Depends-On: https://review.opendev.org/c/opendev/system-config/+/787425
Change-Id: I3d0d79bb13aebbaacc55c2b57d264f5832eb3951
2021-04-21 10:55:44 -07:00

31 lines
940 B
Bash
Executable File

#!/bin/bash
#
# Creates graphs for nodepool regions from a given provider
#
# Note we are somewhat particular about keeping these separate to
# avoid the idea that we are providing some sort of cross-provider
# benchmark.
#
function create {
local provider="$1"
local stat_list="$2"
local output_file="$3"
sed -e "s/%PROVIDER%/${provider}/; " \
-e "s/%STAT_LIST%/${stat_list}/" \
-e "s/%OUTPUT_FILE%/${output_file}/" \
nodepool.template > ${output_file}
}
create Rackspace 'rax-*' nodepool-rax.yaml
create Inap 'inap-*' nodepool-inap.yaml
create Limestone 'limestone-*' nodepool-limestone.yaml
create Linaro 'linaro-*' nodepool-linaro.yaml
create OVH 'ovh-*' nodepool-ovh.yaml
create Vexxhost 'vexxhost-*' nodepool-vexxhost.yaml
create Airship-Citycloud 'airship-*' nodepool-airship-citycloud.yaml
create OSUOSL 'osuosl-*' nodepool-osuosl.yaml
create InMotion 'inmotion-*' nodepool-inmotion.yaml