您知道为什么我遇到以下错误吗?
我试图port-forward 8080 and also 8084
。
spin application save --application-name sample \
--owner-email example@example.com \
--cloud-providers kubernetes \
--gate-endpoint http://localhost:8084/gate
Could not dial http client, please ensure Gate is running. Failing.
dial tcp: lookup tcp/8084/gate: nodename nor servname provided, or not known
所有Pod正在运行:
cd-install-using-hal-r4ssx 0/1 Completed 0 22h
cd-redis-master-0 1/1 Running 0 22h
cd-spinnaker-halyard-0 1/1 Running 0 22h
spin-clouddriver-77bf675c75-h847f 1/1 Running 0 22h
spin-deck-67d875cd75-6ptdp 1/1 Running 0 22h
spin-echo-8c9cb6d9d-nhf49 1/1 Running 0 22h
spin-front50-549749dcd4-d82pg 1/1 Running 0 22h
spin-gate-59645db6b-8r78g 1/1 Running 0 22h
spin-igor-6c6d99499f-f76z2 1/1 Running 0 22h
spin-orca-66c79f6dc-9wm4c 1/1 Running 0 22h
spin-rosco-5bc54c8d67-xrb9p 1/1 Running 0 22h
答案 0 :(得分:1)
我转发了端口9000,而不是8084,并更改了--gate-endpoint http://localhost:9000/gate
,它可以正常工作。
export DECK_POD=$(kubectl get pods --namespace default -l "cluster=spin-deck" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace default $DECK_POD 9000:9000