1. 10 May, 2017 16 commits
    • Kubernetes Submit Queue's avatar
      Merge pull request #45535 from sttts/sttts-client-go-owners · ad9b41db
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add myself to client-go OWNERS
      
      **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
      ```
      ad9b41db
    • Kubernetes Submit Queue's avatar
      Merge pull request #42296 from perotinus/kubefedlogs-update · 57c72a46
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      [Federation] Improve the logging and user feedback in 'kubefed init'
      
      This is a follow-up to #41849, which added some status information. This PR is based off of that one, and includes its changes as well.
      
      See #41725.
      
      ```release-note
      None
      ```
      57c72a46
    • Kubernetes Submit Queue's avatar
      Merge pull request #45490 from deads2k/owners-01-extensions · 3ddbed96
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      add owners to new packages
      
      Adds owners files to some packages that need it.
      3ddbed96
    • Kubernetes Submit Queue's avatar
      Merge pull request #45404 from wojtek-t/edge_based_winuserspace_proxy · bfa18037
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Edge based winuserspace proxy
      
      Last PR in the series of making kube-proxy event-based.
      
      This is a sibling PR to https://github.com/kubernetes/kubernetes/pull/45356 that is already merged.
      The second commit is removing the code that is no longer used.
      bfa18037
    • Kubernetes Submit Queue's avatar
      Merge pull request #45236 from verb/sharedpid-2-default · 77b2e630
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Enable shared PID namespace by default for docker pods
      
      **What this PR does / why we need it**: This PR enables PID namespace sharing for docker pods by default, bringing the behavior of docker in line with the other CRI runtimes when used with docker >= 1.13.1.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: ref #1615
      
      **Special notes for your reviewer**: cc @dchen1107 @yujuhong 
      
      **Release note**:
      
      ```release-note
      Kubernetes now shares a single PID namespace among all containers in a pod when running with docker >= 1.13.1. This means processes can now signal processes in other containers in a pod, but it also means that the `kubectl exec {pod} kill 1` pattern will cause the pod to be restarted rather than a single container.
      ```
      77b2e630
    • Anthony Yeh's avatar
      Update CHANGELOG.md for v1.6.3. · 899f2f4d
      Anthony Yeh authored
      899f2f4d
    • Wojciech Tyczynski's avatar
      ce752e3f
    • Wojciech Tyczynski's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #45523 from colemickens/cmpr-cpfix3 · 3fbfafdd
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      azure: load balancer: support UDP, fix multiple loadBalancerSourceRanges support, respect sessionAffinity
      
      **What this PR does / why we need it**:
      
      1. Adds support for UDP ports
      2. Fixes support for multiple `loadBalancerSourceRanges`
      3. Adds support the Service spec's `sessionAffinity`
      4. Removes dead code from the Instances file
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43683
      
      **Special notes for your reviewer**: n/a
      
      **Release note**:
      
      ```release-note
      azure: add support for UDP ports
      azure: fix support for multiple `loadBalancerSourceRanges`
      azure: support the Service spec's `sessionAffinity`
      ```
      3fbfafdd
    • Kubernetes Submit Queue's avatar
      Merge pull request #45469 from jianglingxia/jlx-0508 · 0f3403d3
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      modify the outdated link
      
      modify the outdated link
      0f3403d3
    • Kubernetes Submit Queue's avatar
      Merge pull request #44746 from xiangpengzhao/fix-podpreset · 148b5da6
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Add support for PodPreset in `kubectl get` command
      
      **What this PR does / why we need it**:
      PR title
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #44736
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      148b5da6
    • Kubernetes Submit Queue's avatar
      Merge pull request #44987 from perotinus/syncworker · f7dcf7d8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45453, 45307, 44987)
      
      [Federation] Add a worker queue to the generic sync controller.
      
      This is in preparation for converting the ReplicaSet controller to be a generic sync controller.
      
      This doesn't include support for multiple workers yet: it's not immediately obvious how to support the command-line flags for ReplicaSet (or, I suppose in general, how do TypeAdapters support external configuration via whatever flag mechanism we're using).
      
      cc @marun
      
      **Release note**:
      ```release-note
      NONE
      ```
      f7dcf7d8
    • Kubernetes Submit Queue's avatar
      Merge pull request #45307 from yujuhong/mv-docker-client · 51a34133
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45453, 45307, 44987)
      
      Migrate the docker client code from dockertools to dockershim
      
      Move docker client code from dockertools to dockershim/libdocker. This includes
      DockerInterface (renamed to Interface), FakeDockerClient, etc.
      
      This is part of #43234
      51a34133
    • Kubernetes Submit Queue's avatar
      Merge pull request #45453 from k82cn/k8s_45220 · 61593ba8
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45453, 45307, 44987)
      
      Init cache with assigned non-terminated pods before scheduling
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #45220
      
      **Release note**:
      
      ```release-note
      The fix makes scheduling go routine waiting for cache (e.g. Pod) to be synced.
      ```
      61593ba8
    • Kubernetes Submit Queue's avatar
      Merge pull request #45181 from vmware/NodeAddressesIPV6IssueNew · 7c3f8c9b
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Filter out IPV6 addresses from NodeAddresses() returned by vSphere
      
      The vSphere CP returns both IPV6 and IPV4 addresses for a Node as part of NodeAddresses() implementation. However, Kubelet fails due to duplicate api.NodeAddress value when the node has an IPV6 address associated with it. This issue is tracked in #42690. The following are observed:
      
      - when we enabled the logs and checked the addresses sent by vSphere CP to Kubelet, we don't see any duplicate addresses at all.
      - Also, kubelet_node_status doesn’t receive any duplicate address from cloud provider.
      
      However, when we filter out the IPV6 addresses and only return IPV4 addresses to the Kubelet, it works perfectly fine. 
      
      Even though the Kubelet receives the non-duplicate node-addresses, it still errors out with duplicate node addresses. It might be an issue when kubelet propagates these addresses to API server (or) API server is enable to handle IPV6 addresses.
      
      @divyenpatel @abrarshivani @pdhamdhere @tusharnt
      
      **Release note**:
      
      ```release-note
      None
      ```
      7c3f8c9b
    • xiangpengzhao's avatar
      baafbf40
  2. 09 May, 2017 24 commits
    • Jonathan MacMillan's avatar
    • Jonathan MacMillan's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #45280 from JulienBalestra/run-pod-inside-unique-netns · 76889118
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      rkt: Generate a new Network Namespace for each Pod
      
      **What this PR does / why we need it**:
      
      This PR concerns the Kubelet with the Container runtime rkt.
      Currently, when a Pod stops and the kubelet restart it, the Pod will use the **same network namespace** based on its PodID.
      
      When the Garbage Collection is triggered, it delete all the old resources and the current network namespace.
      
      The Pods and all containers inside it loose the _eth0_ interface.
      I explained more in details in #45149 how to reproduce this behavior.
      
      This PR generates a new unique network namespace name for each new/restarting Pod.
      The Garbage collection retrieve the correct network namespace and remove it safely.
      
      **Which issue this PR fixes** : 
      
      fix #45149 
      
      **Special notes for your reviewer**:
      
      Following @yifan-gu guidelines, so maybe expecting him for the final review.
      
      **Release note**:
      
      `NONE`
      76889118
    • Kubernetes Submit Queue's avatar
      Merge pull request #45446 from zdj6373/cni · aee07e94
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      cni Log changes
      
      Newly modified log error, modified
      aee07e94
    • Kubernetes Submit Queue's avatar
      Merge pull request #44991 from aaronlevy/cns · b60d322c
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Skip inspecting pod network if unknown namespace
      
      **What this PR does / why we need it**:
      
      If we fail to determine the network namespace of a container we still try to inspect the state - even though there is no way for it to succeed. This leads to errors like:
      
      > NetworkPlugin cni failed on the status hook for pod "X": Unexpected command output nsenter: cannot open : No such file or directory
      
      Instead, if we cannot determine the network namespace, we should just exit with a (hopefully) more clear error message.
      
      I left the wording as assuming a terminated pod, based on:
      https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/helpers.go#L208-L211
      
      ref: 
      https://github.com/kubernetes-incubator/bootkube/issues/475
      https://github.com/coreos/coreos-kubernetes/issues/856
      b60d322c
    • Kubernetes Submit Queue's avatar
      Merge pull request #45529 from wanghaoran1988/fix_issue_44476 · 52e8d6b9
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      oidc auth plugin not to override the Auth header if it's already exits
      
      **What this PR does / why we need it**:
      oidc auth client plugin should not override the `Authorization` header if it's already exits.
      **Which issue this PR fixes** : 
      fix oidc auth plugin override the` Authorization` header
      **Special notes for your reviewer**:
      
      **Release note**:
      52e8d6b9
    • Kubernetes Submit Queue's avatar
      Merge pull request #45527 from gyliu513/statefulset · 6f5337cf
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45304, 45006, 45527)
      
      Fixed indent for some statefulset for e2e test.
      
      **What this PR does / why we need it**:
      Make sure the e2e test passed for statefulset.
      
      **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #45526
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      ```
      6f5337cf
    • Kubernetes Submit Queue's avatar
      Merge pull request #45006 from feiskyer/hostipc · caf47282
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45304, 45006, 45527)
      
      Add node e2e tests for hostIPC
      
      **What this PR does / why we need it**:
      
      Add node e2e tests for hostIPC.
      
      **Which issue this PR fixes**
      
      Part of #44118.
      
      **Special notes for your reviewer**:
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      
      /assign @Random-Liu @yujuhong
      caf47282
    • Kubernetes Submit Queue's avatar
      Merge pull request #45304 from deads2k/controller-03-ns-discovery · f8f9d7db
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45304, 45006, 45527)
      
      increase the QPS for namespace controller
      
      The namespace controller is really chatty. Especially to discovery since that involves two requests for every API version available. This bumps the QPS and burst on the namespace controller to avoid being stuck waiting.
      f8f9d7db
    • Klaus Ma's avatar
      generated client-go. · 3278de72
      Klaus Ma authored
      3278de72
    • Klaus Ma's avatar
      generated codes. · 7bf698a2
      Klaus Ma authored
      7bf698a2
    • Klaus Ma's avatar
    • Kubernetes Submit Queue's avatar
      Merge pull request #42317 from NickrenREN/attach-detach-error-info-print · 202a9f84
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      add and clear err message about RemoveVolumeFromReportAsAttached()
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      202a9f84
    • Kubernetes Submit Queue's avatar
      Merge pull request #45432 from deads2k/agg-30-status · 97889d4f
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44798, 45537, 45448, 45432)
      
      use apiservice.status to break apart controller and handling concerns
      
      Still needs tests.
      
      This starts breaking the handler and controller aspects of the aggregator by making use of status and conditions instead of actually running a specific check on demand.
      
      @kubernetes/sig-api-machinery-pr-reviews 
      @luxas since you've been asking
      97889d4f
    • Kubernetes Submit Queue's avatar
      Merge pull request #45448 from zhangxiaoyu-zidif/cleancode-nfs-return-err · fc287626
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44798, 45537, 45448, 45432)
      
      nfs.go: cleancode err
      
      **What this PR does / why we need it**:
      The modification makes  code clean, simple, and easy to inspect. 
      
      **Release note**:
      
      ```release-note
      NONE
      ```
      fc287626
    • Kubernetes Submit Queue's avatar
      Merge pull request #45537 from shyamjvs/yolo · 93adcbd0
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 44798, 45537, 45448, 45432)
      
      Stream output of run-gcloud-compute-with-retries to stdout in realtime
      
      Ref https://github.com/kubernetes/kubernetes/issues/40139#issuecomment-299894222 (3rd point)
      This should help us get more info about timeouts during start-kubemark-master.sh.
      
      cc @wojtek-t @gmarek
      93adcbd0
    • Kubernetes Submit Queue's avatar
      Merge pull request #44798 from zetaab/master · 49626c97
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Statefulsets for cinder: allow multi-AZ deployments, spread pods across zones
      
      **What this PR does / why we need it**: Currently if we do not specify availability zone in cinder storageclass, the cinder is provisioned to zone called nova. However, like mentioned in issue, we have situation that we want spread statefulset across 3 different zones. Currently this is not possible with statefulsets and cinder storageclass. In this new solution, if we leave it empty the algorithm will choose the zone for the cinder drive similar style like in aws and gce storageclass solutions. 
      
      **Which issue this PR fixes** fixes #44735
      
      **Special notes for your reviewer**:
      
      example:
      
      ```
      kind: StorageClass
      apiVersion: storage.k8s.io/v1beta1
      metadata:
        name: all
      provisioner: kubernetes.io/cinder
      ---
      apiVersion: v1
      kind: Service
      metadata:
        annotations:
          service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
        name: galera
        labels:
          app: mysql
      spec:
        ports:
        - port: 3306
          name: mysql
        clusterIP: None
        selector:
          app: mysql
      ---
      apiVersion: apps/v1beta1
      kind: StatefulSet
      metadata:
        name: mysql
      spec:
        serviceName: "galera"
        replicas: 3
        template:
          metadata:
            labels:
              app: mysql
            annotations:
              pod.alpha.kubernetes.io/initialized: "true"
          spec:
            containers:
            - name: mysql
              image: adfinissygroup/k8s-mariadb-galera-centos:v002
              imagePullPolicy: Always
              ports:
              - containerPort: 3306
                name: mysql
              - containerPort: 4444
                name: sst
              - containerPort: 4567
                name: replication
              - containerPort: 4568
                name: ist
              volumeMounts:
              - name: storage
                mountPath: /data
              readinessProbe:
                exec:
                  command:
                  - /usr/share/container-scripts/mysql/readiness-probe.sh
                initialDelaySeconds: 15
                timeoutSeconds: 5
              env:
                - name: POD_NAMESPACE
                  valueFrom:
                    fieldRef:
                      apiVersion: v1
                      fieldPath: metadata.namespace
        volumeClaimTemplates:
        - metadata:
            name: storage
            annotations:
              volume.beta.kubernetes.io/storage-class: all
          spec:
            accessModes: [ "ReadWriteOnce" ]
            resources:
              requests:
                storage: 12Gi
      ```
      
      If this example is deployed it will automatically create one replica per AZ. This helps us a lot making HA databases.
      
      Current storageclass for cinder is not perfect in case of statefulsets. Lets assume that cinder storageclass is defined to be in zone called nova, but because labels are not added to pv - pods can be started in any zone. The problem is that at least in our openstack it is not possible to use cinder drive located in zone x from zone y. However, should we have possibility to choose between cross-zone cinder mounts or not? Imo it is not good way of doing things that they mount volume from another zone where the pod is located(means more network traffic between zones)? What you think? Current new solution does not allow that anymore (should we have possibility to allow it? it means removing the labels from pv).
      
      There might be some things that needs to be fixed still in this release and I need help for that. Some parts of the code is not perfect.
      
      Issues what i am thinking about (I need some help for these):
      1) Can everybody see in openstack what AZ their servers are? Can there be like access policy that do not show that? If AZ is not found from server specs, I have no idea how the code behaves. 
      2) In GetAllZones() function, is it really needed to make new serviceclient using openstack.NewComputeV2 or could I somehow use existing one
      3) This fetches all servers from some openstack tenant(project). However, in some cases kubernetes is maybe deployed only to specific zone. If kube servers are located for instance in zone 1, and then there are another servers in same tenant in zone 2. There might be usecase that cinder drive is provisioned to zone-2 but it cannot start pod, because kubernetes does not have any nodes in zone-2. Could we have better way to fetch kubernetes nodes zones? Currently that information is not added to kubernetes node labels automatically in openstack (which should I think). I have added those labels manually to nodes. If that zone information is not added to nodes, the new solution does not start stateful pods at all, because it cannot target pods.
      
      
      cc @rootfs @anguslees @jsafrane 
      
      ```release-note
      Default behaviour in cinder storageclass is changed. If availability is not specified, the zone is chosen by algorithm. It makes possible to spread stateful pods across many zones.
      ```
      49626c97
    • Kubernetes Submit Queue's avatar
      Merge pull request #45403 from sttts/sttts-tri-state-watch-capacity · 49e54355
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      apiserver: injectable default watch cache size
      
      This makes it possible to override the default watch capacity in the REST options getter. Before this PR the default is written into the storage struct explicitly, and if it is the default, the REST options getter didn't know. With this the PR the default is applied late and can be injected from the outside.
      49e54355
    • deads2k's avatar
      272aa243
    • Kubernetes Submit Queue's avatar
      Merge pull request #45463 from nilebox/nilebox-tpr-watcher-example · 110f410e
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue (batch tested with PRs 45481, 45463)
      
      ThirdPartyResource example: added watcher example, code cleanup
      
      **NOTE**: This is a cleaned and updated version of PR https://github.com/kubernetes/kubernetes/pull/43027
      
      **What this PR does / why we need it**:
      An example of using go-client for watching on ThirdPartyResource events (create/update/delete).
      110f410e
    • deads2k's avatar
      add apiservices/status REST handling · b9768817
      deads2k authored
      b9768817
    • Kubernetes Submit Queue's avatar
      Merge pull request #45481 from CaoShuFeng/xtables/lock · 02d75cb4
      Kubernetes Submit Queue authored
      Automatic merge from submit-queue
      
      Remove leaked tmp file in unit tests
      
      Some unit tests leave a temp file in work space:
      pkg/util/iptables/xtables.lock
      This patch remove that file
      @dcbw 
      **Release note**:
      
      ```NONE
      ```
      02d75cb4
    • Dr. Stefan Schimanski's avatar
      Add myself to client-go OWNERS · b7146bca
      Dr. Stefan Schimanski authored
      b7146bca
    • Shyam Jeedigunta's avatar