Hello.
I can’t connect to my DB in kind k8s.
Nodeport is configured in sdb-cluster.yaml:
…
serviceSpec:
type: “NodePort”
nodeport: 32001
targetport: 3306
…
Trying to add cluster to Studio with localhost:32001 and get:
We are unable to connect to your cluster. Please verify that your cluster is online and accessible and try again.
Kind.yaml is this:
kind.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:- containerPort: 32001
hostPort: 32001
extraMounts:- hostPath: /tmp
containerPath: /host
- hostPath: /tmp
- containerPort: 32001
mysql cli does not connect either:
mysql --user=admin --host=127.0.0.1 --port=32001 --password=“*9177CC8207174BDBB5ED66B2140C75171283F15D”
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading initial communication packet’, system error: 2
Thanks in advance and and sorry for the beginner’s questions… I’m really stuck with this.