{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/minikube/issues/1006","repository_url":"https://api.github.com/repos/kubernetes/minikube","labels_url":"https://api.github.com/repos/kubernetes/minikube/issues/1006/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/minikube/issues/1006/comments","events_url":"https://api.github.com/repos/kubernetes/minikube/issues/1006/events","html_url":"https://github.com/kubernetes/minikube/issues/1006","id":200764342,"number":1006,"title":"service type=NodePort doesn't work in non-standard port range (even with apiserver configuration)","user":{"login":"notmaxx","id":18590450,"avatar_url":"https://avatars.githubusercontent.com/u/18590450?v=3","gravatar_id":"","url":"https://api.github.com/users/notmaxx","html_url":"https://github.com/notmaxx","followers_url":"https://api.github.com/users/notmaxx/followers","following_url":"https://api.github.com/users/notmaxx/following{/other_user}","gists_url":"https://api.github.com/users/notmaxx/gists{/gist_id}","starred_url":"https://api.github.com/users/notmaxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notmaxx/subscriptions","organizations_url":"https://api.github.com/users/notmaxx/orgs","repos_url":"https://api.github.com/users/notmaxx/repos","events_url":"https://api.github.com/users/notmaxx/events{/privacy}","received_events_url":"https://api.github.com/users/notmaxx/received_events","type":"User","site_admin":false},"labels":[{"id":358920088,"url":"https://api.github.com/repos/kubernetes/minikube/labels/kind/bug","name":"kind/bug","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-14T00:26:46Z","updated_at":"2017-01-20T20:49:21Z","closed_at":null,"body":"BUG REPORT\r\n\r\n**Minikube version**: v0.15.0\r\n\r\n**Environment**:\r\n- **OS**: OS X El Captain, Version: 10.11.6 (15G1212)\r\n- **VM Driver**: xhyve\r\n- **Docker version**: 1.12.6, build 78d1802\r\n- **Install tools**: `curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.15.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/`\r\n- **Others**: \r\n\r\n\r\n**What happened**:\r\nIssue is similar to https://github.com/kubernetes/minikube/issues/836 but doesn't work for me\r\n\r\nI receive error when start service on ports other than 30000-32767: \r\n`The Service \"http-service\" is invalid: spec.ports[0].nodePort: Invalid value: 3000: provided port is not in the valid range. The range of valid ports is 30000-32767`\r\n\r\nEven with apiserver port range configured during `minikube start`\r\n```\r\nminikube start --extra-config=apiserver.GenericServerRunOptions.ServerRunOptions.ServiceNodePortRange=1000-10000\r\nStarting local Kubernetes cluster...\r\nKubectl is now configured to use the cluster.\r\n```\r\n\r\n**What you expected to happen**:\r\nI expect my \"http-service\" service would be created successfully & I can use my rails app running in pod in minikube on port 3000\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\n```\r\nminikube start --extra-config=apiserver.GenericServerRunOptions.ServerRunOptions.ServiceNodePortRange=1000-10000\r\nkubectl create -f web-service.json\r\n```\r\n\r\n**Anything else do we need to know**:\r\n\r\nHere is my web-service.json\r\n\r\n```\r\n{\r\n  \"kind\": \"Service\",\r\n  \"apiVersion\": \"v1\",\r\n  \"metadata\": {\r\n    \"name\": \"http-service\"\r\n  },\r\n  \"spec\": {\r\n    \"type\": \"NodePort\",\r\n    \"ports\": [\r\n      {\r\n        \"name\": \"http\",\r\n        \"protocol\": \"TCP\",\r\n        \"port\": 3000,\r\n        \"targetPort\": 3000,\r\n        \"nodePort\": 3000\r\n      },\r\n      {\r\n        \"name\": \"http-webpack\",\r\n        \"protocol\": \"TCP\",\r\n        \"port\": 3010,\r\n        \"targetPort\": 3010,\r\n        \"nodePort\": 3010\r\n      },\r\n      {\r\n        \"name\": \"test-nginx\",\r\n        \"protocol\": \"TCP\",\r\n        \"port\": 80,\r\n        \"targetPort\": 8080,\r\n        \"nodePort\": 8080\r\n      }\r\n    ],\r\n    \"selector\": {\r\n      \"name\": \"http-service\"\r\n    }\r\n  }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/minikube/issues/comments/274176335","html_url":"https://github.com/kubernetes/minikube/issues/1006#issuecomment-274176335","issue_url":"https://api.github.com/repos/kubernetes/minikube/issues/1006","id":274176335,"user":{"login":"r2d4","id":896032,"avatar_url":"https://avatars.githubusercontent.com/u/896032?v=3","gravatar_id":"","url":"https://api.github.com/users/r2d4","html_url":"https://github.com/r2d4","followers_url":"https://api.github.com/users/r2d4/followers","following_url":"https://api.github.com/users/r2d4/following{/other_user}","gists_url":"https://api.github.com/users/r2d4/gists{/gist_id}","starred_url":"https://api.github.com/users/r2d4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r2d4/subscriptions","organizations_url":"https://api.github.com/users/r2d4/orgs","repos_url":"https://api.github.com/users/r2d4/repos","events_url":"https://api.github.com/users/r2d4/events{/privacy}","received_events_url":"https://api.github.com/users/r2d4/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T20:49:21Z","updated_at":"2017-01-20T20:49:21Z","body":"Your issue is that you're not using the correct path for ServiceNodePortRange, it should be \r\n\r\n```\r\n$ minikube start --extra-config=apiserver.GenericServerRunOptions.ServiceNodePortRange=1000-10000\r\n$ minikube logs | grep ServiceNodePortRange\r\n \r\nJan 20 20:45:51 minikube localkube[12296]: I0120 20:45:51.238465   12296 localkube.go:117] Setting GenericServerRunOptions.ServiceNodePortRange to 1000-10000 on apiserver.\r\n```\r\n\r\ni.e. apiserver.GenericServerRunOptions<del>.ServerRunOptions</del>.ServiceNodePortRange=1000-10000"}}
{"actor":{"display_login":"r2d4"}}