- 15 Oct, 2016 40 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue attempt to use discovery RESTMapper and fallback if we can't Updates `kubectl` to always attempt discovery regardless of server version. This is needed to extension servers.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue you can be authorized and have a failure Fix the authorization filter to allow you through and to avoid showing internal errors to users when authorization failed.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Update run flags to point to generators docs @janetkuo you've requested that in https://github.com/kubernetes/kubernetes/pull/32484#issuecomment-246840562 I'm opening this PR but like you I don't like the length of the descriptions already. The other problem with this is that there's not clean docs for a user to figure out what the generators are. I've stumbled upon this several times and I always found myself looking into the code :/ How about adding new flag/subcommand that will give you more information about generators and we'd move all those `--restart` and `--generator` information into specific generator info and present at the top level only general information?
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Doc: Explain how to use EBS storage on AWS <!-- 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**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **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 ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix edge case in qos evaluation If a pod has a container C1 and C2, where sum(C1.requests, C2.requests) equals (C1.Limits), the code was reporting that the pod had "Guaranteed" qos, when it should have been Burstable. /cc @vishh @dchen1107
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue libvirt-coreos: Download the coreos_production_qemu_image over SSL. **Which issue this PR fixes**: fixes #7347
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add unit test for bad ReclaimPolicy and valid ReclaimPolicy in /pkg/api/validation unit tests for validation.go regarding PersistentVolumeReclaimPolicy (bad value and good value) see PR: #30304
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubeadm join: Added support for config file. As more behavior (#34719, #34807, fix for #33641) is added to `kubeadm join`, this will be eventually very much needed. Makes sense to go in sooner rather than later. Also references #34501 and #34884. /cc @luxas @mikedanese
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix typo: initilizing -> initializing
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue when err is nil,remove it from glog err can be nil here.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Corrected title of example "Java Web Application with Tomcat and Side… **What this PR does / why we need it**: Corrects spelling error in title of example "Java Web Application with Tomcat and Sidercar Container". **Which issue this PR fixes**: NONE **Special notes for your reviewer**: NONE **Release note**: NONE
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove duplicated code in kubectl portforward test
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue ie. should be i.e.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Upgrade addon-manager with kubectl apply The first step of #33698. Use `kubectl apply` to replace addon-manager's previous logic. The most important issue this PR is targeting is the upgrade from 1.4 to 1.5. Procedure as below: 1. Precondition: After the master is upgraded, new addon-manager starts and all the old resources on nodes are running normally. 2. Annotate the old ReplicationController resources with kubectl.kubernetes.io/last-applied-configuration="" 3. Call `kubectl apply --prune=false` on addons folder to create new addons, including the new Deployments. 4. Wait for one minute for new addons to be spinned up. 5. Enter the periodical loop of `kubectl apply --prune=true`. The old RCs will be pruned at the first call. Procedure of a normal startup: 1. Addon-manager starts and no addon resources are running. 2. Annotate nothing. 3. Call `kubectl apply --prune=false` to create all new addons. 4. No need to explain the remain. Remained Issues: - Need to add `--type` flag to `kubectl apply --prune`, mentioned [here](https://github.com/kubernetes/kubernetes/pull/33075#discussion_r80814070). - This addon manager is not working properly with the current Deployment heapster, which runs [addon-resizer](https://github.com/kubernetes/contrib/tree/master/addon-resizer) in the same pod and changes resource limit configuration through the apiserver. `kubectl apply` fights with the addon-resizers. May be we should remove the initial resource limit field in the configuration file for this specific Deployment as we removed the replica count. @mikedanese @thockin @bprashanth --- Below are some logical things that may need to be clarified, feel free to **OMIT** them as they are too verbose: - For upgrade, the old RCs will not fight with the new Deployments during the overlap period even if they use the same label in template: - Deployment will not recognize the old pods because it need to match an additional "pod-template-hash" label. - ReplicationController will not manage the new pods (created by deployment) because the [`controllerRef`](https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/controller-ref.md) feature. - As we are moving all addons to Deployment, all old RCs would be removed. Attach empty annotation to RCs is only for letting `kubectl apply --prune` to recognize them, the content does not matter. - We might need to also annotate other resource types if we plan to upgrade them in 1.5 release: - They don't need to be attached this fake annotation if they remain in the same name. `kubectl apply` can recognize them by name/type/namespace. - In the other case, attaching empty annotations to them will still work. As the plan is to use label selector for annotate, some innocence old resources may also be attached empty annotations, they work as below two cases: - Resources that need to be bumped up to a newer version (mainly due to some significant update --- change disallowed fields --- that could not be managed by the update feature of `kubectl apply`) are good to go with this fake annotation, as old resources will be deleted and new sources will be created. The content in annotation does not matter. - Resources that need to stay inside the management of `kubectl apply` is also good to go. As `kubectl apply` will [generate a 3-way merge patch](https://github.com/kubernetes/kubernetes/blob/master/pkg/util/strategicpatch/patch.go#L1202-L1226). This empty annotation is harmless enough.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove duplicate code from kubectl describe
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue default serializer Everyone uses the same serializer. Set it as the default, but still allow someone to take control if they want. Found while trying to use genericapiserver for composition.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Updated err message when retrieving resources by name with --all-name… fixes #15834
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Implement kubeadm reset @kubernetes/sig-cluster-lifecycle
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue add --dry-run flag to `kubectl apply, kubectl create` Partially addresses https://github.com/kubernetes/kubernetes/issues/11488 **Release note**: ```release-note release-note-none ``` Related StackOverflow: http://stackoverflow.com/questions/38824409/validate-openshift-objects-defined-in-yaml-before-actually-applying-or-executing This patch adds a `--dry-run` flag to the `apply` command in order to allow validation of objects, without patching or creating them. If a `--dry-run` flag is present and no validation errors are found, the command will exit before "configuring" or creating any objects. @ncdc @fabianofranz
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubeadm join: polling discovery service API **What this PR does / why we need it**: Enhance kubeadm to allow for parallel provisioning of API endpoints and slave nodes, in addition to https://github.com/kubernetes/kubernetes/pull/33543. This PR let's `kubeadm join` poll the discovery service API and retry connecting to it every couple of seconds. That way `kubeadm init` and `kubeadm join` can be executed in parallel. **Fixes**: https://github.com/kubernetes/kubernetes/issues/33542 **Special notes for your reviewer**: @pires @errordeveloper last part of the discussed changes, in addition to https://github.com/kubernetes/kubernetes/pull/33543 and https://github.com/kubernetes/kubernetes/pull/34703
-
Paulo Pires authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue ObjectReflectDiff needs a few more checks for nil
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix typos in juju's metadata.yaml Trivial update to juju's metadata.yaml to fix typos
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Use same SSH tunnel as kubelet Provides a secure workaround for #11816 by having kube-apiserver use the same SSH tunnel as the kubelet it is trying to connect to. Use in conjunction with iptables or kubelet `--address=127.0.0.1`. The latter will break heapster. Will fallback to random behavior if the tunnel cannot be found.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Openstack: Update lb member when node port changes Ensures lb members are update if node port changes. cc @suonto
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix typos and englishify plugin/pkg **What this PR does / why we need it**: Just typos **Which issue this PR fixes**: `None` **Special notes for your reviewer**: Just typos **Release note**: `NONE`
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fixed downloading of flannel 0.6.x releases in ubuntu installer, 0.5.x works as well **What this PR does / why we need it**: This PR fixes compatibility of ubuntu installer with flannel release 0.6.0 and 0.6.1 where download url was changed. **Release note**: ```NONE ```
-
Lucas Käldström authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue PodGCController waits for informer sync before doing anything.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Cleanup the commented code for overriding flags with viper. For now,… Minor cleanup for the viper configuration logic, removes commented code into a function of its own. We can decide wether or not to overwrite flag values at a later time...
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Remove imports of "pkg/client/unversioned" in "pkg/controller" We are trying to deprecate "pkg/client/unversioned", see https://github.com/kubernetes/kubernetes/issues/25442. Also part of https://github.com/kubernetes/kubernetes/issues/29934.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix typos
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix error handling Add missing error handling mentioned in [#33250 Comment](https://github.com/kubernetes/kubernetes/pull/33250#issuecomment-253920315) @janetkuo
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue fix sed command run failed on mac os bash command ```sed -i ... ``` run failed on mac os, it should be ```sed -i.back ..```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Add global timeout flag **Release note**: ```release-note Add a new global option "--request-timeout" to the `kubectl` client ``` UPSTREAM: https://github.com/kubernetes/client-go/pull/10 This patch adds a global timeout flag (viewable with `kubectl -h`) with a default value of `0s` (meaning no timeout). The timeout value is added to the default http client, so that zero values and default behavior are enforced by the client. Adding a global timeout ensures that user-made scripts won't hang for an indefinite amount of time while performing remote calls (right now, remote calls are re-tried up to 10 times when each attempt fails, however, there is no option to set a timeout in order to prevent any of these 10 attempts from hanging indefinitely). **Example** ``` $ kubectl get pods # no timeout flag set - default to 0s (which means no timeout) NAME READY STATUS RESTARTS AGE docker-registry-1-h7etw 1/1 Running 1 2h router-1-uv0f9 1/1 Running 1 2h $ kubectl get pods --request-timeout=0 # zero means no timeout no timeout flag set NAME READY STATUS RESTARTS AGE docker-registry-1-h7etw 1/1 Running 1 2h router-1-uv0f9 1/1 Running 1 2h $kubectl get pods --request-timeout=1ms Unable to connect to the server: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Pass whole PVC to provisioner plugins Gluster provisioner is interested in namespace of PVCs that are being provisioned and I don't want to add at as a new field in `volume.VolumeOptions` - it would contain almost whole PVC. Let's rework `VolumeOptions` and pass direct reference to PVC there instead of some "interesting" fields and let the provisioner to pick information it is interested in. There was lot of refactoring in volume plugins to apply this change (too many plugins), however the logic is simple and it's all the same in all plugins. @rootfs @humblec
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue replace kubeclient with kubeclientset in scheduler factory
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue honor SAR verb Verbs on non-resource requests were dropped. This results in always being denied for all the authorizers I know of, so no unintended exposure, but its still ugly. We should probably pick. @liggitt I would have expected the kubelet work to get stuck on this.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubeadm join: wait for API endpoints **What this PR does / why we need it**: enhance kubeadm to allow for parallel provisioning of API endpoints and slave nodes, continued from https://github.com/kubernetes/kubernetes/pull/33543 **Fixes**: https://github.com/kubernetes/kubernetes/issues/33542 **Special notes for your reviewer**: * Introduces a concurrent retry mechanism for bootstrapping with a single API endpoint during `kubeadm join` (this was left out in https://github.com/kubernetes/kubernetes/pull/33543 so that it can be implemented in a separate PR). The polling of the discovery service API itself is yet to come. @errordeveloper @pires
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Increase buffer sizes in cacher for watchers interested in all/many o… Should increase throughput of cacher in large clusters.
-