Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot assign service ip address manually #37829

Closed
danrjohnson opened this issue Dec 1, 2016 · 5 comments
Closed

Cannot assign service ip address manually #37829

danrjohnson opened this issue Dec 1, 2016 · 5 comments
Assignees
Labels
sig/network Categorizes an issue or PR as relevant to SIG Network.

Comments

@danrjohnson
Copy link

danrjohnson commented Dec 1, 2016

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:16:57Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.0", GitCommit:"a16c0a7f71a6f93c7e0f222d961f4675cd97a46b", GitTreeState:"clean", BuildDate:"2016-09-26T18:10:32Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}

Environment:

  • Cloud provider or hardware configuration: Vagrant
  • OS (e.g. from /etc/os-release): ubuntu-14.04
  • Kernel (e.g. uname -a): Linux dev-master01 3.13.0-85-generic Secure intra-cluster communication with TLS #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools: Manual
  • Others:

What happened:

I have --service-cluster-ip-range=198.168.100.0/24
When I attempt to create a service with a predefined clusterIP, I get the following:

The Service "kube-dns" is invalid: spec.clusterIP: Invalid value: "192.168.100.13": provided IP is not in the valid range

If I remove the clusterIP from the service definition, it creates a service inside the valid range...

kube-dns   198.168.100.186   <none>        53/UDP,53/TCP   6s

What you expected to happen:
It would consider an address from inside that range to be valid

@danrjohnson
Copy link
Author

It looks like this might be a problem with the network size. A /16 address works fine

@k8s-github-robot k8s-github-robot added the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label May 31, 2017
@xiangpengzhao
Copy link
Contributor

are you still facing this? 192.168.100.13 is a valid IP in 198.168.100.0/24. It's odd that the validation failed.I will try to reproduce this and dig into it.
/sig network

@k8s-ci-robot k8s-ci-robot added the sig/network Categorizes an issue or PR as relevant to SIG Network. label Jun 17, 2017
@k8s-github-robot k8s-github-robot removed the needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. label Jun 17, 2017
@xiangpengzhao
Copy link
Contributor

I can't reproduce this on v1.5.1. We are going to close this. Feel free to reopen if you still face this on the latest version.

/cc @thockin

@cmluciano
Copy link

/assign

@cmluciano
Copy link

/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/network Categorizes an issue or PR as relevant to SIG Network.
Projects
None yet
Development

No branches or pull requests

5 participants