{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10299","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10299/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10299/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/10299/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/10299","id":90757392,"number":10299,"title":"log spam? GET /api/v1/namespaces/ns-mything/pods/mything: (1.662407ms) 404","user":{"login":"DreadPirateShawn","id":1418951,"avatar_url":"https://avatars.githubusercontent.com/u/1418951?v=3","gravatar_id":"","url":"https://api.github.com/users/DreadPirateShawn","html_url":"https://github.com/DreadPirateShawn","followers_url":"https://api.github.com/users/DreadPirateShawn/followers","following_url":"https://api.github.com/users/DreadPirateShawn/following{/other_user}","gists_url":"https://api.github.com/users/DreadPirateShawn/gists{/gist_id}","starred_url":"https://api.github.com/users/DreadPirateShawn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DreadPirateShawn/subscriptions","organizations_url":"https://api.github.com/users/DreadPirateShawn/orgs","repos_url":"https://api.github.com/users/DreadPirateShawn/repos","events_url":"https://api.github.com/users/DreadPirateShawn/events{/privacy}","received_events_url":"https://api.github.com/users/DreadPirateShawn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T18:47:42Z","updated_at":"2015-06-24T18:47:42Z","closed_at":null,"body":"In kube-apiserver.INFO, I see a failed API call being attempted roughly every second:\r\n\r\n```\r\nkube-apiserver.INFO:I0624 15:26:22.970228    3508 handlers.go:135] GET /api/v1/namespaces/ns-mything/pods/mything: (1.662407ms) 404 [[kubectl/v0.19.3 (linux/amd64) kubernetes/3103c8c] 10.0.0.2:45055]\r\nkube-apiserver.INFO:I0624 15:26:24.262562    3508 handlers.go:135] GET /api/v1/namespaces/ns-mything/pods/mything: (1.80702ms) 404 [[kubectl/v0.19.3 (linux/amd64) kubernetes/3103c8c] 10.0.0.2:45057]\r\nkube-apiserver.INFO:I0624 15:26:25.558359    3508 handlers.go:135] GET /api/v1/namespaces/ns-mything/pods/mything: (1.764591ms) 404 [[kubectl/v0.19.3 (linux/amd64) kubernetes/3103c8c] 10.0.0.2:45064]\r\nkube-apiserver.INFO:I0624 15:26:25.566240    3508 handlers.go:135] GET /api/v1/namespaces/ns-mything/pods/mything-1jq7j: (2.054047ms) 200 [[kubectl/v0.19.3 (linux/amd64) kubernetes/3103c8c] 10.0.0.2:45064]\r\nkube-apiserver.INFO:I0624 15:26:26.855882    3508 handlers.go:135] GET /api/v1/namespaces/ns-mything/pods/mything: (2.237989ms) 404 [[kubectl/v0.19.3 (linux/amd64) kubernetes/3103c8c] 10.0.0.2:45066]\r\nkube-apiserver.INFO:I0624 15:26:28.151144    3508 handlers.go:135] GET /api/v1/namespaces/ns-mything/pods/mything: (1.868889ms) 404 [[kubectl/v0.19.3 (linux/amd64) kubernetes/3103c8c] 10.0.0.2:45068]\r\nkube-apiserver.INFO:I0624 15:26:29.445528    3508 handlers.go:135] GET /api/v1/namespaces/ns-mything/pods/mything: (1.792321ms) 404 [[kubectl/v0.19.3 (linux/amd64) kubernetes/3103c8c] 10.0.0.2:45070]\r\n```\r\n\r\nNote that legit endpoints, eg \"/api/v1/namespaces/ns-mything/pods/mything-1jq7j\", are also in the mix, and those are successful. Also note that many other endpoints are being checked, all successfully -- the specific endpoint is the only one returning a 404.\r\n\r\nThat invalid endpoint indeed returns 404:\r\n\r\n```\r\n$ curl -v http://10.0.0.2:8080/api/v1/namespaces/ns-mything/pods/mything\r\n> GET /api/v1/namespaces/ns-mything/pods/mything HTTP/1.1\r\n> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3\r\n> Host: 10.0.0.2:8080\r\n> Accept: */*\r\n> \r\n< HTTP/1.1 404 Not Found\r\n< Content-Type: application/json\r\n< Date: Wed, 24 Jun 2015 15:47:21 GMT\r\n< Content-Length: 233\r\n< \r\n{\r\n  \"kind\": \"Status\",\r\n  \"apiVersion\": \"v1\",\r\n  \"metadata\": {},\r\n  \"status\": \"Failure\",\r\n  \"message\": \"pods \\\"mything\\\" not found\",\r\n  \"reason\": \"NotFound\",\r\n  \"details\": {\r\n    \"name\": \"mything\",\r\n    \"kind\": \"pods\"\r\n  },\r\n  \"code\": 404\r\n}\r\n```\r\n\r\nThe problem is that \"mything\" is not a pod -- rather, \"mything-1jq7j\" and \"mything-rdd7e\" are pods, \"mything\" is just the common base name.\r\n\r\n```\r\n$ kubectl --server=10.0.0.2:8080 --namespace=ns-mything get pods\r\nNAME            READY     REASON    RESTARTS   AGE\r\nmything-1jq7j   1/1       Running   0          17h\r\nmything-rdd7e   1/1       Running   0          17h\r\n\r\nkubectl --server=10.0.0.2:8080 --namespace=ns-mything get rc\r\nCONTROLLER  CONTAINER(S)   IMAGE(S)                                                                SELECTOR       REPLICAS\r\nmything     mything        dev.foo.com:5000/foo/mything:314159a10cee8edd3059d0fce4036c72c2527392   name=mything   2\r\n```\r\n\r\nMy rc/pod config:\r\n\r\n```\r\n{\r\n  \"apiVersion\": \"v1\",\r\n  \"kind\": \"ReplicationController\",\r\n  \"metadata\": {\r\n    \"name\": \"mything\",\r\n    \"namespace\": \"ns-mything\",\r\n    \"labels\": {\r\n      \"name\": \"mything\"\r\n    }\r\n  },\r\n  \"spec\": {\r\n    \"replicas\": 2,\r\n    \"selector\": {\r\n      \"name\": \"mything\"\r\n    },\r\n    \"template\": {\r\n      \"metadata\": {\r\n        \"labels\": {\r\n          \"name\": \"mything\"\r\n        }\r\n      },\r\n      \"spec\": {\r\n        \"containers\": [{\r\n          \"name\": \"mything\",\r\n          \"image\": \"dev.foo.com:5000/foo/mything:314159a10cee8edd3059d0fce4036c72c2527392\",\r\n          \"ports\": [],\r\n          \"env\": [\r\n            {\"name\": \"FOO\", \"value\": \"bar\"}\r\n          ]\r\n        }]\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nIs this a wayward API call / bug in kubernetes, or an indication that I've missed something in my setup?"}}