Layer7 API Management

 View Only
  • 1.  Kubernetes helm chart tries to connect to port 8080

    Broadcom Employee
    Posted May 08, 2023 04:39 PM

    I am new to Kubernetes.
    I am running Kubernetes microk8s under Ubuntu
    I have a deployment for mysql 8.0 running.

    When I iusse the command to install the helm chart - helm install my-ssg layer7/gateway --set-file "license.value=license.xml" --set "license.accept=true"

    I get the following error:
    Error: INSTALLATION FAILED: Kubernetes cluster unreachable: Get "http://localhost:8080/version": dial tcp 127.0.0.1:8080: connect: connection refused

    Any ideas where I should look?

    netstat shows no listener on port 8080. However, it says it is listening on https port 16443.




    ------------------------------
    Phil Mead
    ------------------------------


  • 2.  RE: Kubernetes helm chart tries to connect to port 8080

    Broadcom Employee
    Posted May 08, 2023 08:27 PM
    Hey Phil,
    It looks like you're missing your kubeconfig file. Kubectl and Helm use the same configuration file by default.
    Microk8s comes packaged with its own kubectl - there's also a helm3 add-on that you can enable (I would recommend adding metallb).
    $ microk8s kubectl get pods
    $ microk8s config ==> shows the kubeconfig file
    Once you've confirmed everything is working as expected you can copy the config over to your local kube config directory. This link goes through the configuration in more detail.
    Let me know if that works or if you have any more questions.



  • 3.  RE: Kubernetes helm chart tries to connect to port 8080

    Broadcom Employee
    Posted May 12, 2023 10:22 AM
    Thank you. That fixed my problem.

    I did the following:
    # cd $HOME
    # mkdir .kube (if necessary)
    # cd .kube
    # microk8s config > config

    Phil Mead

    Client Services Consultant | Services Resident

    Open Group Master Certified IT Architect