1. 28 Aug, 2018 31 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #66960 from rosti/drop-arch-suffixes · 5774bf15
      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: Drop arch suffixes
      
      **What this PR does / why we need it**:
      
      This change removes arch suffixes from control plane images (etcd, kube-apiserver, kube-scheduler, kube-proxy, etc.). These are not needed, as almost all control plane images have a fat manifest now. It also adds a missing unit test for `GetGenericImage`
      
      We have arch suffixes only for kube-dns images now.
      
      Sample output of `kubeadm config images pull` with this change:
      
      ```
      $ ./_output/bin/kubeadm config images pull
      [config/images] Pulled k8s.gcr.io/kube-apiserver:v1.11.1
      [config/images] Pulled k8s.gcr.io/kube-controller-manager:v1.11.1
      [config/images] Pulled k8s.gcr.io/kube-scheduler:v1.11.1
      [config/images] Pulled k8s.gcr.io/kube-proxy:v1.11.1
      [config/images] Pulled k8s.gcr.io/pause:3.1
      [config/images] Pulled k8s.gcr.io/etcd:3.2.18
      [config/images] Pulled k8s.gcr.io/coredns:1.1.3
      $ ./_output/bin/kubeadm config images pull --feature-gates=CoreDNS=false
      [config/images] Pulled k8s.gcr.io/kube-apiserver:v1.11.1
      [config/images] Pulled k8s.gcr.io/kube-controller-manager:v1.11.1
      [config/images] Pulled k8s.gcr.io/kube-scheduler:v1.11.1
      [config/images] Pulled k8s.gcr.io/kube-proxy:v1.11.1
      [config/images] Pulled k8s.gcr.io/pause:3.1
      [config/images] Pulled k8s.gcr.io/etcd:3.2.18
      [config/images] Pulled k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.10
      [config/images] Pulled k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.10
      [config/images] Pulled k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.10
      ```
      
      **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#1030 kubernetes/kubeadm#51
      
      **Special notes for your reviewer**:
      /cc @kubernetes/sig-cluster-lifecycle-pr-reviews
      /area kubeadm
      /kind feature
      /assign @luxas
      /assign @timothysc
      /assign @dims 
      /assign @neolit123 
      
      **Release note**:
      
      ```release-note
      kubeadm: Control plane images (etcd, kube-apiserver, kube-proxy, etc.) don't use arch suffixes. Arch suffixes are kept for kube-dns only.
      ```
      5774bf15
    • Kubernetes Submit Queue's avatar
      Merge pull request #65222 from adelina-t/make-e2e-test-platform-agnostic · d46d6715
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67739, 65222). 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>.
      
      Tests: Make e2e test platform-agnostic
      
      The test:
      [k8s.io] Pods should support remote command execution over websockets [NodeConformance]
      
        uses cat on /etc/resolv.conf and checks if the output from the container is  "namespace",
      which is incompatible with windows containers as there is no such file.
      
        Since the test just check if remote command execution works, the command is
      irrelevant as long as the output checks out. Switched to using echo "remote execution test",
      and checking that output as it works for both windows and linux.
      d46d6715
    • Kubernetes Submit Queue's avatar
      Merge pull request #67739 from liggitt/hostname-override · a26e1dda
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67739, 65222). 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>.
      
      Honor --hostname-override, report compatible hostname addresses with cloud provider
      
      xref #67714
      
      7828e5d0 made cloud providers authoritative for the addresses reported on Node objects, so that the addresses used by the node (and requested as SANs in serving certs) could be verified via cloud provider metadata.
      
      This had the effect of no longer reporting addresses of type Hostname for Node objects for some cloud providers. Cloud providers that have the instance hostname available in metadata should add a `type: Hostname` address to node status. This is being tracked in #67714
      
      This PR does a couple other things to ease the transition to authoritative cloud providers:
      * if `--hostname-override` is set on the kubelet, make the kubelet report that `Hostname` address. if it can't be verified via cloud-provider metadata (for cert approval, etc), the kubelet deployer is responsible for fixing the situation by adjusting the kubelet configuration (as they were in 1.11 and previously)
      * if `--hostname-override` is not set, *and* the cloud provider didn't report a Hostname address, *and* the auto-detected hostname matches one of the addresses the cloud provider *did* report, make the kubelet report that as a Hostname address. That lets the addresses remain verifiable via cloud provider metadata, while still including a `Hostname` address whenever possible.
      
      /sig node
      /sig cloud-provider
      
      /cc @mikedanese
      
      fyi @hh
      
      ```release-note
      NONE
      ```
      a26e1dda
    • Kubernetes Submit Queue's avatar
      Merge pull request #67883 from krzysztof-jastrzebski/hpas · b49e0b7f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67938, 66719, 67883). 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 incorrect glog error from Horizontal Pod Autoscaler Controller.
      
      **What this PR does / why we need it**:
      Pro removes  incorrect glog error from Horizontal Pod Autoscaler Controller.
      
      **Release note:**
      ```release-note
      none
      ```
      b49e0b7f
    • Kubernetes Submit Queue's avatar
      Merge pull request #66719 from hanxiaoshuai/fix0727 · 256070ad
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67938, 66719, 67883). 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>.
      
      return err when Unmarshal failed
      
      **What this PR does / why we need it**:
      return err when Unmarshal failed
      **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
      ```
      256070ad
    • Kubernetes Submit Queue's avatar
      Merge pull request #67938 from soltysh/sample_plugin · b5382c34
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67938, 66719, 67883). 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 "sample-plugin" staging repo
      
      Supersedes https://github.com/kubernetes/kubernetes/pull/67729
      
      Showcases usage of the new `kubectl` plugins mechanism.
      Showcases usage of the new `cli-runtime` repo from a third-party plugin
      
      See README.md for details on what this plugin actually does.
      
      /assign @smarterclayton @sttts @juanvallejo 
      
      /sig cli
      
      **Release note**:
      ```release-note
      Adds sample-cli-plugin staging repository
      ```
      b5382c34
    • Kubernetes Submit Queue's avatar
      Merge pull request #67893 from juju-solutions/master · b863b230
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67942, 67893). 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>.
      
      Work on Juju charms:CSI, dyn config, cloud integration
      
      **What this PR does / why we need it**: This PR updates the Juju charms with fixes/additions regarding. CSI, cloud integration, dynamic configs and cdk-addons
      
      **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
      ```
      b863b230
    • Kubernetes Submit Queue's avatar
      Merge pull request #67942 from shyamjvs/revert-load-test-throughput-change · 42295cf9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67942, 67893). 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>.
      
      Revert "Re-calibrate load test throughputs"
      
      This reverts commit 2f7f6dee.
      
      /cc @wojtek-t 
      
      ```release-note
      NONE
      ```
      42295cf9
    • Jordan Liggitt's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #67902 from liggitt/http2-buffers · 9edf196c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67694, 64973, 67902). 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>.
      
      Size http2 buffers to allow concurrent streams
      
      http/2 requests from a given client multiplex over a single connection via streams, chopped up into frames.
      
      The amount of data the client is allowed to send for a given stream and for the overall connection before acknowledgement is determined by the server's MaxUploadBufferPerStream and MaxUploadBufferPerConnection settings respectively, both defaulting to 1MB.
      
      The number of concurrent streams a client is allowed to send over a single connection is determined by the server's MaxConcurrentStreams setting, defaulting to 250.
      
      We observed a starvation issue with the kube aggregator's proxy client if handling of a POST through the aggregator to a backend server exceeded the 1MB buffer size AND the backend server required a second POST request through the aggregator to be handled before it could drain the first request's body.
      
      Logically, if concurrent streams are allowed in a single connection, the connection buffer should be MaxUploadBufferPerStream*MaxConcurrentStreams to allow individual streams to make progress even when one stream is blocked.
      
      This PR shrinks the `MaxUploadBufferPerStream` size to 256kb (which is still large enough to allow all the resources we saw in our test clusters to be sent in a single frame), and grows the MaxUploadBufferPerConnection to accomodate concurrent streams.
      
      I'm also opening a golang issue, [reproducer](https://gist.github.com/liggitt/00239c99b4c148ac1b23e57f86b3af93), and fix for the defaults for this
      
      ```release-note
      adjusted http/2 buffer sizes for apiservers to prevent starvation issues between concurrent streams
      ```
      9edf196c
    • Kubernetes Submit Queue's avatar
      Merge pull request #64973 from nokia/k8s-sctp · 2eb14e30
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 67694, 64973, 67902). 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>.
      
      SCTP support implementation for Kubernetes
      
      **What this PR does / why we need it**: This PR adds SCTP support to Kubernetes, including Service, Endpoint, and NetworkPolicy.
      
      **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 #44485
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      
      SCTP is now supported as additional protocol (alpha) alongside TCP and UDP in Pod, Service, Endpoint, and NetworkPolicy.  
      
      ```
      2eb14e30
    • Kubernetes Submit Queue's avatar
      Merge pull request #67694 from… · 4007eed7
      Kubernetes Submit Queue authored
      Merge pull request #67694 from sttts/sttts-kube-apiserver-always-create-extension-apiserver-authentication
      
      Automatic merge from submit-queue (batch tested with PRs 67694, 64973, 67902). 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>.
      
      kube-apiserver: always create configmap/extension-apiserver-authentication
      
      Other components (aggregated apiservers) read the configmap and fail hard if it does not exist. But they work without all fields being set (https://github.com/kubernetes/kubernetes/pull/66394). In the future, components like ctrl-manager and scheduler won't need kube-apiserver to authenticate with them at all. So, consequently we should always create the file, even if it is empty.
      
      ```release-note
      Always create configmaps/extensions-apiserver-authentication from kube-apiserver.
      ```
      4007eed7
    • Maciej Szulik's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #67885 from zanetworker/fix-typo-runtime-conversion · 965df074
      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 runtime conversion.go
      
      **What this PR does / why we need it**:
      Fix typo in runtime conversion.go in function `Convert_Slice_string_To_bool`
      
      **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 #
      NONE 
      
      **Special notes for your reviewer**:
      NONE 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      965df074
    • Shyam Jeedigunta's avatar
      Revert "Re-calibrate load test throughputs" · e062e639
      Shyam Jeedigunta authored
      This reverts commit 2f7f6dee.
      e062e639
    • juanvallejo's avatar
      a510285d
    • juanvallejo's avatar
      add cli plugin example repo · 985406c9
      juanvallejo authored
      985406c9
    • Rostislav M. Georgiev's avatar
    • Rostislav M. Georgiev's avatar
      kubeadm: remove arch suffix from control plane images · 14dbfdcc
      Rostislav M. Georgiev authored
      This change removes arch suffixes from control plane images (etcd,
      kube-apiserver, kube-scheduler, kube-proxy, etc.). These are not needed, as
      almost all control plane images have a fat manifest now.
      
      We have arch suffixes only for kube-dns images now.
      Signed-off-by: 's avatarRostislav M. Georgiev <rostislavg@vmware.com>
      14dbfdcc
    • Krzysztof Jastrzebski's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #67688 from Lion-Wei/kube-proxy-config · 029bb4e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 64597, 67854, 67734, 67917, 67688). 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>.
      
      Move kubeproxy ComponentConfig external types to `k8s.io/kube-proxy`
      
      **What this PR does / why we need it**:
      This PR implements most of kubernetes/community#2354 for the kube-proxy.
      The PR:
      - Moves k8s.io/kubernetes/pkg/proxy/apis/kubeproxyconfig as-is to k8s.io/kubernetes/pkg/proxy/apis/config as agreed
      - Moves the external types to the new staging repo k8s.io/kube-proxy, in the k8s.io/kube-proxy/config/v1beta1 package.
      - Makes k8s.io/kubernetes/pkg/proxy/apis/config/v1beta1 source the types from k8s.io/kube-proxy/config/v1beta1. The defaulting and conversion code is kept in this package as before.
      - All references to these packages have been updated.
      
      Ref #67233
      
      **Special notes for your reviewer**:
      
      **Release note**:
      ```release-note
      kube-proxy v1beta1 external ComponentConfig types are now available in the `k8s.io/kube-proxy` repo
      ```
      029bb4e2
    • Kubernetes Submit Queue's avatar
      Merge pull request #67917 from yguo0905/tpu-location · 8c9f145f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 64597, 67854, 67734, 67917, 67688). 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>.
      
      GCE: Add ListLocations to Cloud TPU API
      
      Add ListLocations to Cloud TPU API.
      
      **Release note**:
      
      ```release-note
      None
      ```
      
      /assign @vishh 
      /assign @MrHohn
      for approval.
      8c9f145f
    • Kubernetes Submit Queue's avatar
      Merge pull request #67734 from Huang-Wei/fix-nodelost-issue · 0148f25f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 64597, 67854, 67734, 67917, 67688). 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 an issue that scheduling doesn't respect NodeLost status of a node
      
      **What this PR does / why we need it**:
      
      - if Node is in UnknowStatus, apply unreachable taint with NoSchedule effect
      - some internal data structure refactoring
      - update unit test
      
      **Which issue(s) this PR fixes**:
      Fixes #67733, and very likely #67536
      
      **Special notes for your reviewer**:
      
      See detailed reproducing steps in #67733.
      
      **Release note**:
      ```release-note
      Apply unreachable taint to a node when it lost network connection.
      ```
      0148f25f
    • Kubernetes Submit Queue's avatar
      Merge pull request #67854 from tallclair/klet-deps · 23bea724
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 64597, 67854, 67734, 67917, 67688). 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 kubelet dependency
      
      **What this PR does / why we need it**:
      Cleanup unused `ExternalKubeClient`. I think it's a vestige of when the Kubelet still used the internal types.
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      /kind cleanup
      /sig node
      /assign @mtaufen
      23bea724
    • Kubernetes Submit Queue's avatar
      Merge pull request #64597 from wteiken/add_review_annotations2 · 583dd0ff
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 64597, 67854, 67734, 67917, 67688). 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 ImageReview backend to add audit annotations.
      
      **What this PR does / why we need it**: 
      This can be used to create annotations that will allow auditing of the created 
      pods.
      
      The change also introduces "fail open" audit annotations in addition to the
      previously existing pod annotation for fail open.  The pod annotations for 
      fail open will be deprecated soon.
      
      
      **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
      Allow ImageReview backend to return annotations to be added to the created pod.
      ```
      583dd0ff
    • Kubernetes Submit Queue's avatar
      Merge pull request #67916 from MrHohn/ip-masq-chain-name · f825c2d0
      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>.
      
      Bump ip-masq-agent to v2.1.1
      
      **What this PR does / why we need it**:
      - Update debian-iptables image for CVEs.
      - Change chain name to IP-MASQ to be compatible with the pre-injected masquerade rules.
      
      **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 #NONE
      
      **Special notes for your reviewer**:
      /assign @bowei 
      cc @satyasm
      
      **Release note**:
      
      ```release-note
      Bump ip-masq-agent to v2.1.1
      - Update debian-iptables image for CVEs.
      - Change chain name to IP-MASQ to be compatible with the
      pre-injected masquerade rules.
      ```
      f825c2d0
    • Lion-Wei's avatar
      update autogenerated file · 47153803
      Lion-Wei authored
      47153803
    • Lion-Wei's avatar
    • liangwei's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #66052 from lubinsz/master · f0e2a249
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 66085, 66052). 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>.
      
      use pause image with fat-manifest
      
      What this PR does / why we need it:
      Pause manifest code is merged in #57723, so we should use new image in test.
      
      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:
      f0e2a249
    • Kubernetes Submit Queue's avatar
      Merge pull request #66085 from liggitt/updatejob · d744c6ea
      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 updateJob scheduling of resync
      
      fixes #66071 
      
      ```release-note
      NONE
      ```
      d744c6ea
  2. 27 Aug, 2018 9 commits