abiosoft / abiosoft/colima

Getting container logs from behind a proxy

Đang mở
#638 0 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Go
Star
30.8k
Fork
613
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Description

I'm behind a corporate VPN / proxy and just spent way too long figuring out why any attempt to retrieve container logs with `kubectl logs` failed.

I finally figured out the solution and wanted to share it here in case anyone else runs into the same problem. I'd also be happy to contribute some documentation about using Colima with a proxy in general.

The error looked like this:

```bash
$ kubectl get logs coredns-75fc8f8fff-tlxgv

Error from server: Get "https://192.168.5.15:10250/containerLogs/kube-system/coredns-75fc8f8fff-tlxgv/coredns": Connection refused
```

Essentially, you need to add the [guest IP](https://github.com/lima-vm/lima/blob/master/docs/network.md#guest-ip-192168515) (192.168.5.15) to your `no_proxy`, otherwise the request paths back out to the host and proxy and fails.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.