How to expose services running in Kubernetes

4/28/2020

I have installed Charmed-Kubernetes on Ubuntu. and then istio and its bookinfo application.

kubectl exec -it $(kubectl get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}') -c ratings -- curl productpage:9080/productpage | grep -o "<title>.*</title>"

This returns, Simple Bookstore App

kubectl get gateway -> bookinfo-gateway 32s

kubectl get svc istio-ingressgateway -n istio-system

Shows external IP address, but when I try to access with curl it gives me nothing.

I also tried to access to kubernetes-dashboard as described here, it also failed.

Basically, how can I access to these UI s from another PC? I have installed MetalLB, but still no luck.

Refered : No endpoint with dashboard

Kube-dashboard serviceunavailable

Cant access K8 Dashboard

Traffic goes through a network proxy, could it be a problem?

I am newby for Kubernetes.

-- Sachith Muhandiram
charmed-kubernetes
dashboard
istio
kubernetes
metallb

1 Answer

5/4/2020

This was an issue with Charmed-Kubernetes. We need to install all services as juju and then deploy also with juju.

Here nginx sample is really running in the system, but MetalLB can not access to it as juju configuration hides it.

-- Sachith Muhandiram
Source: StackOverflow