--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
The v1 watch API has been stable since Kubernetes 1.0 so I'm a bit confused why the server is returning 400 Bad Request. Error messages in Kubernetes 1.0 weren't very good (they've improved since then) so it's a bit hard to diagnose. But I would expect this combination to work. If you enable request tracing by setting the log level to TRACE you should see the full trace of all request/responses & see if there's any more details in there.
On Thu, 19 May 2016 at 15:39 Henry Saputra <henry....@gmail.com> wrote:
Unfortunately, that was not the case.Using the latest version of client against k8s 1.0 I got this error log :2016-05-18 18:12:01 thread:[OkHttp http://localhost:8080/api/v1/namespaces/owner-bigminion-1463620318763-1544803905/services?fieldSelector=metadata.name%3Dspark-master&resourceVersion=167&watch=true] ERROR i.f.k.c.d.i.WatchConnectionManager$1 - Exec Failure: HTTP:400. Message:Bad Requestjava.net.ProtocolException: Expected HTTP 101 response but was '400 Bad Request'at com.squareup.okhttp.ws.WebSocketCall.createWebSocket(WebSocketCall.java:123)at com.squareup.okhttp.ws.WebSocketCall.access$000(WebSocketCall.java:40) com.squareup.okhttp.ws.WebSocketCall$1.onResponse(WebSocketCall.java:98)But no exception thrown, which means kubernetes client somehow eat the exception.- Henry
the latest kubernetes-client should work OK with k8s 1.0 or later as the schema is all v1 and the core stuff (Services / ReplicationControllers / Pods) haven't changed since then. Its just be some resource types are not supported on earlier k8s versions. e.g. ConfigMaps are only available on 1.2
On 18 May 2016 at 23:14, Henry Saputra <henry....@gmail.com> wrote:
Hi,I am trying to update my client so I would like to know what is latest version that work with K8S version 1.1 of the API server?I am not sure the backward compatible story of K8S 1.1 to 1.2 ?Thanks,Henry
--
You received this message because you are subscribed to the Google Groups "fabric8" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fabric8+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--