telepresenceio / telepresence

Local development against a remote Kubernetes or OpenShift cluster
https://www.telepresence.io
Other
6.43k stars 507 forks source link

allowConflictingSubnets not recognised in laptop config.yml #3613

Closed craftey closed 3 weeks ago

craftey commented 3 weeks ago

I have a subnet issue with my cluster:

$ telepresence connect --namespace dev
telepresence connect: error: connector.Connect: subnet 169.254.169.252/30 overlaps with existing route "169.254.0.0/16 via 10.5.56.32 dev en0, gw <nil>". Please see https://www.getambassador.io/docs/telepresence/latest/reference/vpn for more information

I can fix this by:

$ telepresence connect --namespace dev --allow-conflicting-subnets 169.254.169.254/30
Connected to context gke_..., namespace dev (https://x.x.x.x/)

I can also fix this by adding

client:
  routing:
    allowConflictingSubnets:
    - 169.254.169.254/30

to the helm chart values.

What NOT seems to work is putting the same into ~/Library/Application\ Support/telepresence/config.yml . I tried:

client:
  routing:
    allowConflictingSubnets:
    - 169.254.169.254/30

and

routing:
  allowConflictingSubnets:
  - 169.254.169.254/30

I can work with putting it into the helm values or as cli option.

But I think that it is not working with local laptop-side config is a bug.

Tested with telepresence v2.19.5 on macOS.

cindymullins-dw commented 3 weeks ago

Hi @craftey , this doesn't seem to be supported in the local config file. Our docs may give this impression but a closer read of this docs note should clear things up.

You can use the allowConflictingSubnets flag when runningTelepresence connect, or you can use it via Helm, but not via your local config.

craftey commented 3 weeks ago

Hi @cindymullins-dw thank you for the clarification.