How to set kiali-ui/package.json 'proxy' attribute when "yarn start" in kiali-ui?

7/5/2019

When I entered kubectl get pods -A -o wide, I got this.

NAMESPACE   NAME             READY STATUS  .. IP            NODE
kube-system kube-proxy-h1234 1/1   Running .. 203.253.11.11 slave-node2

So I edited /kiali/kiali-ui/config.yaml

{
  "name": "@kiali/kiali-ui",
  "version": "1.2.0",
  "proxy": "http://203.253.11.11",
  "description": "React UI for [Kiali](https://github.com/kiali/kiali).",
  "keywords": [
    "istio service mesh",
    "kiali",
    "monitoring",
    "observability",
    "okd",
    "openshift"
  ],
  ...
}

And I enter curl -u admin:admin http://localhost:3000/api. But I got error.

Proxy error: Could not proxy request /api/auth/info from localhost:3000 to http://203.253.11.11`

I think, we should put the IP address of kube-proxy in front of node(kiali service is up on this node) in the proxy setting. But it doesn't work.

What address should I put in proxy setting?

I refer to this document -> a link

-- Yong
istio
kiali
kubernetes
proxy

0 Answers