1. 13 Oct, 2016 30 commits
    • Devan Goodwin's avatar
      Fix errors and improve output in kubeadm pre-flight checks. · 4231c046
      Devan Goodwin authored
      Add skip-preflight-checks to known flags.
      Fix bug with preflight checks not returning system is-active as errors.
      Fix error handling to use correct function.
      4231c046
    • Derek McQuay's avatar
      kubeadm implement preflight checks · 16b159c1
      Derek McQuay authored
      Includes checks for verifying services exist and are enabled, ports are
      open, directories do not exist or are empty, and required binaries are
      in the path.
      
      Checks that user running kubeamd init and join is root and will only execute
      command if user is root. Moved away from using kubectl error handling to
      having kubeadm handle its own errors. This should allow kubeadm to have
      more meaningful errors, exit codes, and logging for specific kubeadm use
      cases.
      16b159c1
    • Devan Goodwin's avatar
      Add kubeadm preflight check framework. · b673e2d0
      Devan Goodwin authored
      Includes checks for verifying services exist and are enabled, ports are
      open, directories do not exist or are empty, and required binaries are
      in the path.
      b673e2d0
    • Kubernetes Submit Queue's avatar
      Merge pull request #34707 from gmarek/master · 06c1f2ba
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Bump log level in case of Node eviction
      06c1f2ba
    • Kubernetes Submit Queue's avatar
      Merge pull request #34128 from spxtr/nodeinfo · 50f689f5
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Do a kubectl get nodes after turning up the e2e cluster.
      
      https://github.com/kubernetes/test-infra/issues/366
      50f689f5
    • Kubernetes Submit Queue's avatar
      Merge pull request #34694 from gmarek/deleted_final_state_unknown · 1c65d1df
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Handle DeletedFinalStateUnknown in NodeController
      
      Fix #34692
      
      ```release-note
      Fix panic in NodeController caused by receiving DeletedFinalStateUnknown object from the cache.
      ```
      
      cc @davidopp
      1c65d1df
    • gmarek's avatar
      Bump log level in case of Node eviction · 41278b4c
      gmarek authored
      41278b4c
    • Kubernetes Submit Queue's avatar
      Merge pull request #34699 from Crassirostris/es-logging-test-fix · aa485ce8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix ES cluster logging test
      
      @piosz 
      
      Fixes flakiness of ES cluster logging test.
      
      Fix #34666
      aa485ce8
    • Kubernetes Submit Queue's avatar
      Merge pull request #34501 from mikedanese/kubeadm-init-cfg · c1986f0f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: allow kubeadm init to read config from file
      
      @kubernetes/sig-cluster-lifecycle
      c1986f0f
    • Kubernetes Submit Queue's avatar
      Merge pull request #32555 from pweil-/admission-authorizer · ca75b476
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      WantsAuthorizer admission plugin support
      
      The next step of PSP admission is to be able to limit the PSPs used based on user information.  To do this the admission plugin would need to make authz checks for the `user.Info` in the request.  This code allows a plugin to request the injection of an authorizer to allow it to make the authz checks.
      
      Note:  this could be done with a SAR, however since admission is running in the api server using the SAR would incur an extra hop vs using the authorizer directly.
      
      @deads2k @derekwaynecarr
      ca75b476
    • Kubernetes Submit Queue's avatar
      Merge pull request #34456 from kargakis/revert-29808 · 5496d227
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Revert "Error out when any RS has more available pods then its spec r…
      
      Reverts https://github.com/kubernetes/kubernetes/pull/29808
      
      The PR is wrong because we can have more available pods than desired every time we scale down.
      
      @kubernetes/deployment ptal
      5496d227
    • Mik Vyatskov's avatar
      Fix ES cluster logging test · 2d3f294e
      Mik Vyatskov authored
      2d3f294e
    • gmarek's avatar
      Handle DeletedFinalStateUnknown in NodeController · 8b7e9d30
      gmarek authored
      8b7e9d30
    • Kubernetes Submit Queue's avatar
      Merge pull request #34526 from colemickens/colemickens-azure-specify-availabilityset · 3b787c9b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      azure: filter load balancer backend nodes to PrimaryAvailabilitySet (if set)
      
      <!--  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**:
      - Adds a new field (`PrimaryAvailabilitySetName`) to the Azure CloudProvider config struct
      - If the field is set, only machines who are in that availabilitySet are added to the load balancer backend pool.
      
      This is required to:
      - Support more than 100 nodes in Azure (only can have 100 nodes per availability set)
      - Support multiple availability sets per cluster (An Azure L4 LoadBalancer can only be pointed at nodes in a single availability set)
      
      Without this PR, or if the field is **not** set in a cluster that contains two availabilitysets, then the following is observed:
      - Azure resources are created (LB, LB rules, NSG rules, public IP)
      - Azure throws errors when trying to add nodes from the "other" availability set
      - The service winds up exposed to the outside world (if you manually retrieve the public ip from Azure API)
      - Kubernetes controller-manager's service loop keeps retrying forever because it never finishes fully successfully
      - The "external ip" property field is never updated.
      
      **Which issue this PR fixes**: Fixes #34293
      
      **Unknowns**:
      - Naming convention: `LoadBalancedAvailabilitySet` might be more descriptive than `PrimaryAvailabilitySet`, but is also a misnomer since `kube-proxy` will still end up routing requests to all relevant nodes.
      - Is it worth trying to be "smart" about it in the case the user hasn't set this field in the config? Save the first availability set name and try not to add any nodes that aren't also in that one? It may simply be better to just let this fail so the user has to choose the right setting for their use-case.
      
      **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
      azure: add PrimaryAvailabilitySet to config, only use nodes in that set in the loadbalancer pool
      ```
      
      CC: @brendandburns, @anhowe
      3b787c9b
    • Kubernetes Submit Queue's avatar
      Merge pull request #34573 from errordeveloper/fix-early-deployment-issue · 4a223efd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Test API more extensivelly before declaring readiness 
      
      **What this PR does / why we need it**:
      
      It's possible that first deployment kubeadm creates will hit `deployments.extensions "kube-discovery" is forbidden: not yet ready to handle request`, which comes from NamespaceLifecycle admission controller and has something to do with cache. According to @derekwaynecarr, we need to create a namespace-scoped resource to really check for this. I didn't want to make a check with deployment of whatever comes first right now, and decided to have explicit step for this in `apiclient.go`.
      
      **Which issue this PR fixes**: fixes #34411
      
      **Special notes for your reviewer**: @kubernetes/sig-cluster-lifecycle 
      
      **Release note**:
      ```release-note
      NONE
      ```
      4a223efd
    • Kubernetes Submit Queue's avatar
      Merge pull request #33604 from elsonrodriguez/spark-update · fd5cfb37
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Updating Spark Example.
      
      Few usability improvements:
      
      - Added a proxy to enable viewing worker logs
      - Removed seperate webui service
      - Modified Zeppelin and spark-ui services to be Loadbalancers
      - Changed pyspark example to be platform agnostic
      - Minor grammar/flow fixes
      fd5cfb37
    • Kubernetes Submit Queue's avatar
      Merge pull request #34421 from chrislovecnm/cassandra-cpu-fix-flake · 5eb75e4e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      fixing flake test
      
      This should fix https://github.com/kubernetes/kubernetes/issues/32941  - I do not know what CPU guidelines I should be using, and I have had challenges running the tests in parallel.  Dropping the PR instead of messing around with trying to get testing run correctly.
      5eb75e4e
    • Kubernetes Submit Queue's avatar
      Merge pull request #32781 from lukaszo/ready_ds · 523fce99
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add ReadyScheduled to DaemonSet status
      
      Fixes #25605
      
      cc @bgrant0607 @mikedanese
      523fce99
    • Kubernetes Submit Queue's avatar
      Merge pull request #32722 from juanvallejo/jvallejo_return-err-on-oc-get-empty-list · b8b7f9ff
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      return warning on empty list result in kubectl get
      
      **Release note**:
      ```release-note
      NONE
      ```
      
      The current default behavior of `kubectl get` is to return an empty
      output when there are no resources to display. This patch improves
      usability by returning a warning through stderr in the case of an empty
      list.
      
      ##### Before
      `$ kubectl get pods`
        - *empty output*
      
      ##### After
      `$ kubectl get pods`
      ```
      There are no resources to display.
      ```
      b8b7f9ff
    • Kubernetes Submit Queue's avatar
      Merge pull request #34669 from yujuhong/get_netns · a0624835
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Allow kuberuntime to get network namespace for not ready sandboxes
      
      Kubelet calls TearDownPod to clean up the network resources for a pod sandbox.
      TearDownPod relies on GetNetNS to retrieve network namespace, and the current
      implementation makes this impossible for not-ready sandboxes. This change
      removes the unnecessary filter to fix this issue.
      a0624835
    • Kubernetes Submit Queue's avatar
      Merge pull request #34652 from quinton-hoole/2016-10-12-fix-fed-e2e-resource-leak · 726c2e7c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Fix leaking ingress resources in federated ingress e2e test.
      
      Originally the federated ingresses were being deleted, but due to the lack of cascading deletion, the cluster ingresses were never being deleted, leading to leaked GCE loadbalancer resources.  This fixes that.
      726c2e7c
    • Kubernetes Submit Queue's avatar
      Merge pull request #31911 from aveshagarwal/master-rhbz-1372425 · f20e1cc4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Send a pod event if preStop hook did not complete in time.
      
      Fixes https://github.com/kubernetes/kubernetes/issues/31902
      @kubernetes/rh-cluster-infra @derekwaynecarr
      f20e1cc4
    • Kubernetes Submit Queue's avatar
      Merge pull request #33629 from mbohlool/o2 · adfbe8d9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Generate unique Operation IDs for root OpenAPI spec
      
      This PR adds a customization method GetOperationID to OpenAPI spec generation and then use it to make sure root spec has unique operation IDs by mostly adding GroupVersion to the start of operation ID.
      adfbe8d9
    • Kubernetes Submit Queue's avatar
      Merge pull request #30145 from markturansky/limit_range_pvc · a0d4878e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add PVC storage to LimitRange
      
      This PR adds the ability to add a LimitRange to a namespace that enforces min/max on `pvc.Spec.Resources.Requests["storage"]`.
      
      @derekwaynecarr @abhgupta @kubernetes/sig-storage 
      
      Examples forthcoming. 
      
      ```release-note
      pvc.Spec.Resources.Requests min and max can be enforced with a LimitRange of type "PersistentVolumeClaim" in the namespace
      ```
      a0d4878e
    • Kubernetes Submit Queue's avatar
      Merge pull request #33746 from errordeveloper/patch-1 · fdcfb809
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Clarify the purpose of dramatically-simplify-cluster-creation.md
      
      **What this PR does / why we need it**:
      We have merged `docs/proposals/dramatically-simplify-cluster-creation.md` mostly because we'd like to keep accurate historic records. This change adds a note to clarify this.
      
      **Release note**:
      ```release-note
      NONE
      ```
      fdcfb809
    • Kubernetes Submit Queue's avatar
      Merge pull request #34555 from mikedanese/conversion · d236b84b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      kubeadm: fix conversion macros and add kubeadm to round trip testing
      
      Tests are probably broken but I'll fix. @jbeda this probably fixes your change unless we decide we need generated deep copies or conversions.
      
      @kubernetes/sig-cluster-lifecycle
      d236b84b
    • Kubernetes Submit Queue's avatar
      Merge pull request #34647 from zmerlynn/fix-kubemark-log-copy · a3603c9d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      log-dump.sh: Fix kubemark log-dump.sh
      
      **What this PR does / why we need it**: Using `log-dump.sh` with the `kubemark` synthetic provider are broken.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #34446
      a3603c9d
    • Kubernetes Submit Queue's avatar
      Merge pull request #34319 from mwielgus/daemonset-controller · eed41cd6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Federated DaemonSet controller
      
      Based on the secrets controller. E2e tests will come in the next PR.
      
      **Release note**:
      ```release-note
      Federated DaemonSet controller. Supports all the API that regular DaemonSet has.
      ```
      
      cc: @quinton-hoole @kubernetes/sig-cluster-federation
      eed41cd6
    • Yu-Ju Hong's avatar
      Allow kuberuntime to get network namespace for not ready sandboxes · 43368ff7
      Yu-Ju Hong authored
      Kubelet calls TearDownPod to clean up the network resources for a pod sandbox.
      TearDownPod relies on GetNetNS to retrieve network namespace, and the current
      implementation makes this impossible for not-ready sandboxes. This change
      removes the unnecessary filter to fix this issue.
      43368ff7
    • Kubernetes Submit Queue's avatar
      Merge pull request #34620 from madhusudancs/fed-update-charts-image-version · cf3e963d
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [Federation] Fix bash continuation, update charts version and kubeconfig mount permission
      
      ```release-note
      * New federation deployment mechanism now allows non-GCP clusters.
      * Writes the federation kubeconfig to the local kubeconfig file.
      ```
      
      cc @kubernetes/sig-cluster-federation
      cf3e963d
  2. 12 Oct, 2016 10 commits