访问Spinnaker UI时出错:路径未规范化

时间:2019-01-25 15:15:02

标签: spinnaker

为新的Spinnaker安装端口映射后,我无法访问其UI。

Request errors

此操作失败,并显示类似错误

spin-gate-7dbb96d964-5vs9z gate 2019-01-25 15:08:58.148 ERROR 1 --- [0.0-8084-exec-4] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
spin-gate-7dbb96d964-5vs9z gate
spin-gate-7dbb96d964-5vs9z gate org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the URL was not normalized.
spin-gate-7dbb96d964-5vs9z gate     at org.springframework.security.web.firewall.StrictHttpFirewall.getFirewalledRequest(StrictHttpFirewall.java:248) ~[spring-security-web-4.2.9.RELEASE.jar:4.2.9.RELEASE]
spin-gate-7dbb96d964-5vs9z gate     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:193) ~[spring-security-web-4.2.9.RELEASE.jar:4.2.9.RELEASE]
spin-gate-7dbb96d964-5vs9z gate     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177) ~[spring-security-web-4.2.9.RELEASE.jar:4.2.9.RELEASE]
...

在服务器端。

背景:我已经对其端口进行端口映射,以便访问它:

export DECK_POD=$(kubectl get pods --namespace cd -l "cluster=spin-deck" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace cd $DECK_POD 8080:9000 >> /dev/null &

1 个答案:

答案 0 :(得分:0)

我认为您还需要转移Gate舱,因为Deck需要访问它。

export DECK_POD=$(kubectl get pods --namespace cd -l "cluster=spin-deck" -o jsonpath="{.items[0].metadata.name}")
export GATE_POD=$(kubectl get pods --namespace cd -l "cluster=spin-gate" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace cd $DECK_POD 8080:9000 >> /dev/null &
kubectl port-forward --namespace cd $GATE_POD 8084:8084 >> /dev/null &