-
Notifications
You must be signed in to change notification settings - Fork 597
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
No private IP address found error #385
Comments
I confirm that explicitly instructing Serf to bind on |
Hi @thefosk that's not one of the address ranges that Serf considers private. You can see the list of supported blocks here: https://github.com/hashicorp/memberlist/blob/master/util.go#L25-L33 If it's not on that list then Serf will require you to specify an address explicitly to try to avoid exposing itself on a public interface. I did some digging and couldn't find anything pointing to 100.75 being part of a private range of addresses. If that doesn't seem right, please kick this back open and we can take a look. |
i have same problem 💃 |
Hi guys, I am having the same problem, trying to bind to 100.65.90.183 Thank you! |
@laura-herrera have you tried to manually set the |
Hi @thefosk , it seems that by having both of those properties kong wasn't starting correctly. |
@thefosk If I need to bind private ip, I need to set |
Please ask Kong related questions on https://github.com/Mashape/kong - you will need to explicitly set |
@thefosk Got it! Thanks for your help. |
The below YAML worked for me. My DNS RESOLVER Is :- 172.0.0.10 apiVersion: extensions/v1beta1 kind: Deployment
apiVersion: v1
port: 7946 targetPort: 7946 selector: |
According to kubernetes/kops#1458 and https://tools.ietf.org/html/rfc6598#section-7, the 100.64.0.0/10 range is a shared address range that is similar to the private address space (not globally routable). It seems to me serf can safely consider this range to be private as well. |
Regarding my last commit: This has been fixed in serf 0.8.0, the 100.64.0.0/10 range is now also private as far as serf is concerned |
…096 (#545) ## Description: Some services seem to follow RFC 6980; which requires certain flags to be passed to those services to allow non private ip addresses (as defined by the RFC). While working with the weaviate example I learned that docker has no pain composing ``` version: '3.4' services: weaviate: image: semitechnologies/weaviate:1.18.3 ports: - 8080:8080 restart: on-failure:0 environment: QUERY_DEFAULTS_LIMIT: 25 AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true' PERSISTENCE_DATA_PATH: '/var/lib/weaviate' DEFAULT_VECTORIZER_MODULE: 'none' CLUSTER_HOSTNAME: 'node1' ``` While with Kurtosis you can't run (even though the default inspect output says RUNNING if you run it again you can see the service STOPPED) ``` WEAVIATE_IMAGE="semitechnologies/weaviate:1.18.3" WEAVIATE_PORT = 8080 WEAVIATE_PORT_ID = "http" def run(plan, args): plan.add_service( name = "weaviate", config = ServiceConfig( image = WEAVIATE_IMAGE, ports = { WEAVIATE_PORT_ID: PortSpec(number = WEAVIATE_PORT, transport_protocol = "TCP") }, env_vars = { "QUERY_DEFAULTS_LIMIT": str(25), "AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED": 'true', "PERSISTENCE_DATA_PATH": '/var/lib/weaviate', "DEFAULT_VECTORIZER_MODULE": 'none', "CLUSTER_HOSTNAME": 'node1' }, ) ) ``` This is because WEAVIATE uses hashicorp/memberlist which uses serf underneath hashicorp/serf#385 (comment) underneath that disallows any non private ip addresses. Similar in Grafana grafana/grafana#62453 ## Is this change user facing? NO
Hello, I am one of the maintainers of Kong and we have a user reporting the following error. I thought you may have an idea of what's going on here.
Basically when Kong starts we also start a Serf agent, since Serf provides the backbone of our cluster management. The
ifconfig
of the machine is:And directly running
serf agent
on the machine returns the following output:Any tips on what may be the issue here? I would assume
100.75.34.83
would be a good pick for Serf, but maybe I am wrong.The text was updated successfully, but these errors were encountered: