1. 01 Mar, 2017 23 commits
    • Chao Xu's avatar
      tests · 31cb2663
      Chao Xu authored
      31cb2663
    • Chao Xu's avatar
      gc changes · c3baf402
      Chao Xu authored
      c3baf402
    • Chao Xu's avatar
      registry changes · 93686da1
      Chao Xu authored
      93686da1
    • Chao Xu's avatar
      API · 5bfacf59
      Chao Xu authored
      5bfacf59
    • Chao Xu's avatar
      generated · e4aa9db2
      Chao Xu authored
      e4aa9db2
    • Kubernetes Submit Queue's avatar
      Merge pull request #41923 from Cynerva/gkk/juju-nrpe-relation-squash · 336203a6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42162, 41973, 42015, 42115, 41923)
      
      add nrpe-external-master relation to kubernetes-master and kubernetes-worker
      
      **What this PR does / why we need it**:
      
      This PR adds an an nrpe-external-master relation to the kubernetes-worker, kubernetes-master and kubeapi-load-balancer charms. This is needed to monitor the state of the workers, the masters and the load-balancers via Nagios.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*:
      
      https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/165
      
      **Special notes for your reviewer**:
      
      Original work by @axinojolais in PR #40897. All I've done is squash commits on his behalf.
      
      **Release note**:
      
      ```release-note
      The kubernetes-master, kubernetes-worker and kubeapi-load-balancer charms have gained an nrpe-external-master relation, allowing the integration of their monitoring in an external Nagios server.
      ```
      336203a6
    • Kubernetes Submit Queue's avatar
      Merge pull request #42115 from justinsb/kubectl_expose_drainoptions · eaf3c474
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42162, 41973, 42015, 42115, 41923)
      
      kubectl drain: make code reusable
      
      DrainOptions requires a few fields to be set, and the expectation is
      that these are set as part of construction of the object.  If they are
      set, then the drain code can be reused in other kubernetes projects.
      
      This does not create a contract that DrainOptions should fulfill going
      forwards, any more than any of the other types that happen to be exposed
      are part of the contract.  Instead, this merely makes use outside the
      package possible.
      
      ```release-note
      NONE
      ```
      eaf3c474
    • Kubernetes Submit Queue's avatar
      Merge pull request #42015 from dashpole/min_timeout_eviction · 9f3343df
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42162, 41973, 42015, 42115, 41923)
      
      Increase Min Timeout for kill pod
      
      Should mitigate #41347, which describes flakes in the inode eviction test due to "GracePeriodExceeded" errors.
      
      When we use gracePeriod == 0, as we do in eviction, the pod worker currently sets a timeout of 2 seconds to kill a pod.
      We are hitting this timeout fairly often during eviction tests, causing extra pods to be evicted (since the eviction manager "fails" to evict that pod, and kills the next one).
      
      This PR increases the timeout from 2 seconds to 4, although we could increase it even more if we think that would be appropriate.
      
      cc @yujuhong @vishh @derekwaynecarr
      9f3343df
    • Kubernetes Submit Queue's avatar
      Merge pull request #41973 from wojtek-t/build_non_alpha_3_0_17_etcd_image · 1a351550
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42162, 41973, 42015, 42115, 41923)
      
      Release 3.0.17 etcd image
      1a351550
    • Kubernetes Submit Queue's avatar
      Merge pull request #42162 from kevin-wangzefeng/kubectl-tolerationseconds · c179f38f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix kubectl describe pod, show tolerationSeconds
      
      **What this PR does / why we need it**:
      tolerationSeconds is now not shown in kubectl describe resutl, this PR is to fix it.
      
      With this fix, pod toleration with tolerationSeconds would like below:
      ```yaml
      Name:           bar
      Namespace:      foo
      Node:           /
      Labels:         <none>
      Status:
      IP:
      Controllers:    <none>
      Containers:     <none>
      No volumes.
      QoS Class:
      Node-Selectors: <none>
      Tolerations:    key1=value1
      				key2=value2:NoSchedule
      				key3=value3:NoExecute for 300s
      ```
      
      
      **Which issue this PR fixes** : 
      Related issue: #1574
      Related PR: #39469
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      make kubectl describe pod show tolerationSeconds
      ```
      c179f38f
    • Kubernetes Submit Queue's avatar
      Merge pull request #36828 from mtaufen/eviction-test-thresholds · cda109d2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42216, 42136, 42183, 42149, 36828)
      
      Set custom threshold for memory eviction test
      
      I am hoping this helps with memory eviction flakes, e.g. https://github.com/kubernetes/kubernetes/issues/32433 and https://github.com/kubernetes/kubernetes/issues/31676
      
      /cc @derekwaynecarr @calebamiles @dchen1107
      cda109d2
    • Kubernetes Submit Queue's avatar
      Merge pull request #42149 from Random-Liu/check-infra-container-image-existence · 91e1933f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42216, 42136, 42183, 42149, 36828)
      
      Check infra container image existence before pulling.
      
      Fixes https://github.com/kubernetes/kubernetes/issues/42040.
      
      This PR:
      * Fixes https://github.com/kubernetes/kubernetes/issues/42040 by checking image existence before pulling.
      * Add unit test for it.
      * Fix a potential panic at https://github.com/kubernetes/kubernetes/compare/master...Random-Liu:check-infra-container-image-existence?expand=1#diff-e2eefa11d78ba95197ce406772c18c30R421.
      
      @yujuhong
      91e1933f
    • Kubernetes Submit Queue's avatar
      Merge pull request #42183 from sttts/sttts-bool-parse-warning · 992b1806
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42216, 42136, 42183, 42149, 36828)
      
      Fix bool parse warning in apimachinery
      
      ```golang
      var DefaultConverter = NewConverter(parseBool(os.Getenv("KUBE_PATCH_CONVERSION_DETECTOR")))
      func parseBool(key string) bool {
      	value, err := strconv.ParseBool(key)
      	if err != nil {
      		utilruntime.HandleError(fmt.Errorf("Couldn't parse '%s' as bool for unstructured mismatch detection", key))
      	}
      	return value
      }
      ````
      
      leading to
      
      ```
      W0227 10:06:01.037] E0227 10:06:01.023502   16550 converter.go:87] Couldn't parse '' as bool for unstructured mismatch detection
      ```
      992b1806
    • Kubernetes Submit Queue's avatar
      Merge pull request #42136 from madhusudancs/fed-file-name-cosmetics · 9442f1aa
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42216, 42136, 42183, 42149, 36828)
      
      [Federation] Remove federat{ed,ion} prefixes from e2e file names since they are all now scoped under the e2e_federation package.
      
      This is purely cosmetic.
      
      ```release-note
      NONE
      ```
      
      cc @kubernetes/sig-federation-pr-reviews
      9442f1aa
    • Kubernetes Submit Queue's avatar
      Merge pull request #42216 from smarterclayton/direct_filter · 47e1b78c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Don't filter items when resources requested by name
      
      Add tracking on resource.Builder if a "named" item is requested (from
      file, stream, url, or resource args) and use that in `get` to accurately
      determine whether to filter resources. Add tests.
      
      Fixes #41150, #40492
      
      ```release-note
      Completed pods should not be hidden when requested by name via `kubectl get`.
      ```
      47e1b78c
    • Kubernetes Submit Queue's avatar
      Merge pull request #41335 from irfanurrehman/kubefed-flag-cleanup · aaaa7e44
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42200, 39535, 41708, 41487, 41335)
      
      [Federation][Kubefed] Flag cleanup
      
      This PR is for the issue https://github.com/kubernetes/kubernetes/issues/41333
      
      **Special notes for your reviewer**:
      @marun @madhusudancs 
      
      
      **Release note**:
      
      ```
      Kubefed init unlearned the following flags:
      --storage-backend
      
      Users should instead use the following flag to pass additional arguments:
      --apiserver-arg-overrides to api server
      ```
      aaaa7e44
    • Kubernetes Submit Queue's avatar
      Merge pull request #41487 from anhowe/anhowe-windowsproxy · ef852f93
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42200, 39535, 41708, 41487, 41335)
      
      Update kube-proxy support for Windows
      
      **What this PR does / why we need it**:
      
      The kube-proxy is built upon the sophisticated iptables NAT rules.  Windows does not have an equivalent capability.  This introduces a change to the architecture of the user space mode of the Windows version of kube-proxy to match the capabilities of Windows.
      
      The proxy is organized around service ports and portals.  For each service a service port is created and then a portal, or iptables NAT rule, is opened for each service ip, external ip, node port, and ingress ip.  This PR merges the service port and portal into a single concept of a "ServicePortPortal" where there is one connection opened for each of service IP, external ip, node port, and ingress IP.
      
      This PR only affects the Windows kube-proxy.  It is important for the Windows kube-proxy because it removes the limited portproxy rule and RRAS service and enables full tcp/udp capability to services.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```
      Add tcp/udp userspace proxy support for Windows.
      ```
      ef852f93
    • Kubernetes Submit Queue's avatar
      Merge pull request #41708 from bsalamat/statefulset_spreading2 · 79b5ccc1
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 42200, 39535, 41708, 41487, 41335)
      
      Add support for statefulset spreading to the scheduler
      
      **What this PR does / why we need it**:
      The scheduler SelectorSpread priority funtion didn't have the code to spread pods of StatefulSets. This PR adds StatefulSets to the list of controllers that SelectorSpread supports.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #41513
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      Add the support to the scheduler for spreading pods of StatefulSets.
      ```
      79b5ccc1
    • Kubernetes Submit Queue's avatar
      Merge pull request #39535 from portworx/portworx-kubernetes-volume-plugin · 0b53cd16
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Portworx Volume Plugin
      
      **What this PR does / why we need it**:
      This PR adds a new volume plugin in Kubernetes for Portworx Volumes. Portworx pools available block storage on nodes and carves out volumes from it. More info about Portworx can be found [here](http://docs.portworx.com) The volume plugin supports
      - PVs
      - PVCs
      - Dynamic Provisioning using Storage Classes
      
      **Special notes for your reviewer**:
      I have divided the change into 4 commits
      1. Code for the Volume Plugin
      2. Configuration Files, Examples, Validation Files
      3. Godeps
      4. Generated code and Documentation
      
      ```release-note
      Portworx Volume Plugin added enabling [Portworx](http://www.portworx.com) to be used as a storage provider for Kubernetes clusters. Portworx pools your servers capacity and turns your servers or cloud instances into converged, highly available compute and storage nodes.
      ```
      0b53cd16
    • Kubernetes Submit Queue's avatar
      Merge pull request #42200 from mikedanese/fix-upgrade · 35c2e70d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fix upgrades
      35c2e70d
    • Kubernetes Submit Queue's avatar
      Merge pull request #41670 from mikedanese/delete-trusty · 2035d1e2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      remove trusty GCE kube-up.sh
      
      Asked on the mailing list. No one objected. Lot's of people were in favor.
      
      cc @roberthbailey 
      
      
      ```release-note
      Remove support for trusty in GCE kube-up.
      ```
      2035d1e2
    • Clayton Coleman's avatar
      Don't filter items when resources requested by name · bace9374
      Clayton Coleman authored
      Add tracking on resource.Builder if a "named" item is requested (from
      file, stream, url, or resource args) and use that in `get` to accurately
      determine whether to filter resources. Add tests.
      bace9374
    • Kubernetes Submit Queue's avatar
      Merge pull request #42269 from gmarek/cidr · 70797f51
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Correct CIDR range for kubemark
      70797f51
  2. 28 Feb, 2017 17 commits