Hi Jared,

Did you previously configure the cluster for externalip usage?

https://docs.openshift.org/latest/admin_guide/tcp_ingress_external_ports.html

---

ERIK JACOBS

PRINCIPAL TECHNICAL MARKETING MANAGER, OPENSHIFT

Red Hat Inc <https://www.redhat.com/>

ejac...@redhat.com    M: 646.462.3745     @: erikonopen
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>

On Thu, Aug 10, 2017 at 4:12 AM, Yu Wei <yu20...@hotmail.com> wrote:

> Hi guys,
>
> I deployed redis with replication controller successfully on openshift
> origin cluster.
>
> Then I tried to create service for external clients to connect.
>
> However, it seemed that it didn't work.
>
> How could I debug similar problem? Is there any guidance about using
> externalIP in openshift?
>
>
> The detailed information is as below,
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[root@host-10-1-236-92 gluster]# oc get svc NAME
> CLUSTER-IP     EXTERNAL-IP                           PORT(S)
> AGE glusterfs-cluster   172.30.6.143
> <none>                                1/TCP                1d
> redis-svc           172.30.51.20   10.1.236.92,10.1.236.93,10.1.241.55
> 26379/TCP,6379/TCP   24m [root@host-10-1-236-92 gluster]# oc describe svc
> redis-svc Name:            redis-svc Namespace:
>  openshiift-servicebroker Labels:            <none> Selector:
>  sb-2017-redis-master=master Type:            ClusterIP IP:
>  172.30.51.20 Port:            redis-sen    26379/TCP Endpoints:
>  172.30.41.5:26379 <http://172.30.41.5:26379> Port:
>  redis-master    6379/TCP Endpoints:        172.30.41.5:6379
> <http://172.30.41.5:6379> Session Affinity:    None No events.*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[root@host-10-1-236-92 gluster]# cat redis-master-svc.yaml --- kind:
> Service apiVersion: v1 metadata:   name: redis-svc spec:     selector:
>       sb-2017-redis-master: master     ports:       - name: redis-sen
>         protocol: TCP         port: 26379         targetPort: 26379       -
> name: redis-master         protocol: TCP         port: 6379
> targetPort: 6379     externalIPs:       -  10.1.236.92       -  10.1.236.93
>       -  10.1.241.55*
>
>
> Thanks,
>
> Jared, (韦煜)
> Software developer
> Interested in open source software, big data, Linux
>
> _______________________________________________
> dev mailing list
> dev@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>
>
_______________________________________________
dev mailing list
dev@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev

Reply via email to