Search code examples
kuberneteskubernetes-helm

Expose Eureka Server port to outside in Helm chart


I'm implementing a Helm chart which deploys a simple Eureka server with one work node and one control plane:

https://github.com/rcbandit111/mockup/tree/master/helm_chart/mockup-chart

I deploy this helm chart on native kubernetes installation. How I can expose port 8761 to be visible to outside network so that I can open it in my browser by running http://....:8761?


Solution

  • It depends on the provider that you have, if it support service type Load Balancers you should change your values.yaml to

    service:
      type: LoadBalancer
      port: 8761
    

    Then your Eureka Server should be available at http://....:8761


    Based on what you have in service.yaml and values.yaml your Eureka Server should be available at http://....:30066 as you are using NodePort