expose service on public IP address does't work

37 views
Skip to first unread message

cmti CA

unread,
Feb 28, 2017, 5:46:30 PM2/28/17
to Kubernetes developer/contributor discussion
Hi,

I'm running minikube on one Centos server, and create kubernetes cluster for running Seldon-server. 

# kubectl get all

NAME                                READY     STATUS    RESTARTS   AGE

po/influxdb-grafana-cshh3           2/2       Running   0          2h

po/kafka-controller-31l74           1/1       Running   1          2h

po/kafka-stream-impressions         1/1       Running   0          2h

po/kafka-stream-predictions         1/1       Running   0          2h

po/memcached1-fqgpt                 1/1       Running   0          2h

po/memcached2-wgq42                 1/1       Running   0          2h

po/mysql                            1/1       Running   0          2h

po/seldon-control                   1/1       Running   0          2h

po/seldon-server-2669694256-tf60n   2/2       Running   0          2h

po/spark-master-controller-wf4rr    1/1       Running   0          2h

po/spark-worker-controller-27t49    1/1       Running   0          2h

po/spark-worker-controller-jc4ts    1/1       Running   0          2h

po/td-agent-server                  1/1       Running   0          2h

po/zookeeper-1                      1/1       Running   0          2h

po/zookeeper-2                      1/1       Running   0          2h

po/zookeeper-3                      1/1       Running   0          2h


NAME                         DESIRED   CURRENT   READY     AGE

rc/influxdb-grafana          1         1         1         2h

rc/kafka-controller          1         1         1         2h

rc/memcached1                1         1         1         2h

rc/memcached2                1         1         1         2h

rc/spark-master-controller   1         1         1         2h

rc/spark-worker-controller   2         2         2         2h


NAME                      CLUSTER-IP   EXTERNAL-IP    PORT(S)                         AGE

svc/kafka-service         10.0.0.219   <nodes>        9092:30010/TCP                  2h

svc/kubernetes            10.0.0.1     <none>         443/TCP                         1d

svc/memcached1            10.0.0.119   <none>         11211/TCP                       2h

svc/memcached2            10.0.0.217   <none>         11211/TCP                       2h

svc/monitoring-grafana    10.0.0.122   <pending>      80:30002/TCP                    2h

svc/monitoring-influxdb   10.0.0.18    <pending>      8083:30003/TCP,8086:30004/TCP   2h

svc/mysql                 10.0.0.35    <none>         3306/TCP                        2h

svc/seldon-api            10.0.0.242   10.32.42.214   8080:32082/TCP,5000:31637/TCP   1h

svc/seldon-server         10.0.0.20    10.32.42.214   80:30015/TCP,5000:30017/TCP     2h

svc/spark-master          10.0.0.5     <none>         7077/TCP                        2h

svc/spark-webui           10.0.0.46    <none>         8080/TCP                        2h

svc/td-agent-server       10.0.0.43    <none>         24224/TCP,24224/UDP             2h

svc/zookeeper-1           10.0.0.203   <none>         2181/TCP,2888/TCP,3888/TCP      2h

svc/zookeeper-2           10.0.0.215   <none>         2181/TCP,2888/TCP,3888/TCP      2h

svc/zookeeper-3           10.0.0.121   <none>         2181/TCP,2888/TCP,3888/TCP      2h


NAME                   DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE

deploy/seldon-server   1         1         1            1           2h


NAME                          DESIRED   CURRENT   READY     AGE

rs/seldon-server-2669694256   1         1         1         2h


I tried to expose the seldon-server service to the static public IP address (10.32.42.214 as shown above) by exposing on nodePort but it doesn't seem to work. Seems like it pertains to the 172.17.0.15 IP instead:


# kubectl describe service seldon-server

Name: seldon-server

Namespace: default

Labels: name=seldon-server

service=seldon

Selector: name=seldon-server

Type: NodePort

IP: 10.0.0.20

External IPs: 10.32.42.214

Port: api 80/TCP

NodePort: api 30015/TCP

Endpoints: 172.17.0.15:8080

Port: rpc 5000/TCP

NodePort: rpc 30017/TCP

Endpoints: 172.17.0.15:5000

Session Affinity: None

No events.


# kubectl get -o template po seldon-server-2669694256-tf60n --template={{.status.podIP}}

172.17.0.15


Can anyone help on this? It would be greatly appreciated!


Thanks,


James

Rodrigo Campos

unread,
Feb 28, 2017, 8:19:07 PM2/28/17
to cmti CA, kubernet...@googlegroups.com
Moving to kubernetes-users, kubernetes-dev on Bcc:.
> --
> You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
> To post to this group, send email to kuberne...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/78e5351c-814d-43aa-b210-ab3cd3e5886b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages