fabric8io / gofabric8

CLI used when working with fabric8 running on Kubernetes or OpenShift
https://fabric8.io/
Apache License 2.0
147 stars 72 forks source link

Fabric 8 service expose as NodePort #554

Open chaitu6 opened 7 years ago

chaitu6 commented 7 years ago

Hi,

I have installed fabric 8 on RHEL VM. After installation services are exposed, but not as NodePort type of Kubernetes. Internal Ip was alloted to Fabric 8 service.

I would like to access this fabric8 service from outside world. How do I achieve this.

jstrachan commented 7 years ago

are you using kubernetes or openshift? You can edit the ConfigMap for theexposecontroller to specify what expose strategy you want; NodePort or Ingress for kubernetes; Route is the default for OpenShift.

more details: https://github.com/fabric8io/exposecontroller/blob/master/README.md

chaitu6 commented 7 years ago

@jstrachan Thank you for the help

I am using openshift on rhel 7 . My exposecontroller pod is in crashloopbackoff state.

logs of that pod shows

I0822 04:11:43.094359 1 exposecontroller.go:47] Using build: '2.3.2' F0822 04:11:43.303253 1 exposecontroller.go:66] failed to create new strategy: failed to create ingress expose strategy: failed to get a domain: no known automatic ways to get an external ip to use with nip. Please configure exposecontroller configmap manually see https://github.com/fabric8io/exposecontroller#configuration

I am checking how to configure exposecontroller configmap manually