- 20 Apr, 2017 1 commit
-
-
Tomas Smetana authored
When the attach/detach controller crashes and a pod with attached PV is deleted afterwards the controller will never detach the pod's attached volumes. To prevent this the controller should try to recover the state from the nodes status.
-
- 19 Apr, 2017 12 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fix ensureDnsRecords comments for federated services I went to look at the source comments, because the documentation is not exhaustive about what kind of DNS records are created for federated services (and http://blog.kubernetes.io/2016/07/cross-cluster-services.html is wrong...). It turns out that even the comment is not in sync with the code: two out of three records listed use `.federation`, while the author probably meant `.mydomain.com` (which has less chance of getting mixed up with `myfed`). I fixed those, as well as a few spelling and parenthesis errors. Hopefully this will help others save time and not scratch their heads. cc @quinton-hoole
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44645, 44639, 43510) Add support for Azure internal load balancer **Which issue this PR fixes** Fixes https://github.com/kubernetes/kubernetes/issues/38901 **What this PR does / why we need it**: This PR is to add support for Azure internal load balancer Currently when exposing a serivce with LoadBalancer type, Azure provider would assume that it requires a public load balancer. Thus it will request a public IP address resource, and expose the service via that public IP. In this case we're not able to apply private IP addresses (within the cluster virtual network) for the service. **Special notes for your reviewer**: 1. Clarification: a. 'LoadBalancer' refers to an option for 'type' field under ServiceSpec. See https://kubernetes.io/docs/resources-reference/v1.5/#servicespec-v1 b. 'Azure LoadBalancer' refers a type of Azure resource. See https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-overview 2. For a single Azure LoadBalancer, all frontend ip should reference either a subnet or publicIpAddress, which means that it could be either an Internet facing load balancer or an internal one. For current provider, it would create an Azure LoadBalancer with generated '${loadBalancerName}' for all services with 'LoadBalancer' type. This PR introduces name '${loadBalancerName}-internal' for a separate Azure Load Balancer resource, used by all the service that requires internal load balancers. 3. This PR introduces a new annotation for the internal load balancer type behaviour: a. When the annotaion value is set to 'false' or not set, it falls back to the original behaviour, assuming that user is requesting a public load balancer; b. When the annotaion value is set to 'true', the following rule applies depending on 'loadBalancerIP' field on ServiceSpec: - If 'loadBalancerIP' is not set, it will create a load balancer rule with dynamic assigned frontend IP under the cluster subnet; - If 'loadBalancerIP' is set, it will create a load balancer rule with the frontend IP set to the given value. If the given value is not valid, that is, it does not falls into the cluster subnet range, then the creation will fail. 4. Users may change the load balancer type by applying the annotation to the service at runtime. In this case, the load balancer rule would need to be 'switched' between the internal one and external one. For example, it we have a service with internal load balancer, and then user removes the annotation, making it to a public one. Before we creating rules in the public Azure LoadBalancer, we'll need to clean up rules in the internal Azure LoadBalancer. **Release note**:
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44645, 44639, 43510) [Federation][kubefed]: Set apiserver to bind securely to 8443 instead of 443 On platforms like OpenShift that don't run containers as root by default, binding to ports < 1000 is not permitted. Having the apiserver bind to a high port means it can run with reduced privileges. The service will still expose the apiserver on 443, so this change shouldn't impact clients of the federation api. cc: @kubernetes/sig-federation-pr-reviews @perotinus
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44645, 44639, 43510) allow the token controller to get secrets we need this on secret rotation here: https://github.com/kubernetes/kubernetes/blob/2c1c0f3f7295e0d00651d6e30cfcda56239275e4/pkg/controller/serviceaccount/tokens_controller.go#L478-L481 cc @liggitt
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43500, 44073) [Federation] Add option to retrieve e2e cluster config from secrets Previously the federation e2e setup was reading member cluster configuration from the test run's kubeconfig. This change removes that dependency in favor of reading member cluster configuration from secrets in the hosting cluster, and caches the configuration to avoid having to read it separately for each test. cc: @kubernetes/sig-federation-pr-reviews @perotinus
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [Federation] Add simple upgrade test This PR adds a simple upgrade test that targets all registered federated types. cc: @kubernetes/sig-federation-pr-reviews @perotinus
-
Maru Newby authored
On platforms like OpenShift that don't run containers as root by default, binding to ports < 1000 is not permitted. Having the apiserver bind to a high port means it can run with reduced privileges. The service will still expose the apiserver on 443, so this change shouldn't impact clients of the federation api.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44222, 44614, 44292, 44638) Update dummy certificate used in porter image **What this PR does / why we need it**: the dummy certificate used for the porter image is incompatible with go1.8+ since it is missing NULL parameters for the RSA public key. I haven't pushed the new porter image yet. I verified that this appears to fix the issue. Based on https://github.com/kubernetes/kubernetes/issues/38228#issuecomment-280213590, for the old cert: ```console $ openssl x509 -in localhost.crt -outform der | openssl asn1parse -inform der -i ... 105:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption 116:d=3 hl=2 l= 75 prim: BIT STRING ... ``` and the new cert: ```console $ openssl x509 -in localhost.crt -outform der | openssl asn1parse -inform der -i ... 127:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption 138:d=4 hl=2 l= 0 prim: NULL 140:d=3 hl=4 l= 271 prim: BIT STRING ... ``` **Release note**: ```release-note NONE ``` cc @liggitt @lavalamp @luxas
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44222, 44614, 44292, 44638) Optionally deploy kubernetes dashboard in local-up cluster **What this PR does / why we need it**: Enable users of local up cluster to optionally deploy the kubernetes dashboard. **Special notes for your reviewer**: The dashboard is especially useful when working on k8s + service catalog at the same time.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44222, 44614, 44292, 44638) Update resource usage constraints
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44222, 44614, 44292, 44638) Smarter generic getters and describers Makes printers and describers smarter for generic resources. This traverses unstructured objects and prints their attributes for generic resources (TPR, federated API, etc) in `kubectl get` and `kubectl describe`. Makes use of the object's field names to come up with a best guess for describer labels and get headers, and field value types to understand how to better print it, indent, etc. A nice intermediate solution while we don't have [get and describe extensions](https://github.com/kubernetes/community/pull/308). Examples: ``` $ kubectl get serviceclasses NAME KIND BINDABLE BROKER NAME OSB GUID user-provided-service ServiceClass.v1alpha1.servicecatalog.k8s.io false ups-broker 4f6e6cf6-ffdd-425f-a2c7-3c9258ad2468 ``` ``` $ kubectl describe serviceclasses/user-provided-service Name: user-provided-service Namespace: Labels: <none> Annotations: FOO=BAR openshift.io/deployment.phase=test OSB Metadata: <nil> Kind: ServiceClass Metadata: Self Link: /apis/servicecatalog.k8s.io/v1alpha1/serviceclassesuser-provided-service UID: 1509bd96-1b05-11e7-98bd-0242ac110006 Resource Version: 256 Creation Timestamp: 2017-04-06T20:10:29Z Broker Name: ups-broker Bindable: false Plan Updatable: false OSB GUID: 4f6e6cf6-ffdd-425f-a2c7-3c9258ad2468 API Version: servicecatalog.k8s.io/v1alpha1 Plans: Name: default OSB GUID: 86064792-7ea2-467b-af93-ac9694d96d52 OSB Free: true OSB Metadata: <nil> Events: <none> ``` **Release note**: ```release-note Improved output on 'kubectl get' and 'kubectl describe' for generic objects. ``` PTAL @pmorie @pwittrock @kubernetes/sig-cli-pr-reviews
-
Mike Danese authored
we need this on secret rotation here: https://github.com/kubernetes/kubernetes/blob/2c1c0f3f7295e0d00651d6e30cfcda56239275e4/pkg/controller/serviceaccount/tokens_controller.go#L478-L481
-
- 18 Apr, 2017 27 commits
-
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Pods marked for deletion should be counted as unavailable cc @kargakis @janetkuo
-
Maru Newby authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue retry when checking output of kubectl describe e2e test Add retry for kubectl describe e2e test according to https://github.com/kubernetes/kubernetes/issues/41898#issuecomment-294175426 fixes: #41898 cc: @fejta
-
Jeff Grafton authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue kubeadm: remove maintainer @pires. Don't count on me for 1.7. /cc @luxas @mikedanese ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Removing myself from Juju Owners Not familiar with this part of codebase.
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue namespace deletion and kubelet restart tests for vSphere cloud provider **What this PR does / why we need it**: Following tests for vSphere cloud provider are added as part of this PR **Test to verifiy that a volume mounted to a pod that is deleted while the kubelet is down, unmounts volume when the kubelet returns** **Steps:** 1. Create volume (vmdk) 2. Create PV with volume path for the vmdk. 3. Create PVC to bind with PV. 4. Create a pod using the PVC. 5. Verify disk is attached to the node. and verify volume is mounted on the node. 6. Stop kubelet. 7. Delete pod. 8. Start kubelet. 9. Verify that volume mount not to be found on the node. **Test to verify that deleting the Namespace of a PVC and Pod causes the successful detach of Persistent Disk.** **Steps:** 1. Create volume (vmdk) 2. Create PV with volume path for the vmdk. 3. Create PVC to bind with PV. 4. Create a pod using the PVC. 5. Verify disk is attached to the node. 6. Delete Namespace. 7. Wait for namespace to get deleted. (Namespace deletion should trigger deletion of belonging pods) 8. Verify volume should be detached from the node. Moved test from https://github.com/kubernetes/kubernetes/pull/41976 **Test to verify that a volume mounted to a pod remains mounted after a kubelet restarts.** 1. Create volume (vmdk) 2. Create PV with volume path for the vmdk. 3. Create PVC to bind with PV. 4. Create a pod using the PVC. 5. Verify disk is attached to the node. 6. Write to the volume 7. Restart kubelet on the node on which pod is provisioned. 8. Verify that written file is accessible after kubelet restart. 9. Delete pod. 10. Delete PV, PVC 11. Wait for VMDK to detach from node. 12. Delete VMDK **Which issue this PR fixes** fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` cc: @abrarshivani @BaluDontu @tusharnt @pdhamdhere
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 44500, 44457, 44553, 44267, 44617) nits in service e2e test logging Saw some weird logs from CI [gce-alpha-features](https://k8s-testgrid.appspot.com/google-gce#gce-alpha-features&width=5). ``` ... Health checking bootstrap-e2e-minion-group-3tm9, http://35.188.44.206:32733//healthz, expectedSuccess true ... Expected %!!(MISSING)s(int=2) failures on bootstrap-e2e-minion-group-8h0q//healthz, got 0, err ... ``` **Release note**: ```release-note NONE ```
-
Łukasz Oleś authored
-
nikhiljindal authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43000, 44500, 44457, 44553, 44267) add kubectl config view test code **What this PR does / why we need it**: kubectl config view test code **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 very much :) **Release note**: ```release-note ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43000, 44500, 44457, 44553, 44267) EventTypeWarning replaces EventTypeNormal when failed **What this PR does / why we need it**: it is similar to #44083 and #44378 **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 ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43000, 44500, 44457, 44553, 44267) Updates e2e_node test to allow both kubenet and cni to be specified f… …or the network plugin. This adds a simple CNI configuration which is added to the node during test setup. This also modifies the default flags in services/kubelet.go to specify the "cni-bin-dir" and the "cni-conf-dir" and removes the "network-plugin-dir" flag. This leaves the default network plugin to kubenet. **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 ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 43000, 44500, 44457, 44553, 44267) Add Kubernetes 1.6 support to Juju charms **What this PR does / why we need it**: This adds Kubernetes 1.6 support to Juju charms. This includes some large architectural changes in order to support multiple versions of Kubernetes with a single release of the charms. There are a few bug fixes in here as well, for issues that we discovered during testing. **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**: Thanks to @marcoceppi, @ktsakalozos, @jacekn, @mbruzek, @tvansteenburgh for their work in this feature branch as well! **Release note**: ```release-note Add Kubernetes 1.6 support to Juju charms Add metric collection to charms for autoscaling Update kubernetes-e2e charm to fail when test suite fails Update Juju charms to use snaps Add registry action to the kubernetes-worker charm Add support for kube-proxy cluster-cidr option to kubernetes-worker charm Fix kubernetes-master charm starting services before TLS certs are saved Fix kubernetes-worker charm failures in LXD Fix stop hook failure on kubernetes-worker charm Fix handling of juju kubernetes-worker.restart-needed state Fix nagios checks in charms ```
-
Paulo Pires authored
Signed-off-by:Paulo Pires <pjpires@gmail.com>
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue go-to-protobuf: actually skip - packages If a package is prefixed with -, we are not supposed to be generating protobuf for it. Make that actually happen :-) cc @smarterclayton @sttts @deads2k @liggitt @kubernetes/sig-api-machinery-pr-reviews
-
divyenpatel authored
-
ymqytw authored
-
Zihong Zheng authored
-
Andy Goldstein authored
If a package is prefixed with -, we are not supposed to be generating protobuf for it. Make that actually happen :-)
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Allow configurable etcd options **What this PR does / why we need it**: Allows users to set the `--listen-client-urls` and `--advertise-client-urls` flags on etcd binaries for clusters set up with kubeadm. **Which issue this PR fixes**: As far as I can tell right now, other nodes in a cluster set up with kubeadm cannot communicate with the etcd static pod running on the master. This is needed in order to set up calico/canal SDN which needs access to a publicly addressable IPv4 _before_ the overlay network and inter-cluster subnet is created. Addresses https://github.com/kubernetes/features/issues/138 and https://github.com/kubernetes/features/issues/11. **Release note**: ```release-note Users can now specify listen and advertise URLs for etcd in a kubeadm cluster ```
-
gmarek authored
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue Fixed `kubectl cluster-info dump` to support multi-container pod. Fixed `kubectl cluster-info dump` to support multi-container pod. **Release note**: ``` Improve `kubectl cluster-info dump` to support multi-container pod information dump. ``` Fixed #44069
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue clean auditStringSlice in audit
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue (batch tested with PRs 41849, 42033) fix TODO: find and add active pods for dswp loops through the list of active pods and ensures that each one exists in the desired state of the world cache **Release note**: ```release-note NONE ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue [Federation] Print out status updates while `kubefed init` is running This is not an ideal final state–it does not address the appearance of hanging during long-running commands, for example–but it provides some level of information when the operations are successful. See #41725. **Release note**: ```release-note Prints out status updates when running `kubefed init` ```
-
Kubernetes Submit Queue authored
Automatic merge from submit-queue use healthz api in WaitForAPI finish TODO
-