1. 11 Apr, 2017 1 commit
  2. 05 Apr, 2017 32 commits
  3. 04 Apr, 2017 7 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #41929 from abrarshivani/fstype_in_storage_class · 5ef8148b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44008, 41929)
      
      vSphere Cloud Provider: Fstype in storage class
      
      This PR does following,
      
      1. Adds fstype support in storage class for vSphere Cloud Provider.
      2. Modify examples to include fstype in storage class.
      3. Adds fstype support in storage class for Photon Controller Cloud Provider (@luomiao)
      
      Internally reviewed [here](https://github.com/vmware/kubernetes/pull/88).
      
      cc @pdhamdhere @tusharnt @kerneltime @BaluDontu @divyenpatel @luomiao
      5ef8148b
    • Kubernetes Submit Queue's avatar
      Merge pull request #44008 from ixdy/bazel-rules-go · fa30e469
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44008, 41929)
      
      Bump rules_go to latest
      
      **What this PR does / why we need it**: updates the Bazel go_rules dependency which provides several important bugfixes and feature enhancements. It's still using go1.7.5, so all tests should still pass.
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      /assign @mikedanese @spxtr
      fa30e469
    • Kubernetes Submit Queue's avatar
      Merge pull request #43467 from tvansteenburgh/gpu-support · 3a3dc827
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44047, 43514, 44037, 43467)
      
      Juju: Enable GPU mode if GPU hardware detected
      
      **What this PR does / why we need it**:
      
      Automatically configures kubernetes-worker node to utilize GPU hardware when such hardware is detected.
      
      layer-nvidia-cuda does the hardware detection, installs CUDA and Nvidia
      drivers, and sets a state that the k8s-worker can react to.
      
      When gpu is available, worker updates config and restarts kubelet to
      enable gpu mode. Worker then notifies master that it's in gpu mode via
      the kube-control relation.
      
      When master sees that a worker is in gpu mode, it updates to privileged
      mode and restarts kube-apiserver.
      
      The kube-control interface has subsumed the kube-dns interface
      functionality.
      
      An 'allow-privileged' config option has been added to both worker and
      master charms. The gpu enablement respects the value of this option;
      i.e., we can't enable gpu mode if the operator has set
      allow-privileged="false".
      
      **Special notes for your reviewer**:
      
      Quickest test setup is as follows:
      ```bash
      # Bootstrap. If your aws account doesn't have a default vpc, you'll need to
      # specify one at bootstrap time so that juju can provision a p2.xlarge.
      # Otherwise you can leave out the --config "vpc-id=vpc-xxxxxxxx" bit.
      juju bootstrap --config "vpc-id=vpc-xxxxxxxx" --constraints "cores=4 mem=16G root-disk=64G" aws/us-east-1 k8s
      
      # Deploy the bundle containing master and worker charms built from
      # https://github.com/tvansteenburgh/kubernetes/tree/gpu-support/cluster/juju/layers
      juju deploy cs:~tvansteenburgh/bundle/kubernetes-gpu-support-3
      
      # Setup kubectl locally
      mkdir -p ~/.kube
      juju scp kubernetes-master/0:config ~/.kube/config
      juju scp kubernetes-master/0:kubectl ./kubectl
      
      # Download a gpu-dependent job spec
      wget -O /tmp/nvidia-smi.yaml https://raw.githubusercontent.com/madeden/blogposts/master/k8s-gpu-cloud/src/nvidia-smi.yaml
      
      # Create the job
      kubectl create -f /tmp/nvidia-smi.yaml
      
      # You should see a new nvidia-smi-xxxxx pod created
      kubectl get pods
      
      # Wait a bit for the job to run, then view logs; you should see the
      # nvidia-smi table output
      kubectl logs $(kubectl get pods -l name=nvidia-smi -o=name -a)
      ```
      
      kube-control interface: https://github.com/juju-solutions/interface-kube-control
      nvidia-cuda layer: https://github.com/juju-solutions/layer-nvidia-cuda
      (Both are registered on http://interfaces.juju.solutions/)
      
      **Release note**:
      ```release-note
      Juju: Enable GPU mode if GPU hardware detected
      ```
      3a3dc827
    • Kubernetes Submit Queue's avatar
      Merge pull request #44037 from dims/update-boltdb-dependency · 617464bd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44047, 43514, 44037, 43467)
      
      Update boltdb dependency to fix golang 1.7 intermittent failures
      
      We have a old boltdb/bolt, etcd has moved to newer boltdb, so we should
      do the same. Specifically this change needs to be in our tree:
      https://github.com/boltdb/bolt/commit/92410e067395f10c8c93fad62c3e6c4b7aca82f0
      
      as this fixes intermittent issues we see in our CI runs. So in this
      PR, we vendor the v1.3.0 version of boltdb/bolt.
      
      Fixes #43973
      617464bd
    • Kubernetes Submit Queue's avatar
      Merge pull request #43514 from zjj2wry/006 · 89875ccb
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44047, 43514, 44037, 43467)
      
      unit test for kubectl config use-context
      
      **What this PR does / why we need it**:
      unit test for kubectl config use-context
      
      **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**:
      think you
      
      **Release note**:
      
      ```release-note
      ```
      89875ccb
    • Kubernetes Submit Queue's avatar
      Merge pull request #44047 from yujuhong/dont_panic · 1a43fd0a
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44047, 43514, 44037, 43467)
      
      Check the error before parsing the apiversion
      
      This fixes #44027
      1a43fd0a
    • Kubernetes Submit Queue's avatar
      Merge pull request #42518 from mtanino/issue/42517 · 95289ff2
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      get-kube-local.sh checks pods with option "--namespace=kube-system"
      
      **What this PR does / why we need it**:
      
      Local cluster creation using get-kube-local.sh is never finished.
      The get-kube-local.sh monitors running_count of pods such as etcd,
      master and kube-proxy, but these pods are created under the namespace
      kube-system. Therefore kubectl can't find these pods then cluster
      creation isn't completed.
      
      The get-kube-local.sh should monitor created pods with option
      "--namespace=kube-system".
      
      **Which issue this PR fixes** : fixes #42517
      
      
      
      
      **Release note**: 
      
      ```
      `NONE`
      ```
      95289ff2