Skip to content

Commit

Permalink
Update the default value of the bearer_token parameter
Browse files Browse the repository at this point in the history
to send the bearer token only to secure https endpoints and not to clear text http endpoints.
  • Loading branch information
L3n41c committed Nov 23, 2021
1 parent cd2c541 commit b52a42d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions kube_scheduler/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ files:
against the APIServer to retrieve metrics.
enabled: true
value:
type: boolean
example: true
default: false
type: string
example: tls_only
default: "false"
- name: bearer_token_path
description: Used to specify the path where the service account token is located.
value:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ instances:
#
# prometheus_url: http://%%host%%:10251/metrics

## @param bearer_token_auth - boolean - optional - default: true
## @param bearer_token_auth - boolean - optional - default: tls_only
## Used if you are using RBACs and need the Agent to authenticate
## against the APIServer to retrieve metrics.
#
bearer_token_auth: true
bearer_token_auth: tls_only

## @param bearer_token_path - string - optional - default: /var/run/secrets/kubernetes.io/serviceaccount/token
## Used to specify the path where the service account token is located.
Expand Down

0 comments on commit b52a42d

Please sign in to comment.