ENV for exit node

I am needing to pass the exit node flag for my kubernetes subnet relay pod. Is there a list of possible env for tailscaled ? Or at least for the exit node flag.
thanks
Brad

tailscaled doesn’t really make use of environment variables for settings. You just use --advertise-exit-node with tailscale up

ok, so I made a mistake in my question. What I am actually needing is “–accept-routes”. So I am using the doc/k8s make files to create my statefulset. Here is the section which defines the pod.

spec:
      serviceAccountName: "{{SA_NAME}}"    
      containers:
      - name: tailscale
        imagePullPolicy: Always
        image: "{{IMAGE_TAG}}"
        env:
        # Store the state in a k8s secret
        - name: KUBE_SECRET
          value: "{{KUBE_SECRET}}"
        - name: USERSPACE
          value: "true"
        - name: AUTH_KEY
          valueFrom:
            secretKeyRef:
              name: tailscale-auth
              key: AUTH_KEY
              optional: true
        - name: ROUTES
          value: "{{ROUTES}}"

So you can see there indeed are env values that can be passed to tailscale. I just need to know what the key name or env name for the “accept-routes” feature.

thanks
Brad

ok I found it. Sneaky little bugger. In the dockerfile run.sh it has this.

AUTH_KEY="${AUTH_KEY:-}"
ROUTES="${ROUTES:-}"
DEST_IP="${DEST_IP:-}"
EXTRA_ARGS="${EXTRA_ARGS:-}"
USERSPACE="${USERSPACE:-true}"
KUBE_SECRET="${KUBE_SECRET:-tailscale}"

I would just use the EXTRA_ARGS value. So tailscale doesn’t have env values but the script to start tailscale does!

Brad