Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the default value of the bearer_token parameter to send the bearer token only to secure https endpoints by default #10709

Merged
merged 2 commits into from Dec 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions kube_scheduler/assets/configuration/spec.yaml
Expand Up @@ -77,9 +77,11 @@ files:
against the APIServer to retrieve metrics.
enabled: true
value:
type: boolean
example: true
example: tls_only
default: false
anyOf:
- type: boolean
- type: string
- name: bearer_token_path
description: Used to specify the path where the service account token is located.
value:
Expand Down
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 or string - 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