Closed yu2003w closed 6 years ago
Could you try to use port number 26379 not 3679? ~/redis/redis-3.2.9/src$ ./redis-cli -p 26379 -h 10.1.236.92
The same issue for both 6379 and 26379. In my installation, flannel is used. When I switched to openswitch, the issue was resolved and externalIPs/nodePort worked well.
The cluster is setup on VMs provisioned by openstack. Could flannel be used in such environment?
Thx.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen
.
Mark the issue as fresh by commenting /remove-lifecycle rotten
.
Exclude this issue from closing again by commenting /lifecycle frozen
.
/close
I setup openshift cluster and deployed Redis successfully and expose redis service to external clients using externalIPs. When I connected exposed redis service outside of cluster, I got error as "connection refused".
Version
oc v1.5.1+7b451fc kubernetes v1.5.2+43a9be4 features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://host-10-1-241-54:8443 openshift v1.5.1+7b451fc kubernetes v1.5.2+43a9be4
Steps To Reproduce
deploy service with externalIPs
kind: Service apiVersion: v1 metadata: name: redis-svc spec: selector: sb-2017-redis-master: master ports:
Current Result
Redis pod is running and could be accessed from other pods within cluster. On host nodes, expected ports are listened. [root@host-10-1-236-92 gluster]# netstat -an | grep 6379 tcp 0 0 10.1.236.92:6379 0.0.0.0: LISTEN
tcp 0 0 10.1.236.92:26379 0.0.0.0: LISTEN
Svc is exposed successfully on host nodes. [root@host-10-1-236-92 gluster]# oc describe svc redis-svc Name: redis-svc Namespace: redis Labels:
Selector: sb-2017-redis-master=master
Type: ClusterIP
IP: 172.30.38.194
External IPs: 10.1.236.92,10.1.236.93
Port: redis-sen 26379/TCP
Endpoints: 172.30.53.2:26379
Port: redis-master 6379/TCP
Endpoints: 172.30.53.2:6379
Session Affinity: None
No events.
However, I failed to access redis service via redis client outside of cluster. jared@jared-ThinkPad-E550:~/redis/redis-3.2.9/src$ ./redis-cli -p 6379 -h 10.1.236.92 Could not connect to Redis at 10.1.236.92:6379: Connection refused Could not connect to Redis at 10.1.236.92:6379: Connection refused not connected>
Expected Result
Redis service could be accessed from outside.
Thanks for helping resolving this issue.