1. 13 Feb, 2018 16 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #53766 from liggitt/ui-redirect · fd553ca8
      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>.
      
      Remove /ui/ redirect
      
      The existing kube-apiserver hard-codes `/ui` to redirect to an optional add-on, which is not appropriate. It does not work in the following scenarios:
      * https-enabled dashboards
      * the dashboard is deployed to a different namespace or service name
      * the dashboard is not installed at all
      * authorization is enabled and does not allow access to /ui
      
      This PR removes the hard-coded `/ui` redirect.
      
      ```release-note
      apiserver: the /ui kube-dashboard redirect has been removed. Follow instructions specific to your deployment to access kube-dashboard
      ```
      fd553ca8
    • Kubernetes Submit Queue's avatar
      Merge pull request #57656 from nikhita/code-generator-boilerplate-header · 58dea893
      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>.
      
      code-generator: add boilerplate header
      
      Currently, the boilerplate header from k8s.io/kubernetes is used. If k8s.io/kubernetes is not in the GOPATH, a
      panic will occur.
      
      Making this a part of k8s.io/code-generator will prevent this panic.
      
      Fixes kubernetes/code-generator#6
      
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      /assign sttts
      58dea893
    • Kubernetes Submit Queue's avatar
      Merge pull request #59671 from bsalamat/sched_queue_perf · ba791275
      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>.
      
      Improve performance of scheduling queue by adding a hash map to track all pods with a nominatedNodeName
      
      **What this PR does / why we need it**:
      Our investigations show that there is a performance regression in the new scheduling queue which is not enabled by default and is enabled only if "priority and preemption" which is an alpha feature is enabled. This PR is an important performance improvement for those who want to use priority and preemption in larger clusters.
      The PR adds a hash table to track nominated Pods so that finding such Pods will be faster.
      Other than improving performance, we don't expect this PR to change behavior of scheduler.
      
      **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 #
      
      ref/ #56032
      ref/ #57471 
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      /sig scheduling
      ba791275
    • Kubernetes Submit Queue's avatar
      Merge pull request #52528 from m1093782566/refactor-proxy · 9438e14d
      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>.
      
      Refactor kube-proxy service/endpoints update so that can be consumed among different proxiers
      
      **What this PR does / why we need it**:
      
      There are huge duplication among different proxiers.  For example, the service/endpoints list/watch part in iptables, ipvs and windows kernel mode(to be get in soon).
      
      I think the more places this is replicated the harder it becomes to keep correct. We may need to refactor it and let different proxiers consume the same code.
      
      **Which issue this PR fixes**: 
      
      fixes #52464
      
      **Special notes for your reviewer**:
      
      * This refactor reduces **500** Lines in iptables proxy, so it will reduce **500*N**(number of proxiers) lines in total. People no need to care the service/endpoints update logic any more and can be more focus on proxy logic.
      
      * I would like to do the following things in follow-ups:
      
      1. rsync it to ipvs proxier
      
      2. rsync it to winkernel proxier
      
      **Release note**:
      
      ```release-note
      Refactor kube-proxy service/endpoints update so that can be consumed among different proxiers
      ```
      9438e14d
    • Nikhita Raghunath's avatar
      ebad418c
    • Nikhita Raghunath's avatar
      code-generator: add boilerplate header · 8f898a37
      Nikhita Raghunath authored
      Currently, the boilerplate header from k8s.io/kubernetes
      is used. If k8s.io/kubernetes is not in the GOPATH, a
      panic will occur.
      
      To fix this, we first calculate the relative path to
      k8s.io/code-generator and then use the boilerplate from
      code-generator. This avoids hard coding the path and
      works well for all repos.
      8f898a37
    • Kubernetes Submit Queue's avatar
      Merge pull request #59645 from hanxiaoshuai/cleanup0209 · ae0f45e8
      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>.
      
      remove unused function printIndentedJson and printAllPods in test/integration/scheduler
      
      **What this PR does / why we need it**:
      remove unused function printIndentedJson and printAllPods in test/integration/scheduler
      **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
      ```
      ae0f45e8
    • Kubernetes Submit Queue's avatar
      Merge pull request #59499 from soltysh/cronjob_short · ff7918d1
      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>.
      
      Create short name for cronjob
      
      **What this PR does / why we need it**:
      Following https://github.com/kubernetes/kubernetes/pull/59061 I'm adding short name for cronjob, since I was asked about it several times and was thinking about this for a long.
      
      
      **Release note**:
      ```release-note
      CronJobs can be accessed through cj alias
      ```
      ff7918d1
    • Kubernetes Submit Queue's avatar
      Merge pull request #57969 from jsafrane/aws-approver · 757c24d2
      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>.
      
      Add gnufied as AWS approver.
      
      @gnufied has been maintaining the storage part of AWS cloud provider for a long while and he deserves to be approver.
      
      ```release-note
      NONE
      ```
      
      /sig aws
      757c24d2
    • Kubernetes Submit Queue's avatar
      Merge pull request #58275 from carmark/resource_allocation_typo · 9cb3e34c
      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 typo in resource_allocation.go
      
      **What this PR does / why we need it**:
      fix a typo in resource_allocation.go file
      
      **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
      N/A
      ```
      9cb3e34c
    • Kubernetes Submit Queue's avatar
      Merge pull request #59739 from andyzhangx/azuredisk-initaccount · 91c783e2
      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 the error prone account creation method of blob disk
      
      **What this PR does / why we need it**:
      use new account generation method for blob disk to fix the error prone account creation method of blob disk
      
      **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 #59738
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      fix the error prone account creation method of azure blob disk
      ```
      
      /assign @karataliu 
      /sig azure
      91c783e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #59772 from ixdy/bazel-update-base-images · 7ee7e5a0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59298, 59773, 59772). 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>.
      
      bazel: update digests for debian-iptables-amd64 and busybox
      
      **What this PR does / why we need it**: I've pushed updated (rebased) versions of the `debian-base-ARCH:0.3` and `debian-iptables-ARCH:v10` images. Since bazel uses the sha256 digest instead of the tag, we need to update those accordingly.
      
      I also bumped the busybox digest, which hasn't been updated since last summer. This is updating it from v1.26.2 to v1.28.0. Note that the non-bazel build process uses `busybox:latest`, and so has already been using busybox v1.28.0.
      
      **Special notes for your reviewer**:
      We will update the hyperkube-base image in #57648.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      /assign @tallclair 
      /cc @rphillips @rvkubiak
      7ee7e5a0
    • Kubernetes Submit Queue's avatar
      Merge pull request #59773 from nicksardo/glbc-alpha2 · d9086a7a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59298, 59773, 59772). 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>.
      
      Bump GLBC to 0.9.8-alpha.2 and change back to --verbose
      
      **What this PR does / why we need it**:
      Bumps GLBC version to 0.9.8-alpha.2 which is logically equivalent to 0.9.8-alpha.1 except verbose mode sets v=3 instead of v=4
      
      **Special notes for your reviewer**:
      /cc @rramkumar1 
      /assign @bowei 
      
      **Release note**:
      ```release-note
      NONE
      ```
      d9086a7a
    • Kubernetes Submit Queue's avatar
      Merge pull request #59298 from jpbetz/etcd3-minor-version-rollback · c1216dfd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59298, 59773, 59772). 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 etcd 3.x minor version rollback support to migrate-if-needed.sh
      
      Provide automatic etcd 3.x minor version downgrade when using the gcr.io/google_containers/etcd docker images to operate etcd.
      
      Uses `etcdctl snapshot save` and `etcdctl snapshot restore` to safely downgrade etcd from 3.2->3.1 or 3.1->3.0. This is safe because the data storage file formats used by etcd have not changed between these versions.
      
      Intended as a stop-gap until we can introduce more comprehensive downgrade support in etcd. The main limitation of this approach is that it is not able to perform zero downtime downgrades for HA clusters.   For HA clusters, all members must be stopped and downgraded before the cluster may be restarted at the downgraded version.
      
      Example usage:
      - Initially the [etcd.manifest](https://github.com/kubernetes/kubernetes/blob/58547ebd72bf314cba26e8d9148db282751e34f2/cluster/gce/manifests/etcd.manifest#L43) is set to gcr.io/google_containers/etcd:3.0.17, TARGET_VERSION=3.0.17
      - A upgrade to 3.1.11 is initiated.
      - etcd.manifest is updated to gcr.io/google_containers/etcd:3.1.11, TARGET_VERSION=3.1.11
      - etcd restarts and establishes 3.1 as it's "cluster version"
      - For whatever reason, a downgrade is initiated
      - etcd.manifest is updated gcr.io/google_containers/etcd:3.1.11, TARGET_VERSION=3.0.17
      - migrate-if-needed.sh detects that the current version (3.1.11) is newer than the target version, so it:
        - creates a snapshot using etcd & etcdctl 3.1.11
        - backs up the data dir
        - restores the snapshot using etcdctl 3.0.17 to create a replacement data dir
        - starts etcd 3.0.17
      
      Note that while this will rollback to an earlier etcd version, the newer etcd gcr.io image version must continue to be used throughout the downgrade. Only TARGET_VERSION is downgraded.
      
      Test coverage was lacking for `migrate-if-needed.sh` so this adds some container level testing to the `Makefile` for migrating and rolling back. This surfaced a couple bugs that are fixed by this PR as well.
      
      cc @mml @lavalamp @wenjiaswe
      
      ```release-note
      Add automatic etcd 3.2->3.1 and 3.1->3.0 minor version rollback support to gcr.io/google_container/etcd images. For HA clusters, all members must be stopped before performing a rollback.
      ```
      c1216dfd
    • Kubernetes Submit Queue's avatar
      Merge pull request #59246 from huangjiuyuan/scheduler/add-tests-for-schedulercache · 821cf923
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 59479, 59246). 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 tests for schedulercache
      
      **What this PR does / why we need it**:
      Add tests for `node_info.go` under `schedulercache` package.
      
      **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**:
      ```
      NONE
      ```
      821cf923
    • Kubernetes Submit Queue's avatar
      Merge pull request #59479 from tossmilestone/avoid-ecahe-update-race · ab2e1cb0
      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>.
      
      Avoid race condition when updating equivalence cache
      
      **What this PR does / why we need it**:
      Lock the ecache to update the ecache on each predicate running, to avoid race condition.
      
      **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
      Fix #58507 
      
      **Special notes for your reviewer**:
      None
      
      **Release note**:
      
      ```release-note
      None
      ```
      ab2e1cb0
  2. 12 Feb, 2018 24 commits