Uploaded image for project: 'Logging analytics'
  1. Logging analytics
  2. LOG-343

Provide a Dev mode single ONAP namespace with direct port exposure 8989-8989 not 8989-30211 for example

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • None

      https://wiki.onap.org/display/DW/ONAP+on+Kubernetes?focusedCommentId=22250653#comment-22250653

       

      Good question, I guess we live with port mapping requiring the vnc-portal so we can run multiple environments on the same host each with 30xxx, 31xxx etc.. but in reality most of us by default run one set of ONAP containers.  Myself when I work in postman I use the 30xxx ports except for using the SDC gui - in the vnc-portal. 

      I think we need a JIRA to run ONAP in affective single port mapping config where 8989 for example maps to 8989 outside the namespace and not 30211 - for ease of development.

       

      Andrew Fenner

      Hi,

      I'm new to Kubernates and to OOM but so the following question could have a obvious answer that I've completely missed.

      Is there a reason not to use the following commands to expose the K8s containers so that you don't have to log on via the VNC sever which is just a pain.

      kubectl expose services portalapps --type=LoadBalancer --port 8989 --target-port=8080 --name=frontend -n onap-portal
      kubectl expose services sdc-fe --type=LoadBalancer --port 8181 --target-port=8181 --name=frontend -n onap-sdc
      kubectl expose services vid-server --type=LoadBalancer --port 8080 --target-port=8080 --name=frontend -n onap-vid

      This exposed the portal, Vid and SDC so then the K8S services could be used directly. Then the ip address to use can just be found using 

      kubectl get services -all-namespaces=true | grep -i frontend or you can assign the IP address using -external-ip=w.x.y.z

      Then I just updated the hosts file as "normal"

      Thanks

      /Andrew

       

            michaelobrien michaelobrien
            michaelobrien michaelobrien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: