1. 02 May, 2017 7 commits
    • Pengfei Ni's avatar
      CRI: remove PodSandboxStatus.Linux.Namespaces.Network · d301f228
      Pengfei Ni authored
      Closes: #44972
      d301f228
    • Kubernetes Submit Queue's avatar
      Merge pull request #45177 from dims/allow-cluster-signing-ca-crt-and-key · 29f37fde
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45077, 45180, 34727, 45079, 45177)
      
      Allow specifying cluster signing ca/key
      
      **What this PR does / why we need it**:
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      29f37fde
    • Kubernetes Submit Queue's avatar
      Merge pull request #45079 from madhusudancs/fed-ing-e2e-disable · e80ec73a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45077, 45180, 34727, 45079, 45177)
      
      Move federated ingress e2e tests that don't pass to serial suite to avoid running it in presubmits.
      
      This is due to a bug described here: https://github.com/kubernetes/ingress/issues/645. 
      
      Federated Ingress e2es fail when there is a high load which is pretty common in the presubmit environment when the PR activity is high. So we are disabling these tests to unblock federation presubmits.
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      /assign @csbell 
      
      cc @kubernetes/sig-federation-pr-reviews @nicksardo
      e80ec73a
    • Kubernetes Submit Queue's avatar
      Merge pull request #34727 from ncdc/kube-proxy-config · 5ffbd376
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45077, 45180, 34727, 45079, 45177)
      
      Refactor kube-proxy configuration
      
      This is a proof of concept refactoring of the configuration and startup of kube-proxy. Most flags have been removed and replaced by a single config file, specified by `--config`. This is in regards to the component configuration improvement suggestions listed in #32215.
      
      Also during this effort, I discovered that Hyperkube is roughly reimplementing portions of cobra, and that the current cobra command definitions are solely used to generated docs and man pages. I would like to move the individual commands as well as Hyperkube to using cobra, but that is a separate issue and discussion.
      
      cc @mikedanese @liggitt @deads2k @eparis @sttts @smarterclayton @dgoodwin @timothysc
      5ffbd376
    • Kubernetes Submit Queue's avatar
      Merge pull request #45180 from caesarxuchao/move-metrics-to-staging · cb274761
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45077, 45180, 34727, 45079, 45177)
      
      Move k8s.io/metrics to staging/
      
      This is to break the cyclic dependency in our code base: kubernetes depends on k8s.io/metrics, which depends on kubernetes/staging/client-go.
      
      @DirectXMan12 i actually moved it to staging because we will need the flexibility to update metrics code directly to do many planned refactors, so the copy of metrics in kubernetes has to be the source of truth.
      
      client-gen is not enabled for the code yet, we can enable it after you port your changes to client-gen.
      
      `make generated_files` is enabled for metrics.
      cb274761
    • Kubernetes Submit Queue's avatar
      Merge pull request #45077 from ahmetb/example-rm-yamls · 99d4dd74
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      examples/guestbook: remove not useful/inaccurate comments
      
      The comments removed in this patch are either inaccurate or
      does not serve any purpose as they're already applies as uncommented
      in the tutorial and explained in the walkthrough text.
      
      ```release-note
      NONE
      ```
      Signed-off-by: 's avatarAhmet Alp Balkan <ahmetb@google.com>
      99d4dd74
    • Kubernetes Submit Queue's avatar
      Merge pull request #35660 from djosborne/e2e-network-policy · 11c5d12b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add e2e network policy tests.
      
      **What this PR does / why we need it**:
      Add set of e2e tests for Network Policy. This has succesfully run againast a deployment using Calico as the network policy provider.
      
      Specifically, adds a new e2e test file (/test/e2e/network_policy.go) which tests TCP connectivity between pods with isolation.
      
      See #25638 for PR that added NetworkPolicy resource.
      
      This PR is a replacement for #27447 .
      11c5d12b
  2. 01 May, 2017 26 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #45107 from jcbsmpsn/fix-unit-test-keys · 3ec39c35
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Restructure unit tests for more cert/keys.
      
      Just changing the unit tests so there is multiple cert/key pairs to be used.
      No functional change, no new tests. Follow on PRs will make more use
      of the multiple cert/key pairs.
      3ec39c35
    • Chao Xu's avatar
      move metrics to staging · 3294200d
      Chao Xu authored
      3294200d
    • Davanum Srinivas's avatar
      Allow specifying cluster signing ca/key · ec44cc2e
      Davanum Srinivas authored
      Makes it useful in testing some scenarios with automatically
      signing certificates
      ec44cc2e
    • Kubernetes Submit Queue's avatar
      Merge pull request #43883 from yujuhong/rm_non-cri-configs · 4998d78f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43884, 44712, 45124, 43883)
      
      Node e2e: Remove CRI/non-CRI configs
      
      This depends on https://github.com/kubernetes/test-infra/pull/2363
      4998d78f
    • Kubernetes Submit Queue's avatar
      Merge pull request #45124 from msau42/increase-ns-timeout · d417dc59
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43884, 44712, 45124, 43883)
      
      Increase pv test ns deletion timeout to the framework's default.
      
      **What this PR does / why we need it**:
      Namespace deletion occasionally exceeds the test's timeout of 3 minutes.  The test framework uses a default timeout of 5 minutes, so just making it match here.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #44790
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      NONE
      d417dc59
    • Kubernetes Submit Queue's avatar
      Merge pull request #44712 from maciaszczykm/patch-1 · acf64dc9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 43884, 44712, 45124, 43883)
      
      Increase Dashboard memory limits
      
      **What this PR does / why we need it**: Increases memory requests and limits for Dashboard.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/kubernetes/dashboard/issues/1431
      
      **Special notes for your reviewer**: Dashboard crashes on large clusters, this change should fix that problem.
      
      **Release note**:
      
      ```release-note
      Increase Dashboard's memory requests and limits
      ```
      acf64dc9
    • Kubernetes Submit Queue's avatar
      Merge pull request #43884 from yujuhong/nuke-docker-manager · 0b8b4033
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove DockerManager from kubelet
      
      This commit deletes code in dockertools that is only used by
      DockerManager. A follow-up change will rename and clean up the rest of
      the files in this package.
      
      The commit also sets EnableCRI to true if the container runtime is not
      rkt. A follow-up change will remove the flag/field and all references to
      it.
      0b8b4033
    • Andy Goldstein's avatar
      Add kube-proxy config file support · 43cb0244
      Andy Goldstein authored
      Add support for configuring kube-proxy via a config file instead of
      command line flags.
      43cb0244
    • Kubernetes Submit Queue's avatar
      Merge pull request #45179 from yguo0905/ubuntu-node-e2e-test · 07424af1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      adds Ubuntu node e2e test
      
      **What this PR does / why we need it**:
      
      Add node e2e test for Ubuntu image.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```NONE```
      07424af1
    • Dan Osborne's avatar
      Add e2e network policy tests. · e3762c60
      Dan Osborne authored
      e3762c60
    • Kubernetes Submit Queue's avatar
      Merge pull request #45165 from dims/run-ssh-test-only-if-key-present · 0df02517
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44062, 45165)
      
      Run SSH e2e test only if SSH keys are present
      
      **What this PR does / why we need it**:
      
      Not all CI systems support ssh keys to be present on the node. This
      supports the case where "local" provider is being used when running
      e2e test, but the environment does not have a SSH key.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      0df02517
    • Kubernetes Submit Queue's avatar
      Merge pull request #44062 from ixdy/semver-regexes · 03c9c48c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Support arbitrary alphanumeric strings as prerelease identifiers
      
      **What this PR does / why we need it**: this is basically an extension of #43642, but supports more general prerelease identifiers, per the spec at http://semver.org/#spec-item-9.
      
      These regular expressions are still a bit more restrictive than the SemVer spec allows (we disallow hyphens, and we require the format `-foo.N` instead of arbitrary `-foo.X.bar.Y.bazZ`), but this should support our needs without changing too much more logic or breaking other assumptions.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      03c9c48c
    • Yang Guo's avatar
      adds Ubuntu node e2e tests · f7c2efa4
      Yang Guo authored
      f7c2efa4
    • Yu-Ju Hong's avatar
      Remove DockerManager from kubelet · 9f3184c5
      Yu-Ju Hong authored
      This commit deletes code in dockertools that is only used by
      DockerManager. A follow-up change will rename and clean up the rest of
      the files in this package.
      
      The commit also sets EnableCRI to true if the container runtime is not
      rkt. A follow-up change will remove the flag/field and all references to
      it.
      9f3184c5
    • Kubernetes Submit Queue's avatar
      Merge pull request #41742 from feiskyer/apparmor · 1d7c5cc0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 40774, 41742)
      
      CRI: using typed filed for Apparmor
      
      **What this PR does / why we need it**:
      
      CRI supports AppArmor via annotations [today](https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/api/v1alpha1/runtime/api.proto#L237), we should move them to typed and structured fields instead. (refer [here](https://github.com/kubernetes/kubernetes/issues/30819#issuecomment-253369441))
      
      **Which issue this PR fixes** 
      
      Part of #39130.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      1d7c5cc0
    • Kubernetes Submit Queue's avatar
      Merge pull request #40774 from mikedanese/no-more-integration-tags · 91475306
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      don't use build tags to mark integration tests
      
      This is a bad pattern that leads to checked in code that isn't check for compilation. We should avoid this if it doesn't provide value, which it seems like it doesn't.
      91475306
    • Kubernetes Submit Queue's avatar
      Merge pull request #45167 from deads2k/api-09-unstructured-fix · c51efa9b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      prevent panic on setting nil deletion timestamp
      
      Setting a nil deletionstamp on unstructured causes panics.  This is done when preparing for create.
      c51efa9b
    • Kubernetes Submit Queue's avatar
      Merge pull request #38925 from xiangpengzhao/fix-volume-panic · c1ebba0a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix nil pointer issue when making mounts for container
      
      When rebooting one of the nodes in my colleague's cluster, two panics were discovered:
      
      ```
      E1216 04:07:00.193058    2394 runtime.go:52] Recovered from panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:58
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:51
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:41
      /usr/local/go/src/runtime/asm_amd64.s:472
      /usr/local/go/src/runtime/panic.go:443
      /usr/local/go/src/runtime/panic.go:62
      /usr/local/go/src/runtime/sigpanic_unix.go:24
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go:1313
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go:1473
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockertools/docker_manager.go:1495
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockertools/docker_manager.go:2125
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/dockertools/docker_manager.go:2093
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go:1971
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/kubelet.go:530
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/pod_workers.go:171
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/pod_workers.go:154
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/pod_workers.go:215
      /usr/local/go/src/runtime/asm_amd64.s:1998
      E1216 04:07:00.275030    2394 runtime.go:52] Recovered from panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:58
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:51
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/runtime/runtime.go:41
      /usr/local/go/src/runtime/asm_amd64.s:472
      /usr/local/go/src/runtime/panic.go:443
      /usr/local/go/src/runtime/panic.go:62
      /usr/local/go/src/runtime/sigpanic_unix.go:24
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/server/stats/volume_stat_caculator.go:98
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/kubelet/server/stats/volume_stat_caculator.go:63
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/wait/wait.go:86
      /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/util/wait/wait.go:87
      /usr/local/go/src/runtime/asm_amd64.s:1998
      ```
      
      kubectl version
      ```
      Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.8", GitCommit:"693ef591120267007be359f97191a6253e0e4fb5", GitTreeState:"clean", BuildDate:"2016-09-28T03:03:21Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
      Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.8", GitCommit:"693ef591120267007be359f97191a6253e0e4fb5", GitTreeState:"clean", BuildDate:"2016-09-28T02:52:25Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
      ```
      
      The second panic had already been fixed by #33616 and #34251. Not sure what caused the first nil pointer issue and whether it has been fixed yet in the master branch. Just fix it by ignoring the nil pointer when making mounts.
      
      cc @jingxu97 @yujuhong
      c1ebba0a
    • deads2k's avatar
      prevent panic on setting nil deletion timestamp · 0da5be47
      deads2k authored
      0da5be47
    • Davanum Srinivas's avatar
      Run SSH e2e test only if SSH keys are present · 5cd700ab
      Davanum Srinivas authored
      Not all CI systems support ssh keys to be present on the node. This
      supports the case where "local" provider is being used when running
      e2e test, but the environment does not have a SSH key.
      5cd700ab
    • Kubernetes Submit Queue's avatar
      Merge pull request #45142 from dims/limit-dns-lookup-for-google-com · 6ae80a62
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add google.com to e2e test only under gce/gke
      
      We should limit the lookup/resolve for google.com when
      provider is gce or gke. We should be able to run the
      test in environments where this is not allowed or not
      available.
      
      
      
      **What this PR does / why we need it**:
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      6ae80a62
    • Pengfei Ni's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #45148 from rickypai/rpai/use_host_aliases · 08606b53
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45110, 45148)
      
      write HostAliases to hosts file
      
      **What this PR does / why we need it**: using the PodSpec's `HostAliases`, we write entries into the Kubernetes-managed hosts file.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43632
      
      **Special notes for your reviewer**:
      Previous PRs in this series:
      - https://github.com/kubernetes/kubernetes/pull/44572 isolates the logic of creating the file and writing the file
      - https://github.com/kubernetes/kubernetes/pull/44641 introduces the `HostAliases` field in PodSpec along with validations
      
      **Release note**:
      ```release-note
      PodSpec's `HostAliases` now write entries into the Kubernetes-managed hosts file.
      ```
      
      @thockin @yujuhong 
      
      Thanks for reviewing!
      08606b53
    • Kubernetes Submit Queue's avatar
      Merge pull request #45110 from smarterclayton/offset_timeouts · 6480bc70
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45110, 45148)
      
      Make timeouts in the Kubelet slightly offset to aid debugging
      
      Several of these loops overlap, and when they are the reason a failure
      is happening it is difficult to sort them out. Slighly misalign these
      loops to make their impact obvious.
      
      We are seeing exactly 2 minute pod worker timeouts in a wide range of test flake scenarios, and I want to be confident we know exactly which one is the culprit.
      6480bc70
    • Kubernetes Submit Queue's avatar
      Merge pull request #45154 from luxas/ccm_image · d3f62095
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Create a docker image for the cloud controller manager
      
      **What this PR does / why we need it**:
      
      If you want to test the cloud-controller-manager our currently, you have to grab the binary from the CI or the release builds, put it in a Dockerfile, build the image and possibly upload the image to a registry, only to be able to test the new cloud stuff out. This is overly complex and should just work like any other component like the core controller manager that has its own docker image pushed automatically for it.
      
      This PR makes the release scripts create an image for the cloud controller manager.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Create and push a docker image for the cloud-controller-manager
      ```
      
      cc @thockin @wlan0 @roberthbailey @mikedanese
      d3f62095
    • Kubernetes Submit Queue's avatar
      Merge pull request #44988 from zhangxiaoyu-zidif/update-readme-links · 70f6f133
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      README.md: Update outdated links
      
      **What this PR does / why we need it**:
      the PR aims to update some links.
      Some links with "#" would not redirect to right point of pages.
      Other links without "#" can work, but they are outdated. I change them by the way.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      none
      70f6f133
  3. 30 Apr, 2017 7 commits