Wei Huang
a689ad4cda
sched: start dynamicInformerFactory along with regular informerFactory ( #105016 )
...
* sched: start dynamicInformerFactory along with regular informerFactory
* fixup: start all informers and then wait for their syncs
2021-09-16 19:33:00 -07:00
Kubernetes Prow Robot
c10be982d1
Merge pull request #96345 from ingvagabund/disable-insecure-port-in-scheduler
...
refactor: disable insecure serving in kube-scheduler
2021-09-14 08:01:09 -07:00
Jan Chaloupka
07af6697e9
refactor: disable insecure serving in kube-scheduler
2021-09-14 07:52:16 +02:00
wangyamei
50865679b9
Scheduler version should be printed out by default
2021-09-02 21:46:41 +08:00
sanposhiho
0252865601
Fix: set SilenceErrors and SilenceUsage not to change error message
2021-08-23 13:29:44 +09:00
sanposhiho
a06d6138b5
Fix: not change the error messages
2021-08-22 21:20:32 +09:00
sanposhiho
b8ae016ee6
Fix: return error instead of os.Exit when something goes wrong
2021-08-22 19:20:47 +09:00
Wei Huang
4c9c761bbb
instantiates scheduler ComponentConfig after parsing feature gates
2021-07-06 10:39:12 -07:00
Abdullah Gharaibeh
52f5ba3a58
Remove SchedulerAlgorithmSource from scheduler's internal CC API
2021-06-09 19:14:54 -04:00
Adhityaa Chandrasekar
3c8e56bef9
scheduler: graduate CC to v1beta2, deprecate plugins
...
Signed-off-by: Adhityaa Chandrasekar <adtac@google.com >
2021-06-07 12:42:55 +00:00
Kubernetes Prow Robot
70f745a37a
Merge pull request #100305 from ingvagabund/kube-scheduler-release-lock-on-cancel
...
Release lock on cancel for scheduler
2021-04-30 07:27:58 -07:00
BinacsLee
75dde4dce4
code cleanup: Abstract repetitive codes in cmd as a function
2021-04-22 23:35:04 +08:00
Kubernetes Prow Robot
ed3e0d302f
Merge pull request #100644 from Huang-Wei/sched-fwk-config
...
Surface kube config in scheduler framework handle
2021-04-12 19:12:49 -07:00
Kubernetes Prow Robot
89056f66c8
Merge pull request #100877 from lojies/schedulerlogstructured
...
Structured Logging migration: modify logs of kube-scheduler
2021-04-10 19:04:45 -07:00
卢振兴10069964
98a03ae57b
Structured Logging migration: modify logs of kube-scheduler
2021-04-07 15:53:06 +08:00
Wei Huang
e7f67b1a63
Surface kube config in scheduler framework handle
2021-03-30 11:54:59 -07:00
Maciej Szulik
c5a5230d93
Release lock on cancel for scheduler
2021-03-16 19:04:44 +01:00
Abu Kashem
71199664be
use request received timestamp in httplog
2021-03-05 15:34:17 -05:00
Kubernetes Prow Robot
cd21a1240a
Merge pull request #94866 from smarterclayton/scheduling_metrics
...
scheduler: Implement resource metrics at /metrics/resources
2020-11-12 18:36:23 -08:00
Mike Dame
14fa76d92f
Log defaulted kube-scheduler component config at startup
2020-11-12 16:03:11 -05:00
Clayton Coleman
264496cc41
scheduler: Implement resource metrics at /metrics/resources
...
Implement pod resource metrics as described in KEP 1916. The new
`/metrics/resources` endpoint is exposed on the active scheduler
and reports kube_pod_resources* metrics that present the effective
requests and limits for all resources on the pods as calculated by
the scheduler and kubelet. This allows administrators using the
system to quickly perform resource consumption, reservation, and
pending utilization calculations when those metrics are read.
Because metrics calculation is on-demand, there is no additional
resource consumption incurred by the scheduler unless the endpoint
is scraped.
2020-11-12 12:37:38 -05:00
Lukasz Szaszkiewicz
057986e32c
stops puting a stacktrace of aborted requests in the logs
...
Aborted requests are the ones that were disrupted with http.ErrAbortHandler.
For example, the timeout handler will panic with http.ErrAbortHandler when a response to the client has been already sent
and the timeout elapsed.
Additionally, a new metric requestAbortsTotal was defined to count aborted requests. The new metric allows for aggregation for each group, version, verb, resource, subresource and scope.
2020-11-09 09:23:40 +01:00
Harsh Singh
1763688d71
Added config parameter for CPU threads
2020-10-29 12:16:10 +05:30
Arghya Sadhu
c62f0dd165
removing deprecated scheduler metrics
2020-09-22 21:04:15 +05:30
Wei Huang
d8def59871
Initialize scheduler's podInformer in sharedInformerFactory
...
Scheduler's specific podInfomer is now initialized inside the sahredInformerFactory.
2020-09-08 12:57:17 -07:00
zhouya0
3a237dd367
Scheduler auth stop using legacy scheme
2020-08-16 18:49:15 +08:00
Wei Huang
4b26ef2217
Remove DisablePreemption field from SchedulerConfig v1beta1
...
DisablePreemption field can be removed as it can be deduced from PostFilterPlugins.
2020-07-08 09:58:42 -07:00
Kubernetes Prow Robot
ad634590f8
Merge pull request #92082 from chelseychen/event-fallback2
...
Migrate kube-scheduler to fallback for events API built into the library
2020-06-23 01:23:40 -07:00
Chelsey Chen
3f95ddb714
Migrate kube-scheduler to use common fallback
2020-06-22 10:02:54 -04:00
Ali Farah
a22e115a0e
Split scheduler framework implementation into new runtime package
2020-06-22 00:23:43 +10:00
Yecheng Fu
1ff09c0934
Remove BindTimeoutSeconds from KubeSchedulerConfiguration
2020-06-03 09:54:06 +08:00
Kubernetes Prow Robot
774c9a6db6
Merge pull request #91349 from neolit123/1.19-fail-on-unrecognized-args
...
cmd/*: fail on unrecognized flags/arguments for component CLI
2020-05-30 00:27:53 -07:00
Monis Khan
fc4f91f10b
cmd/*: fail on unrecognized flags/arguments for component CLI
...
In case a malformed flag is passed to k8s components
such as "–foo", where "–" is not an ASCII dash character,
the components currently silently ignore the flag
and treat it as a positional argument.
Make k8s components/commands exit with an error if a positional argument
that is not empty is found. Include a custom error message for all
components except kubeadm, as cobra.NoArgs is used in a lot of
places already (can be fixed in a followup).
The kubelet already handles this properly - e.g.:
'unknown command: "–foo"'
This change affects:
- cloud-controller-manager
- kube-apiserver
- kube-controller-manager
- kube-proxy
- kubeadm {alpha|config|token|version}
- kubemark
Signed-off-by: Monis Khan <mok@vmware.com >
Signed-off-by: Lubomir I. Ivanov <lubomirivanov@vmware.com >
2020-05-28 22:06:01 +03:00
Hsiny
9c7be05b60
fix,404 link in kube-scheduler command usage description
2020-05-25 23:07:00 +08:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-05-16 07:54:27 -04:00
cici37
7f4d19167e
Move pkg/util/configz to k8s.io/component-base
2020-04-29 12:17:25 -07:00
cici37
15c844031f
Remove CCM dependency pkg/util/flag
2020-04-22 10:06:11 -07:00
Dharma Bellamkonda
49bcf18cc5
Improve scheduler CLI description
2020-04-15 14:14:45 -06:00
Kubernetes Prow Robot
72102c04c7
Merge pull request #88728 from notpad/feature/scheduler_e2e_test
...
Add test for kube-scheduler command setup
2020-03-19 20:30:36 -07:00
notpad
16015a691c
Add test for kube-scheduler command setup
2020-03-20 07:36:47 +08:00
Davanum Srinivas
1d057da2f7
Move k8s.io/apiserver/pkg/util/term to k8s.io/component-base/term
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2020-03-19 07:18:09 -04:00
Monis Khan
df292749c9
Remove support for basic authentication
...
This change removes support for basic authn in v1.19 via the
--basic-auth-file flag. This functionality was deprecated in v1.16
in response to ATR-K8S-002: Non-constant time password comparison.
Similar functionality is available via the --token-auth-file flag
for development purposes.
Signed-off-by: Monis Khan <mok@vmware.com >
2020-03-11 20:55:47 -04:00
Mike Dame
1d7006c38d
Add Extenders to scheduler v1alpha2 component config
2020-03-05 16:42:15 -05:00
yuzhiquanlong
3eec87cd91
update WithPlugin comment, in case remove function
2020-02-29 19:53:04 +08:00
Aldo Culquicondor
c048858471
Support multiple scheduling profiles in a single scheduler
...
Signed-off-by: Aldo Culquicondor <acondor@google.com >
2020-02-25 11:31:20 -05:00
Aldo Culquicondor
9e71741d06
Add Profiles to kubescheduler.config.k8s.io/v1alpha2
...
Signed-off-by: Aldo Culquicondor <acondor@google.com >
2020-02-24 09:45:46 -05:00
Aldo Culquicondor
99bda6fac0
Remove HardPodAffinityWeight from v1alpha2
...
Signed-off-by: Aldo Culquicondor <acondor@google.com >
2020-02-13 11:59:56 -05:00
Kubernetes Prow Robot
28b8cfb473
Merge pull request #87005 from yuxiaobo96/k8s-unuseful
...
Add a comment for function WithPlugin
2020-01-10 12:24:36 -08:00
yuxiaobo
d2cfd4b82f
apply review advice again
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com >
2020-01-10 16:47:30 +08:00
Kubernetes Prow Robot
f4e6ff84b3
Merge pull request #86529 from hase1128/kube-scheduler-reference
...
Add simple reference to synopsis of kube-scheduler
2020-01-09 13:29:06 -08:00