E M b8f9cb7297
use correct taint, not label
Was preventing pods from starting correctly, due to affinity/selector mismatch
2026-04-29 19:12:39 +10:00

25 lines
812 B
C#

using KubernetesWorkflow;
using KubernetesWorkflow.Recipe;
namespace MetricsPlugin
{
public class PrometheusContainerRecipe : ContainerRecipeFactory
{
public override string AppName => "prometheus";
public override string Image => "logosstorage/dist-tests-prometheus:latest";
public const string PortTag = "prometheus_port_tag";
protected override void Initialize(StartupConfig startupConfig)
{
var config = startupConfig.Get<PrometheusStartupConfig>();
ScheduleInPoolsWithLabel("workload-type", "tests-pods");
AddToleration("cloud.google.com/gke-spot", "true", "NoSchedule");
AddExposedPortAndVar("PROM_PORT", PortTag);
AddEnvVar("PROM_CONFIG", config.PrometheusConfigBase64);
}
}
}