[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to setup external IP




This is my master config

networkConfig:
  clusterNetworkCIDR: 10.128.0.0/14
  hostSubnetLength: 9
  networkPluginName: redhat/openshift-ovs-subnet
# serviceNetworkCIDR must match kubernetesMasterConfig.servicesSubnet
  serviceNetworkCIDR: 172.30.0.0/16
  externalIPNetworkCIDRs:
#  - 0.0.0.0/0
  - 10.75.18.0/24
  ingressIPNetworkCIDR: 10.75.18.0/24




On Saturday, March 11, 2017 11:01 AM, Ask Stack <askstack yahoo com> wrote:


The pods have this label.
###
oc describe pod openshift-jee-sample-5-b504r

Labels:    app=openshift-jee-sample
IP:            10.129.0.16
Port:        8080/TCP
###

I checked the IP address listed on the two compute nodes, I do not see 10.75.18.151, so there is no way to route to this IP.
Do I need to set "ExternalIPNetworkCIDRs" ?
Thanks.





On Friday, March 10, 2017 6:51 PM, Vignesh M.P.N. <vigneshb4u gmail com> wrote:


Do all your pods have the label "app=openshift-jee-sample" ?

Looks like your service already has 3 endpoints. What's running 10.129.0.15, 10.129.0.116 and 10.129.0.124?

Vignesh

On Fri, Mar 10, 2017 at 5:29 PM, Ask Stack <askstack yahoo com> wrote:
I have one master and two nodes, 10.75.18.140, 10.75.18.141 and 10.75.18.142.
I want setup a jboss container can be accessible at 10.75.18.151:8080.
I followed https://docs.openshift.com/ container-platform/3.4/admin_ guide/tcp_ingress_external_ ports.html

I think I have the service setup correctly but I don't understand how to make the two nodes aware they need to listen on 10.75.18.151:8080

Thanks in advance.


[root ansibleqc1 tmp]# cat /tmp/loadbalancer.yaml

apiVersion: v1
kind: Service
metadata:
  name: egress-1
spec:
  ports:
  - name: wildfly
    port: 8080
  loadBalancerIP: 10.75.18.151
  type: LoadBalancer
  selector:
    app: openshift-jee-sample




[root ansibleqc1 tmp]# oc describe svc egress-1
Name:            egress-1
Namespace:        jbossdemo1
Labels:            <none>
Selector:        app=openshift-jee-sample
Type:            LoadBalancer
IP:            172.30.201.205
LoadBalancer Ingress:    10.75.18.151
Port:            wildfly    8080/TCP
NodePort:        wildfly    31664/TCP
Endpoints:        10.129.0.15:8080,10.129.0.16: 8080,10.130.0.24:8080
Session Affinity:    None
No events.




______________________________ _________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat. com/openshiftmm/listinfo/users



_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]