use of com.coreos.monitoring.models.V1Prometheus in project java by kubernetes-client.
the class PromOpExample method main.
public static void main(String[] args) throws IOException, ApiException {
GenericKubernetesApi<V1Prometheus, V1PrometheusList> prometheusApi = new GenericKubernetesApi<>(V1Prometheus.class, V1PrometheusList.class, "monitoring.coreos.com", "v1", "prometheuses", ClientBuilder.defaultClient());
prometheusApi.create(new V1Prometheus().metadata(new V1ObjectMeta().namespace("default").name("my-prometheus")).kind("Prometheus").apiVersion("monitoring.coreos.com/v1").spec(new V1PrometheusSpec())).throwsApiException();
}
Aggregations