Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release-1.25] - Allow to pass additional parameters to tailscale up #8463

Closed
manuelbuil opened this issue Sep 27, 2023 · 1 comment
Closed
Assignees
Milestone

Comments

@manuelbuil
Copy link
Contributor

Backport fix for Allow to pass additional parameters to tailscale up

@ShylajaDevadiga
Copy link
Contributor

Validated on release-1.25 branch using commit id 857e017

Environment Details

Infrastructure
Cloud EC2 instance

Node(s) CPU architecture, OS, and Version:
Ubuntu 22.04

Cluster Configuration:
Single node

Config.yaml:

cat /etc/rancher/k3s/config,yaml
debug: true
write-kubeconfig-mode: 644
token: secret
cluster-init: true
vpn-auth: "name=tailscale,joinKey=REDACTED,extraArgs=--accept-dns=false"
cluster-cidr: 10.50.0.0/16

Steps to validate

  1. Install tailscale
  2. Copy config.yaml
  3. Install k3s

Validation Results:
From the logs we see the extraArg --accept-dns is set to false

$ k3s -v
k3s version v1.25.14+k3s-857e0175 (857e0175)
go version go1.20.8

$ ip a|grep tailscale
3: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
    inet <IP>/32 scope global tailscale0

$ journalctl |grep tailscale|grep accept-dns

Sep 29 22:41:23 ip-172-31-0-119 k3s[27617]: time="2023-09-29T22:41:23Z" level=debug msg="Flags passed to tailscale up: [up --authkey REDACTED --timeout=30s --reset --accept-dns=false]"

extraArg passed persisted across restart of the service

$ sudo systemctl restart k3s
Sep 29 22:41:23 ip-172-31-0-119 k3s[27617]: time="2023-09-29T22:41:23Z" level=debug msg="Flags passed to tailscale up: [up --authkey REDACTED --timeout=30s --reset --accept-dns=false]"
Sep 29 22:43:20 ip-172-31-0-119 k3s[30144]: time="2023-09-29T22:43:20Z" level=debug msg="Flags passed to tailscale up: [up --authkey REDACTED --timeout=30s --reset --accept-dns=false]"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants