Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Ryan Hitchman
0067002db8
Make a few code paths compile cleanly with 32-bit Go.
2018-02-27 13:53:32 -08:00
Jeff Grafton
ef56a8d6bb
Autogenerated: hack/update-bazel.sh
2018-02-16 13:43:01 -08:00
Jeff Grafton
efee0704c6
Autogenerate BUILD files
2017-12-23 13:12:11 -08:00
Dr. Stefan Schimanski
bec617f3cc
Update generated files
2017-11-09 12:14:08 +01:00
Dr. Stefan Schimanski
012b085ac8
pkg/apis/core: mechanical import fixes in dependencies
2017-11-09 12:14:08 +01:00
Jeff Grafton
aee5f457db
update BUILD files
2017-10-15 18:18:13 -07:00
Jeff Grafton
a7f49c906d
Use buildozer to delete licenses() rules except under third_party/
2017-08-11 09:32:39 -07:00
Jeff Grafton
33276f06be
Use buildozer to remove deprecated automanaged tags
2017-08-11 09:31:50 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Klaus Ma
83b7f77ee2
Moved qos to api.helpers.
2017-05-20 07:17:57 -04:00
ravisantoshgudimetla
39403f3aca
Clean up for qos
2017-04-27 19:06:10 -04:00
Mike Danese
a05c3c0efd
autogenerated
2017-04-14 10:40:57 -07:00
Vishnu Kannan
c967ab7b99
Avoid evicting critical pods in Kubelet if a special feature gate is enabled
...
Signed-off-by: Vishnu Kannan <vishnuk@google.com>
2017-02-02 11:32:20 -08:00
Vishnu Kannan
a3ae8c2b21
Revert "assign -998 as the oom_score_adj for critical pods."
...
This reverts commit 53931fbce4
.
2017-02-02 10:41:21 -08:00
Dr. Stefan Schimanski
44ea6b3f30
Update generated files
2017-01-29 21:41:45 +01:00
Dr. Stefan Schimanski
bc6fdd925d
pkg/api/resource: move to apimachinery
2017-01-29 21:41:44 +01:00
Clayton Coleman
9a2a50cda7
refactor: use metav1.ObjectMeta in other types
2017-01-17 16:17:19 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Kubernetes Submit Queue
3f9f7471af
Merge pull request #38989 from sjenning/set-qos-field
...
Automatic merge from submit-queue (batch tested with PRs 39684, 39577, 38989, 39534, 39702)
Set PodStatus QOSClass field
This PR continues the work for https://github.com/kubernetes/kubernetes/pull/37968
It converts all local usage of the `qos` package class types to the new API level types (first commit) and sets the pod status QOSClass field in the at pod creation time on the API server in `PrepareForCreate` and in the kubelet in the pod status update path (second commit). This way the pod QOS class is set even if the pod isn't scheduled yet.
Fixes #33255
@ConnorDoyle @derekwaynecarr @vishh
2017-01-10 22:24:13 -08:00
Kubernetes Submit Queue
65d6a5c6a8
Merge pull request #39455 from kubernetes/revert-39306-oom_score_adj
...
Automatic merge from submit-queue (batch tested with PRs 39486, 37288, 39477, 39455, 39542)
Revert "Small improve for GetContainerOOMScoreAdjust"
Reverts kubernetes/kubernetes#39306
This does not help current code healthy, let's revert it to avoid further confusing.
2017-01-10 14:33:17 -08:00
Seth Jennings
e2402b781b
set qos class field in pod status
2017-01-10 16:31:52 -06:00
Seth Jennings
4c30459e49
switch from local qos types to api types
2017-01-10 10:54:30 -06:00
Jeff Grafton
20d221f75c
Enable auto-generating sources rules
2017-01-05 14:14:13 -08:00
Harry Zhang
9712fe8455
Revert "Small improve for GetContainerOOMScoreAdjust"
2017-01-05 09:54:11 +08:00
Kubernetes Submit Queue
2cc9650e7e
Merge pull request #39306 from hex108/oom_score_adj
...
Automatic merge from submit-queue (batch tested with PRs 38084, 39306)
Small improve for GetContainerOOMScoreAdjust
In `GetContainerOOMScoreAdjust`, make logic more clear for the case `oomScoreAdjust >= besteffortOOMScoreAdj`. If `besteffortOOMScoreAdj` is defined to another value(e.g. 996), suppose `oomScoreAdjust` is 999, the function will return 998(which equals 999 - 1) instead of 995(996 -1).
2017-01-04 07:18:07 -08:00
Mike Danese
161c391f44
autogenerated
2016-12-29 13:04:10 -08:00
Jun Gong
e417fd2faa
Small improve for GetContainerOOMScoreAdjust
2016-12-29 21:25:43 +08:00
Dawn Chen
b03fca9783
Fixed an import cycle issue:
...
import cycle not allowed in test
package k8s.io/kubernetes/pkg/client/restclient (test)
imports k8s.io/kubernetes/pkg/api/testapi
imports k8s.io/kubernetes/pkg/apis/componentconfig/install
imports k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1
imports k8s.io/kubernetes/pkg/kubelet/qos
imports k8s.io/kubernetes/pkg/kubelet/pod
imports k8s.io/kubernetes/pkg/client/clientset_generated/clientset
imports k8s.io/kubernetes/pkg/client/clientset_generated/clientset/typed/apps/v1beta1
imports k8s.io/kubernetes/pkg/client/restclient
2016-12-21 16:34:24 -08:00
Dawn Chen
53931fbce4
assign -998 as the oom_score_adj for critical pods.
2016-12-21 16:07:49 -08:00
Mike Danese
c87de85347
autoupdate BUILD files
2016-12-12 13:30:07 -08:00
Chao Xu
bcc783c594
run hack/update-all.sh
2016-11-23 15:53:09 -08:00
Chao Xu
5e1adf91df
cmd/kubelet
2016-11-23 15:53:09 -08:00
Mike Danese
3b6a067afc
autogenerated
2016-10-21 17:32:32 -07:00
derekwaynecarr
aeed9cab5e
Fix edge case in qos evaluation
2016-10-10 18:46:06 -04:00
Random-Liu
2141e230a6
Add oom score adj in new CRI implementation.
2016-09-26 11:39:02 -07:00
Vishnu kannan
5d4ee244d3
ignore non first class QoS resources from computing Pod Qos
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-09-20 11:19:31 -07:00
Vish Kannan
a1fe3adbc7
Revert "Revert "[kubelet] Fix oom-score-adj policy in kubelet""
2016-09-16 16:32:58 -07:00
Vish Kannan
492ca3bc9c
Revert "[kubelet] Fix oom-score-adj policy in kubelet"
2016-09-15 19:28:59 -07:00
Vishnu kannan
e4acad7afb
Fix oom-score-adj policy in kubelet.
...
Docker daemon and kubelet needs to be protected by setting oom-score-adj to -999.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-09-14 11:56:10 -07:00
Davanum Srinivas
2b0ed014b7
Use Go canonical import paths
...
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-16 13:48:21 -04:00
k8s-merge-robot
793b4fea9e
Merge pull request #27900 from derekwaynecarr/test_defaults_qos
...
Automatic merge from submit-queue
Add additional testing scenarios for compute resource requests=0
I was asked about the qos tier of a pod that specified
`--requests=cpu=0,memory=0 --limits=cpu=100m,memory=1Gi`
and in just investigating current behavior, realized we should have an explicit test case to ensure that 0 values are preserved in defaulting passes, and that this is still a burstable pod (but the lowest for that tier as it related to eviction)
/cc @vishh
2016-07-01 16:16:23 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
derekwaynecarr
a04e6f8635
Add additional testing scenarios for compute resource requests=0
2016-06-27 14:38:55 -04:00
Buddha Prakash
4acb64f8bd
Make Qos naming consistent across the codebase
2016-06-26 16:19:47 -07:00
Buddha Prakash
c3551ae6cd
Refactor qos package
...
Signed-off-by: Buddha Prakash <buddhap@google.com>
2016-06-24 15:36:04 -07:00
Timo Reimann
32aa740fd3
Show resources in pod descriptions by sorted names.
...
Includes container and QoS resources.
2016-05-25 23:51:37 +02:00
Vishnu kannan
f884180deb
Update kubelet to use per-pod QoS policy.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-05-20 11:52:17 -07:00
Vishnu kannan
f48c83600c
Updating QoS policy to be per-pod instead of per-resource.
...
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-05-20 11:52:16 -07:00