How can I use Tailscale?

Tailscale Setup #

1. If you don’t have Tailscale created, sign up for an account here: https://login.tailscale.com/start.

2. Go to the admin panel and generate an auth key from here: https://login.tailscale.com/admin/settings/keys. Be sure to set the following permissions:

  • Reusable
  • Ephemeral

Save a copy of this key! You will need this key in the next section.

Tailscale authentication key generation.

3. Enable MagicDNS here: https://login.tailscale.com/admin/dns

4. Get the name of the MagicDNS nameserver and save a copy.

Get Magic DNS server name from TailscaleHere, the nameserver is devzero-inc.org.github.beta.tailscale.net

DevZero Setup #

1. Open up environments tab on the bottom left, select the template you would like to enable connection to Tailscale for, or create a new template. Find the environment.

2. Take that auth key, and set it as an environment variable for the environment template that needs to connect to remote resources. Give it an appropriate name, say TAILSCALE_AUTH_KEY.

Environment variables panel for a template within DevZeroEnvironment variables panel for a template within DevZero

2. Add an entry into the scriptpolicy section of the environment template.

scriptpolicy: 
- script: |
    curl -fsSL https://tailscale.com/install.sh | sh
    sudo tailscale up --authkey ${{ TAILSCALE_AUTH_KEY }}
  runas: devzero

Results #

All newly generated machines will show up in the Tailscale console (here: https://login.tailscale.com/admin/machines), and be connected to the Tailnet.

Connect to another DevBox #

Diagram

This is how you can construct the path to call an application on a DevBox:

path definition for communicating to a devbox

Example call from DevBox A:

curl nvjitjbs.devzero-inc.org.github.beta.tailscale.net:5555/path/goes/here
PreviousUser Onboarding
NextHow can I use AWS ECR?