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

Connections to databases, Redis and MQ are converted via NAT to Node’s IP? #10392

Closed
xuchuan-666 opened this issue Feb 7, 2021 · 3 comments
Labels
kind/support Categorizes issue or PR as a support question. l/zh-CN Issues in or relating to Chinese triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@xuchuan-666
Copy link

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:
Kubernetes version: 1.18.9
Installation method: kubeadm

I want to use service in pod to connect Externel Mysql but not use
in kubernetes i use calico i want to use service and endpoint to connect a externel mysql like this
apiVersion: v1
kind: Service
metadata:
name: mysql-test
spec:
clusterIP: None
ports:

port: 3306
apiVersion: v1
kind: Endpoints
metadata:
name: mysql-test
subsets:

addresses:
ip: 10.103.34.7
ports:
port: 3306
In hope that i can use clusterIp + port to connect Externel mysql in pod
Current Behavior
in cluster node or pod i can telnet clusterIp port this Service ,

telnet 10.103.34.7 3306
Trying 10.103.34.7…
Connected to 10.103.34.7.
Escape character is ‘^]’.
when I connect to the database, the authentication fails. But If I add the allowed nodeip node link to the database, the authentication is successful
Connections to databases, Redis and MQ are converted via NAT to Node’s IP?
Since POD’s node nodes are randomly scheduled, I don’t know how to add permission control to the database

@xuchuan-666 xuchuan-666 added the l/zh-CN Issues in or relating to Chinese label Feb 7, 2021
@RA489
Copy link

RA489 commented Feb 11, 2021

/kind support

@k8s-ci-robot k8s-ci-robot added the kind/support Categorizes issue or PR as a support question. label Feb 11, 2021
@prezha
Copy link
Contributor

prezha commented Mar 17, 2021

hey @xuchuan-666, thank you for opening the issue.

just to clarify, are you using minikube (eg, with 'none' driver), or just kubeadm?

thanks!

@prezha prezha added the triage/needs-information Indicates an issue needs more information in order to work on it. label Mar 17, 2021
@spowelljr
Copy link
Member

Hi @xuchuan-666, we haven't heard back from you, do you still have this issue?
There isn't enough information in this issue to make it actionable, and a long enough duration has passed, so this issue is likely difficult to replicate.

I will close this issue for now but feel free to reopen when you feel ready to provide more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. l/zh-CN Issues in or relating to Chinese triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

5 participants