我在GKE上運行Kong API網關並嘗試添加自己的服務。無法將內部API添加到GKE上運行的KONG API網關
我有3個莢
cassandra
kong
apiindex
和2級的服務(節點端口)
apiindex
(80/443/8080個端口是開放的)kong-proxy
(8000/8001/8443)
我試圖用apiindex
API添加到API網關
捲曲-i -X POST http://kong-proxy:8001/apis -d「名稱=測試」 -D '的URI = /' -d 'upstream_url = http://apiindex/'
但隨後http://kong-proxy:8000/
返回
503 { 「消息」: 「服務不可用」}
它工作正常,當我加入一些公共網站內 curl -i -X POST http://kong-proxy:8001/apis -d 'name=test' -d 'uris=/' -d 'upstream_url=http://httpbin.org/'
curl http://apiindex/
收益200 kong
吊艙。
是否可以在不暴露apiindex
服務的情況下使用kong添加API?