# Kube Inventory plugin with both bearer token options
[[inputs.kube_inventory]]
  ## URL for the Kubernetes API
  url = "https://k8s-api.example.com:6443"

  ## User already has bearer_token configured - should be preserved
  bearer_token = "/var/run/secrets/kubernetes.io/serviceaccount/token"

  ## Deprecated bearer_token_string - should be removed but not override existing bearer_token
  bearer_token_string = "old_deprecated_token_456"

  ## Namespace to use
  namespace = "monitoring"

  ## Set response_timeout
  response_timeout = "10s"

  ## Optional Resources to exclude from gathering
  resource_exclude = [ "secrets" ]

  ## Optional Resources to include when gathering
  resource_include = [ "deployments", "nodes", "pods", "services" ]

  ## selectors to include and exclude as tags
  selector_include = ["app", "version", "component"]
  selector_exclude = ["internal.*"]

  ## Optional TLS Config
  # tls_ca = "/etc/ssl/certs/ca-certificates.crt"
  insecure_skip_verify = true