GoogleContainerTools/skaffold
Skaffold port forwarding gets into broken state after modifying artifact image name in Skaffold Config
开放
#6,480 创建于 2021年8月20日
area/portforwardbugbash/q4-2022help wantedkind/bugpriority/p1
仓库指标
- 星标
- (12,822 个星标)
- PR 合并指标
- (平均合并 3天 6小时) (30 天内合并 16 个 PR)
描述
- Clone the cloud-code-samples and go to the
golang/go-hello-worlddir. - Start a
skaffold devsession using a command like/Users/michihara/bin/skaffold dev --filename skaffold.yaml --label ide=Idea --label ideVersion=2021.1.3.0.0 --label ijPluginVersion=21.7.2-SNAPSHOT --rpc-port=50051 --port-forward=true --wait-for-deletions-max=2m0s --status-check=true --enable-rpc=true - The go-hello-world-external service should be port forwarded. A message like
Port forwarding service/go-hello-world-external in namespace default, remote port 80 -> http://127.0.0.1:4503should appear in the logs. Clicking on http://127.0.0.1:4503 should lead to a sample hello world page. - Modify the image name in
skaffold.yaml. - Skaffold should rebuild. http://127.0.0.1:4503 should no longer work.
- Undo the image name change in
skaffold.yaml. - Skaffold should rebuild. http://127.0.0.1:4503 still doesn't work although I expected it to.
- Skaffold is now in a state where port forwarding no longer seems to work no matter what change is made.
https://user-images.githubusercontent.com/79073/130265519-45d661d5-317a-4945-8ddb-bfdda411e348.mov