1. 08 Dec, 2016 19 commits
  2. 07 Dec, 2016 21 commits
    • Euan Kemp's avatar
      cluster: bindmount more cert paths · b8d2099b
      Euan Kemp authored
      /etc/ssl/certs is currently mounted through in a number of places.
      However, on Gentoo and CoreOS (and probably others), the files in
      /etc/ssl/certs are just symlinks to files in /usr/share/ca-certificates.
      
      For these components to correclty work, the target of the symlinks needs
      to be available as well.
      
      This is especially important for kube-controller-manager, where this
      issue was noticed.
      
      This change was originally part of #33965, but was split out for ease of
      review.
      b8d2099b
    • Kubernetes Submit Queue's avatar
      Merge pull request #38258 from derekwaynecarr/kernel-memcg-flag · ca049360
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38318, 38258)
      
      kernel memcg notification enabled via experimental flag
      
      Kubelet integrates with kernel memcg notification API if and only if enabled via experimental flag.
      ca049360
    • Kubernetes Submit Queue's avatar
      Merge pull request #38318 from MrHohn/dns-autoscale-doc · debed6fa
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Adds docs for dns-horizontal-autoscaler and kube-dns
      
      Although we have separate docs on kubernetes.io, we should have a short description about the dns-horizontal-autoscaler addon in folder.
      
      Also updates kube-dns README with example command to scale kube-dns Deployment. This is needed because Addon Manager v6 has stricter reconcile behavior.
      
      @bowei @bprashanth @thockin
      debed6fa
    • Kubernetes Submit Queue's avatar
      Merge pull request #38255 from bprashanth/svc_cleanup · 66f5d07e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Delete regional static-ip instead of global for type=lb
      
      Global vs region is the difference between 
      ```
      $ gcloud compute addresses delete foo --global
      $ gcloud compute addresses delete foo --region us-central1
      ```
      
      Type=LoadBalancer users the second type and were were doing the first. 
      Also adds some logging.
      66f5d07e
    • Kubernetes Submit Queue's avatar
      Merge pull request #38304 from deads2k/cli-13-fix-validate · 7d8d4eb0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36140, 38304)
      
      remove validation dependency on version negotiation
      
      Things that just need a REST client or a bit of discovery information should not attempt to perform negotiation.  Doing so just limits the genericness of the client.
      
      @kubernetes/sig-cli 
      @fabianofranz this blocks the kubernetes-discovery work.
      7d8d4eb0
    • Kubernetes Submit Queue's avatar
      Merge pull request #36140 from guangxuli/k8s_extend_get_docker_auth · 84f03ef9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      make invocation ReadDockerConfigFile can handle .dockerconfigjson file
      
      **What this PR does / why we need it**:
      
      When **.docker/config.json** is used to authenticate docker registry, the data key **.dockerconfigjson** should be used if we want to save this kind of docker auth data into a secret. So this PR is mainly to make invocation `ReadDockerConfigFile `have ability to read  **.dockerconfigjson** file.
      @liggitt
      84f03ef9
    • Tim St. Clair's avatar
      Decrease expected lower bound for misc CPU · f4706464
      Tim St. Clair authored
      f4706464
    • Kubernetes Submit Queue's avatar
      Merge pull request #27711 from xiangpengzhao/port-allocator-test · 08c0f7dd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Cover port_allocator_test with more conditions
      
      The test cases of port_allocator_test should cover more conditions, such as `rangeAllocator.used.Bit`.
      08c0f7dd
    • Kubernetes Submit Queue's avatar
      Merge pull request #36724 from YuPengZTE/devCtx · 2c7e1317
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36543, 38189, 38289, 38291, 36724)
      
      context.Context should be the first parameter of a function in vsphere
      
      **What this PR does / why we need it**:
      Change the position of the context.Context parameter.
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      golint
      **Release note**:
      
      ```release-note
      ```
      Signed-off-by: 's avataryupeng <yu.peng36@zte.com.cn>
      2c7e1317
    • Kubernetes Submit Queue's avatar
      Merge pull request #38291 from justinsb/fix_38920 · cafba0b9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36543, 38189, 38289, 38291, 36724)
      
      kube-up: Only specify ETCD_QUORUM_READ if non-empty
      cafba0b9
    • Kubernetes Submit Queue's avatar
      Merge pull request #38289 from deads2k/fed-07-wire-auth · 8d518d36
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36543, 38189, 38289, 38291, 36724)
      
      add authentication/authorization to kubernetes-discovery
      
      Wires authentication and authorization into `kubernetes-discovery` and re-enables the `local-up-cluster.sh` along with proper permission granting for RBAC cases.
      
      @sttts @liggitt
      8d518d36
    • Kubernetes Submit Queue's avatar
      Merge pull request #38189 from feiskyer/fix-attach · 28dc2f74
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 36543, 38189, 38289, 38291, 36724)
      
      Kubelet: only check podUID when it is actually set
      
      Fixes #38188.
      
      cc/ @timstclair @yujuhong
      28dc2f74
    • Zihong Zheng's avatar
      c49225d5
    • bprashanth's avatar
      e1daee5b
    • Kubernetes Submit Queue's avatar
      Merge pull request #36543 from jayunit100/scheduler_perf_integration_qps · f210c97e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix scheduler_perf test so that QPS is non-zero even if there is a scheduling "cold start" 
      
      @gmarek  ... is something like this more realistic as an expectation ?  That is, wait till scheduling starts, then wait 1 second before any polling attempts....  i.e. 
      
      - gaurantee uniform sleep before measure, by doing it first rather then last
      - print the initial status so that its easier to debug in case of issues
      
      #36532
      f210c97e
    • Alejandro Escobar's avatar
      type found with controller comment. · 75953053
      Alejandro Escobar authored
      75953053
    • Kubernetes Submit Queue's avatar
      Merge pull request #37835 from luxas/kubeadm_cloudprovider_and_dns · aa08702d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38294, 37009, 36778, 38130, 37835)
      
      Add a cloudprovider validator flag to kubeadm and update the DNS spec
      
      Broken out from: https://github.com/kubernetes/kubernetes/pull/37568
      
      This PR creates a flag for `cloud-provider` that validates the value before `RunInit()` is run, which makes it now act as a "real" flag
      Then it removes the `k8s.io/kubernetes/pkg/cloudprovider` dependency, which makes the binary ~40MB smaller! That's _really_ worth it!
      
      In the second commit, the DNS addon is updated to the latest version: https://github.com/kubernetes/kubernetes/blob/master/cluster/addons/dns/skydns-rc.yaml.base
      
      @kubernetes/sig-cluster-lifecycle
      aa08702d
    • Kubernetes Submit Queue's avatar
      Merge pull request #38130 from fabianofranz/bump_docker_go_units · af5a91d4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38294, 37009, 36778, 38130, 37835)
      
      Bump github.com/docker/go-units dependency
      
      <!--  Thanks for sending a pull request!  Here are some tips for you:
      1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/kubernetes/blob/master/CONTRIBUTING.md and developer guide https://github.com/kubernetes/kubernetes/blob/master/docs/devel/development.md
      2. If you want *faster* PR reviews, read how: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md
      3. Follow the instructions for writing a release note: https://github.com/kubernetes/kubernetes/blob/master/docs/devel/pull-requests.md#release-notes
      -->
      
      **What this PR does / why we need it**: Bump [github.com/docker/go-units](https://github.com/docker/go-units/) to include https://github.com/docker/go-units/pull/22 which improves the precision of human durations ("about an hour ago", "2 days ago", etc).
      
      **Which issue this PR fixes**: Issue detected in OpenShift: https://github.com/openshift/origin/issues/11967
      
      **Release note**:
      <!--  Steps to write your release note:
      1. Use the release-note-* labels to set the release note state (if you have access) 
      2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
      -->
      ```release-note
      NONE
      ```
      af5a91d4
    • Kubernetes Submit Queue's avatar
      Merge pull request #36778 from cjcullen/basicauth · f2014abf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38294, 37009, 36778, 38130, 37835)
      
      Only configure basic auth on gci if KUBE_USER and KUBE_PASSWORD are specified.
      
      This should not change the existing flow when KUBE_USER/KUBE_PASSWORD are specified.
      It makes not specifying those a valid option that means "don't turn on basic auth".
      I only did it for cluster/gce/gci for now, but others should be somewhat similar.
      f2014abf
    • Kubernetes Submit Queue's avatar
      Merge pull request #37009 from sjenning/fix-perms-with-fsgroup · 0f2c6fc7
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38294, 37009, 36778, 38130, 37835)
      
      fix permissions when using fsGroup
      
      Currently, when an fsGroup is specified, the permissions of the defaultMode are not respected and all files created by the atomic writer have mode 777.  This is because in `SetVolumeOwnership()` the `filepath.Walk` includes the symlinks created by the atomic writer.  The symlinks have mode 777 when read from `info.Mode()`.  However, when the are chmod'ed later, the chmod applies to the file the symlink points to, not the symlink itself, resulting in the wrong mode for the underlying file.
      
      This PR skips chmod/chown for symlinks in the walk since those operations are carried out on the underlying file which will be included elsewhere in the walk.
      
      xref https://bugzilla.redhat.com/show_bug.cgi?id=1384458
      
      @derekwaynecarr @pmorie
      0f2c6fc7
    • Kubernetes Submit Queue's avatar
      Merge pull request #38294 from liggitt/rate-limit · 440ed2cf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 38294, 37009, 36778, 38130, 37835)
      
      Re-use tested ratelimiter
      
      The ratelimiter introduced in #35583 is not working correctly when called from multiple threads
      This reverts to the tested ratelimiter we were previously using to unblock 1.5 (automated revert wasn't possible)
      Ref #38273
      
      reproducing test case:
      ```
      func TestMultiThreadedBlocking(t *testing.T) {
      	done := make(chan bool)
      
      	// 100 QPS, burst of 100
      	b := NewBucketWithRate(100, 100)
      
      	go func() {
      		defer close(done)
      		fmt.Println(time.Now(), "Waiting for 1000 (should block for ~9-10 seconds)")
      		b.Wait(1000)
      		fmt.Println(time.Now(), "Got 1000")
      	}()
      
      	// give the request for 1000 plenty of time to take the tokens
      	time.Sleep(2 * time.Second)
      	fmt.Println(time.Now(), "Waiting for 1 (should wait until 1000 block is refilled)")
      	b.Wait(1)
      	fmt.Println(time.Now(), "Got 1 (should happen right after the wait for 1000 completes)")
      
      	<-done
      }
      
      $ go test ./pkg/util/ratelimit/ -v -run TestMultiThreadedBlocking
      === RUN   TestMultiThreadedBlocking
      2016-12-07 12:15:36.222133049 -0500 EST Waiting for 1000 (should block for ~9-10 seconds)
      2016-12-07 12:15:38.222797752 -0500 EST Waiting for 1 (should wait until 1000 block is refilled)
      2016-12-07 12:15:38.222897951 -0500 EST Got 1 (should happen right after the wait for 1000 completes)
      2016-12-07 12:15:45.223125234 -0500 EST Got 1000
      ```
      
      in contrast, the same test run against juju/ratelimit:
      ```
      go test ./pkg/util/flowcontrol/ -v -run TestMultiThreadedBlocking
      === RUN   TestMultiThreadedBlocking
      2016-12-07 12:32:56.796077782 -0500 EST Waiting for 1000 (should block for ~9-10 seconds)
      2016-12-07 12:32:58.799159059 -0500 EST Waiting for 1 (should wait until 1000 block is refilled)
      2016-12-07 12:33:05.801076002 -0500 EST Got 1000
      2016-12-07 12:33:05.807510387 -0500 EST Got 1 (should happen right after the wait for 1000 completes)
      --- PASS: TestMultiThreadedBlocking (9.01s)
      ```
      440ed2cf