# Kube Inventory plugin with deprecated bearer_token_string
[[inputs.kube_inventory]]
  ## URL for the Kubernetes API
  url = "https://kubernetes.default.svc"

  ## Deprecated bearer_token_string option - should be migrated to bearer_token file
  bearer_token_string = "eyJhbGciOiJSUzI1NiIsImtpZCI6IjEyMzQ1In0..."

  ## Namespace to use. Set to "" to use all namespaces.
  namespace = "default"

  ## Use bearer token for authorization. ('bearer_token' takes priority)
  ## If both of these are empty, we'll use the default serviceaccount:
  ## at: /var/run/secrets/kubernetes.io/serviceaccount/token
  # bearer_token = "/var/run/secrets/kubernetes.io/serviceaccount/token"

  ## Set response_timeout (default 5 seconds)
  response_timeout = "5s"

  ## Optional Resources to exclude from gathering
  ## Leave them with blank with try to gather everything available.
  ## Values can be - "daemonsets", "deployments", "endpoints", "ingress",
  ## "nodes", "persistentvolumes", "persistentvolumeclaims", "pods", "services",
  ## "statefulsets"
  resource_exclude = [ "deployments", "services" ]

  ## Optional Resources to include when gathering
  ## Overrides resource_exclude when both set.
  # resource_include = [ "deployments", "nodes", "pods" ]

  ## selectors to include and exclude as tags
  # selector_include = ["app", "release"]
  # selector_exclude = ["*"]

  ## Optional TLS Config
  # tls_ca = "/path/to/cafile"
  # tls_cert = "/path/to/certfile"
  # tls_key = "/path/to/keyfile"
  ## Use TLS but skip chain & host verification
  # insecure_skip_verify = false