Unable to resolve via hostnames via Telepresence DNS
- Lenguaje dominante
- Go
- Estrellas
- 30.8k
- Forks
- 613
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### Description
Not really sure if bug or a feature request is more suitable here, but my scenario is:
* Running [telepresence](https://github.com/telepresenceio/telepresence) (version 2.5.8 in my case) to connect to an _external_ k8s cluster (not a colima k8s cluster)
* Launch some container on colima that should be able to reach the services in my cluster via telepresence
Here's an example:
```shell
$ myctx='some-kube-ctx'
$ kubectl --context $myctx version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.15", GitCommit:"1d79bc3bcccfba7466c44cc2055d6e7442e140ea", GitTreeState:"clean", BuildDate:"2022-09-21T12:18:10Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.5", GitCommit:"c999fea1e6dbf111d64000dfaaff45edaa4c34d2", GitTreeState:"clean", BuildDate:"2022-01-11T12:16:14Z", GoVersion:"go1.16.12 BoringCrypto", Compiler:"gc", Platform:"linux/amd64"}
# This is expected, telepresence is not connected yet
$ curl a2.default:8081/status
curl: (6) Could not resolve host: a2.default
# Connect telepresence, verify we can get a response
$ telepresence connect --context $myctx
Connected to context some-kube-ctx (https://10.0.0.76:6443)
$ curl a2.default:8081/status
{"status":{}}%
$ wget -qO - a2.default:8081/status
{"status":{}}%
# Colima VM can't reach it
$ colima ssh -- wget -qO - a2.default:8081/status
wget: bad address 'a2.default:8081'
FATA[0000] exit status 1
# Neither can a container run by colima
$ docker run --rm alpine /bin/sh -c 'wget -qO - a2.default:8081/status'
wget: bad address 'a2.default:8081'
```
This works on both Docker Desktop + Rancher Desktop. I suspect there may some reasonable workaround I could do to configure the DNS for my colima VM but I'm just not sure what that might be.
### Version
Colima Version:
```
colima version v0.4.6
git commit: 10377f3a20c2b0f7196ad5944264b69f048a3d40
runtime: docker
arch: x86_64
client: v20.10.18
server: v20.10.18
```
Lima Version:
```
limactl version 0.11.3
```
Qemu Version:
```
qemu-img version 7.1.0
Copyright (c) 2003-2022 Fabrice Bellard and the QEMU Project developers
```
### Operating System
- [X] macOS Intel
- [ ] macOS M1
- [ ] Linux
### Reproduction Steps
See example in description above.
### Expected behaviour
The colima VM and its containers should be able to resolve the host and talk to the services running inside the cluster that is connected by telepresence.
### Additional context
_No response_
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.