{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4940","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4940/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4940/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4940/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/4940","id":59485407,"number":4940,"title":"REST api - POST service fails in v1beta3 with \"method not allowed\"","user":{"login":"abonas","id":6277245,"avatar_url":"https://avatars.githubusercontent.com/u/6277245?v=3","gravatar_id":"","url":"https://api.github.com/users/abonas","html_url":"https://github.com/abonas","followers_url":"https://api.github.com/users/abonas/followers","following_url":"https://api.github.com/users/abonas/following{/other_user}","gists_url":"https://api.github.com/users/abonas/gists{/gist_id}","starred_url":"https://api.github.com/users/abonas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abonas/subscriptions","organizations_url":"https://api.github.com/users/abonas/orgs","repos_url":"https://api.github.com/users/abonas/repos","events_url":"https://api.github.com/users/abonas/events{/privacy}","received_events_url":"https://api.github.com/users/abonas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/support","name":"kind/support","color":"eb6420"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/support","name":"priority/support","color":"c7def8"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/UX","name":"team/UX","color":"d2b48c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-03-02T14:10:13Z","updated_at":"2015-03-10T21:49:35Z","closed_at":"2015-03-10T18:11:10Z","body":"In latest k8s built from source, \r\nsending a create (POST) request on /services fails with error \"method not allowed\":\r\n\r\nThe json used is from here:\r\nhttps://github.com/GoogleCloudPlatform/kubernetes/blob/master/examples/guestbook/v1beta3/redis-master-service.json\r\nUsing v1beta1 (with another json that fits that format) works OK.\r\n\r\nThe error in kube-apiserver.log:\r\nI0302 16:04:36.229378   23907 handlers.go:108] POST /api/v1beta3/services: (100.444us) 405\r\ngoroutine 436 [running]:\r\ngithub.com/GoogleCloudPlatform/kubernetes/pkg/httplog.(*respLogger).WriteHeader(0xc2086453e0, 0x195)\r\n        /home/abonas/kubernetes/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/httplog/log.go:182 +0x9c\r\ngithub.com/emicklei/go-restful.(*Response).WriteErrorString(0xc208474cd0, 0x195, 0xccd150, 0x17, 0x0, 0x0)\r\n        /home/abonas/kubernetes/kubernetes/Godeps/_workspace/src/github.com/emicklei/go-restful/response.go:192 +0x5f\r\ngithub.com/emicklei/go-restful.func·004(0xc20845df50, 0xc208474cd0)\r\n        /home/abonas/kubernetes/kubernetes/Godeps/_workspace/src/github.com/emicklei/go-restful/container.go:175 +0xda\r\ngithub.com/emicklei/go-restful.(*FilterChain).ProcessFilter(0xc20845def0, 0xc20845df50, 0xc208474cd0)\r\n        /home/abonas/kubernetes/kubernetes/Godeps/_workspace/src/github.com/emicklei/go-restful/filter.go:21 +0xa1\r\ngithub.com/emicklei/go-restful.(*Container).dispatch(0xc208148c40, 0x7f7e5e62b028, 0xc2086453e0, 0xc208375d40)\r\n        /home/abonas/kubernetes/kubernetes/Godeps/_workspace/src/github.com/emicklei/go-restful/container.go:179 +0x673\r\ngithub.com/emicklei/go-restful.*Container.(github.com/emicklei/go-restful.dispatch)·fm(0x7f7e5e62b028, 0xc2086453e0, 0xc208375d40)\r\n        /home/abonas/kubernetes/kubernetes/Godeps/_workspace/src/github.com/emicklei/go-restful/container.go:76 +0x44\r\nnet/http.HandlerFunc.ServeHTTP(0xc2082c89f0, 0x7f7e5e62b028, 0xc2086453e0, 0xc208375d40)\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1235 +0x40\r\nnet/http.(*ServeMux).ServeHTTP(0xc20814a8a0, 0x7f7e5e62b028, 0xc2086453e0, 0xc208375d40)\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1511 +0x1a3\r\ngithub.com/GoogleCloudPlatform/kubernetes/pkg/apiserver.func·009(0x7f7e5e62b028, 0xc2086453e0, 0xc208375d40)\r\n        /home/abonas/kubernetes/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/apiserver/handlers.go:147 +0x4c5\r\nnet/http.HandlerFunc.ServeHTTP(0xc20836f2c0, 0x7f7e5e62b028, 0xc2086453e0, 0xc208375d40)\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1235 +0x40\r\ngithub.com/GoogleCloudPlatform/kubernet\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/78156016","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/4940#issuecomment-78156016","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/4940","id":78156016,"user":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T21:49:35Z","updated_at":"2015-03-10T21:49:35Z","body":"Good catch. Default namespace must be specified explicitly."}}