0

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
  • 2,819
  • 10
  • 45
  • 94
  • 1
    Have you configured metallb configmap like mentioned [here](https://metallb.universe.tf/configuration/)? Have you tried to get into dashboard with kubectl proxy like mentioned [here](https://github.com/kubernetes/dashboard#getting-started)? – Jakub Apr 28 '20 at 11:20
  • @jt97 yes, metallb `Layer 2 configuration` was used and `kubectl proxy` was running when try to `curl`.I have updated the question, traffic goes through a firewall. Will that be a problem? – Sachith Muhandiram Apr 28 '20 at 11:49
  • 1
    What is your instastructure? It's some vm with ubuntu?If metalLB configuration is correct then I think that firewall/proxy might be the problem here. Additionaly about dashboard check this [link](https://stackoverflow.com/questions/58333637/other-pc-cant-visit-k8s-dashboard). – Jakub Apr 28 '20 at 12:17
  • @jt97 Ubuntu running on VM. – Sachith Muhandiram Apr 28 '20 at 12:27
  • 1
    Well if you are a newby then i would recommend to go these 14 simple steps - http://jhooq.com/14-steps-to-install-kubernetes-on-ubuntu-18-04-and-16-04/ I also struggled initially but later after i prepared these guide to ease out the installation process – Rahul Wagh Apr 30 '20 at 08:05
  • @RahulWagh Thanks for the guide. This is not an issue with installation, all things are up and running. Problem with network expose to the network. CNI is working. – Sachith Muhandiram Apr 30 '20 at 09:10

1 Answers1

1

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
  • 2,819
  • 10
  • 45
  • 94