github.com/google/cloudprober@v0.11.3/rds/kubernetes/proto/config.proto (about) 1 // Configuration proto for Kubernetes provider. 2 // 3 // Example provider config: 4 // { 5 // pods {} 6 // } 7 // 8 // In probe config: 9 // probe { 10 // targets{ 11 // rds_targets { 12 // resource_path: "k8s://pods" 13 // filter { 14 // key: "namespace" 15 // value: "default" 16 // } 17 // filter { 18 // key: "name" 19 // value: "cloudprober.*" 20 // } 21 // } 22 // } 23 // } 24 syntax = "proto2"; 25 26 package cloudprober.rds.kubernetes; 27 28 import "github.com/google/cloudprober/common/tlsconfig/proto/config.proto"; 29 30 option go_package = "github.com/google/cloudprober/rds/kubernetes/proto"; 31 32 message Pods {} 33 34 message Endpoints {} 35 36 message Services {} 37 38 message Ingresses {} 39 40 // Kubernetes provider config. 41 message ProviderConfig { 42 // Namespace to list resources for. If not specified, we default to all 43 // namespaces. 44 optional string namespace = 1; 45 46 // Pods discovery options. This field should be declared for the pods 47 // discovery to be enabled. 48 optional Pods pods = 2; 49 50 // Endpoints discovery options. This field should be declared for the 51 // endpoints discovery to be enabled. 52 optional Endpoints endpoints = 3; 53 54 // Services discovery options. This field should be declared for the 55 // services discovery to be enabled. 56 optional Services services = 4; 57 58 // Ingresses discovery options. This field should be declared for the 59 // ingresses discovery to be enabled. 60 // Note: Ingress support is experimental and may change in future. 61 optional Ingresses ingresses = 5; 62 63 // Kubernetes API server address. If not specified, we assume in-cluster mode 64 // and get it from the local environment variables. 65 optional string api_server_address = 91; 66 67 // TLS config to authenticate communication with the API server. 68 optional tlsconfig.TLSConfig tls_config = 93; 69 70 // How often resources should be evaluated/expanded. 71 optional int32 re_eval_sec = 99 [default = 60]; // default 1 min 72 }