- 20 Jul, 2018 2 commits
-
-
Yecheng Fu authored
- Add resyncPeriod parameter for setupCluster to make resync period of scheduler configurable. - Add test case for static provisioning and delay binding storage class. Move pods into active queue on PV add/update events. - Add a stress test with scheduler resync to detect possible race conditions.
-
Yecheng Fu authored
-
- 15 Jul, 2018 2 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix kubeadm checks import error kubeadm checks package import path exist "kubernetes/test", So change the import path. * move "k8s.io/kubernetes/test/e2e_node/system" directory file tto "k8s.io/kubernetes/cmd/kubeadm/app/util/system" and change checks import * remove "k8s.io/kubernetes/test/e2e_node/system" directory Issues report link: https://github.com/kubernetes/kubeadm/issues/976Signed-off-by:
Yuanbin.Chen <cybing4@gmail.com> **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #https://github.com/kubernetes/kubeadm/issues/976 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. typo fix: fromat->format **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
- 14 Jul, 2018 8 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix printing log info **What this PR does / why we need it**: fix printing log info **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note None ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. [kubeadm]fix DynamicKubeletConfig feature to beta **What this PR does / why we need it**: As [PR](https://github.com/kubernetes/kubernetes/pull/64275) get merged, DynamicKubeletConfig feature convert to `beta` in v1.11, and set to `true` in default. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #[https://github.com/kubernetes/kubeadm/issues/957](https://github.com/kubernetes/kubeadm/issues/957) **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. apiserver/README: update to 2018 for compatibility /shrug /assign sttts **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66138, 65951). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Rename `NodeConfiguration` to `JoinConfiguration` in the kubeadm v1alpha3 Config API **What this PR does / why we need it**: In v1alpha3, we have made the design decision that `NodeConfiguration` will be renamed `JoinConfiguration`. This PR implements that change. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: ref: kubernetes/kubeadm#911 Depends on: - [x] https://github.com/kubernetes/kubernetes/pull/65776 - [x] https://github.com/kubernetes/kubernetes/pull/65628 - [x] https://github.com/kubernetes/kubernetes/pull/65629 - [x] https://github.com/kubernetes/kubernetes/pull/65631 - [x] https://github.com/kubernetes/kubernetes/pull/65940 - [x] https://github.com/kubernetes/kubernetes/pull/65787 - [ ] https://github.com/kubernetes/kubernetes/pull/65945 **Special notes for your reviewer**: Please only review the last three commits here. **Release note**: ```release-note [action required] The `NodeConfiguration` kind in the kubeadm v1alpha2 API has been renamed `JoinConfiguration` in v1alpha3 ``` @kubernetes/sig-cluster-lifecycle-pr-reviews
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66138, 65951). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Don't validate HealthzBindAddress in KubeProxyConfiguration if it's empty **What this PR does / why we need it**: https://github.com/kubernetes/kubernetes/pull/49087 added validation for the HealthzBindAddress field in the KubeProxyConfiguration, but if you pass in --healthz-port=0 to the kube-proxy CLI, it sets this field to the empty string. However, an empty string is not a valid value for this field. This change allows validation to pass if HealthzBindAddress is empty. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Ref #65118 **Special notes for your reviewer**: **Release note**: ```release-note Fix validation for HealthzBindAddress in kube-proxy when --healthz-port is set to 0 ```
-
tanshanshan authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 64181, 65737). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. API linter framework and namesMatch API rule **What this PR does / why we need it**: Bump kube-openapi dependency to use the [API linter framework](https://github.com/kubernetes/kube-openapi/pull/83) in k/k OpenAPI spec generation procedure. Currently one API rule is enforced: "Go field names must be CamelCase. JSON field names must be camelCase. Other than capitalization of the initial letter, the two should almost always match. No underscores nor dashes in either." **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #65244 **Special notes for your reviewer**: Most code change in this PR was generated (~1700 lines). Please see commits for detail. **Release note**: ```release-note NONE ``` /sig api-machinery /cc @pwittrock @mbohlool
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Correct image in `kubectl help run` **What this PR does / why we need it**: Simple typo fix -- image for this hazelcast command example was transposed /w nginx /sig cli /area kubectl /kind cleanup /kind documentation **Release note**: ```release-note NONE ```
-
- 13 Jul, 2018 26 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66094, 65676). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add a timeout when fetching latest version **What this PR does / why we need it**: When there is no internet on the node and `--kubernetes-versio`n is not specified running `kubeadm init` hangs forever with no text output. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes https://github.com/kubernetes/kubeadm/issues/986 **Special notes for your reviewer**: Using the same duration as the existing timeout `externalEtcdRequestTimeout` Sample output: ``` kubeadm init unable to get URL "https://dl.k8s.io/release/stable-1.11.txt": Get https://dl.k8s.io/release/stable-1.11.txt: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) ``` **Release note**: ```release-note kubeadm: use an HTTP request timeout when fetching the latest version of Kubernetes from dl.k8s.io ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66094, 65676). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Safe encode template hash value to make it consistent with resource name **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #66093 **Special notes for your reviewer**: It's safe to change the function that generates template hash label, because this value is only used when creating a resource and never updated or compared. Therefore, it won't break existing workloads after k8s upgrade/downgrade. Note that we've changed hash before when introducing hash collision avoidance mechanism. @kubernetes/sig-apps-pr-reviews **Release note**: ```release-note NONE ```
-
fabriziopandini authored
-
fabriziopandini authored
Rename NodeConfiguration to JoinConfiguration in v1alpha3, but support both names for this release of kubeadm
-
fabriziopandini authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 65832, 66160, 66145). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix metrics help comment **What this PR does / why we need it**: pod_start_latency_microseconds is not broken down by podname. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 65832, 66160, 66145). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Modify resource constraints for master components. The growth is caused by increasing --kube-api-qps in kube-scheduler. **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 65832, 66160, 66145). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. apiserver: make loopback logic in SecureServingOptions reusable For reuse in other components this PR separates the loopback logic from the GenericApiServer config.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 65899, 65900). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix CRI socket validatioin **What this PR does / why we need it**: CRI socket doesn't have to be an absolute path, it should be an url. However, attempt to use it as an url in 'kubeadm init' command line causes this validation error: $ sudo ./kubeadm init --cri-socket unix:///var/run/crio/crio.sock nodeRegistration.criSocket: Invalid value: "unix:///var/run/crio/crio.sock": path is not absolute Fixed by adding ValidateSocket function and using it in the ValidateNodeRegistrationOptions check instead of ValidateAbsolutePath. **Which issue(s) this PR fixes** : [#928](https://github.com/kubernetes/kubeadm/issues/928) **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 65899, 65900). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. apiserver: use self-signed cert fixtures in integration test servers
-
Janet Kuo authored
-
Maciej Borsz authored
The growth is caused by increasing --kube-api-qps in kube-scheduler.
-
Dr. Stefan Schimanski authored
-
Dr. Stefan Schimanski authored
-
Dr. Stefan Schimanski authored
Before this the advertised IP (which shows up in the server cert) in case of listening to loopback was the first host interface IP. This makes self-signed certs non-constant, such that we cannot use fixtures.
-
Dr. Stefan Schimanski authored
-
Yuanbin.Chen authored
kubeadm checks package import path exist "kubernetes/test", So change the import path. * move "k8s.io/kubernetes/test/e2e_node/system" directory file to "k8s.io/kubernetes/cmd/kubeadm/app/util/system" * change system package import path * remove "k8s.io/kubernetes/test/e2e_node/system" directory Issues report link: https://github.com/kubernetes/kubeadm/issues/976Signed-off-by:Yuanbin.Chen <cybing4@gmail.com>
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66121, 66140, 66045). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Support setting azure LB idle timeout **What this PR does / why we need it**: Adds a new annotation to allow users to configure the idle timeout of the Azure LB. **Release note**: ```release-note Support configuring the Azure load balancer idle connection timeout for services ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66121, 66140, 66045). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Allow modifying current context with kubectl set-context Fixes https://github.com/kubernetes/kubernetes/issues/40968 Enabled setting the namespace (or any other attribute) for the current context, rather than needing to provide a name: ``` kubectl config set-context --current --namespace=some-namespace kubectl config set-context --current --cluster=some-cluster kubectl config set-context --current --user=some-user ``` ```release-note `kubectl config set-context` can now set attributes of the current context, like the current namespace, by passing `--current` instead of a specific context name ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66121, 66140, 66045). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fix csr status message for kubectl certificate deny **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
Joonyoung Park authored
pod_start_latency_microseconds is not broken down by podname.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66011, 66111, 66106, 66039, 65745). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Enable adaptive scoring in ImageLocalityPriority **What this PR does / why we need it**: This PR replaces the original, pure image-size based scoring to an adaptive scoring scheme. The new scoring scheme considers not only the image size but also its `"spread" `- the definition of `"spread"` is described in what follows: > Given an image`i`, `spread_i = num_node_has_i / total_num_nodes` And the image receives the score: `score_i = size_i * spread_i`, as proposed by @resouer. The final node score is the summation of image scores for all images found existing on the node that are mentioned in the pod spec. The goal of this heuristic is to better _balance image locality with other scheduling policies_. In particular, it aims to mitigate and prevent the undesirable "node heating problem", _i.e._, pods get assigned to the same or a few nodes due to preferred image locality. Given an image, the larger `spread` it has the more image locality we can consider for it - since we can expect more nodes having this image. The new image state information in scheduler cache, enabled in this PR, allows other potential heuristics to be explored. **Special notes for your reviewer**: @resouer Additional unit tests are WIP. **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66011, 66111, 66106, 66039, 65745). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Disable initializers by default The API group driving this field is not enabled by default, and it does not appear that these will progress beyond the alpha phase. Remove the admission plugin from default configurations. /sig api-machinery /cc @smarterclayton ```release-note The alpha `Initializers` admission plugin is no longer enabled by default. This matches the off-by-default behavior of the alpha API which drives initializer behavior. ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66011, 66111, 66106, 66039, 65745). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix TestVolumeBinding out of sync errors **What this PR does / why we need it**: Invalidate `CheckVolumeBinding` predicate cache on PV update. CheckVolumeBinding predicate calls SchedulerVolumeBinder.FindPodVolumes which will cache PVs in PodBindingCache. When PV got updated, we should invalidate cache, otherwise PVAssumeCache.Assume will fail with out of sync error. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #64626 **Special notes for your reviewer**: When a PV is created, these operations happen asynchronously: - [pvcontroller.1] pv controller will update PV status from empty to `Available` - [scheduler.1] scheduler will find matching PVs and cache them in PodBindingCache in `CheckVolumeBinding` predicate - [scheduler.2] scheduler will assume matching PVs from PodBindingCache If [pvcontroller.1] happens between [scheduler.1] and [scheduler.2], and `CheckVolumeBinding` predicate result is cached in [scheduler.1], then scheduler will always use stale PodBindingCache in [scheduler.2] which [will cause out-of-sync error](https://github.com/kubernetes/kubernetes/blob/v1.12.0-alpha.0/pkg/controller/volume/persistentvolume/scheduler_assume_cache.go#L277) because resource version is old. **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66011, 66111, 66106, 66039, 65745). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. fieldpath: Add tests for missing cases Tests some missing cases in `pkg/fieldpath`. **Release note**: ```release-note NONE ``` Signed-off-by:
Lorenzo Fontana <lo@linux.com>
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66011, 66111, 66106, 66039, 65745). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Clean up unused internal node expansion code **What this PR does / why we need it**: As the title **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-
- 12 Jul, 2018 2 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66136, 64999, 65425, 66120, 66074). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. kubeadm: Printable default component configs **What this PR does / why we need it**: This PR makes default component configs printable via `kubeadm config print-default`. Component configs are not printed by default. You have to explicitly request that for concrete API objects via the `--api-objects` command line parameter. For a list of possible API objects use the help option. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Refs kubernetes/kubeadm#963 **Special notes for your reviewer**: /cc @kubernetes/sig-cluster-lifecycle-pr-reviews /area kubeadm /assign @luxas /assign @timothysc /kind feature **Release note**: ```release-note kubeadm: Default component configs are printable via kubeadm config print-default ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 66136, 64999, 65425, 66120, 66074). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. optimize certificate cleaner No need to parse certificates for every conditions **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
-