Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spotsnel/tailscale-systemd

Tailscale System(d) container for use with Podman Machine, Podman Desktop, MicroShift and OpenShift Local installations
https://github.com/spotsnel/tailscale-systemd

container debian podman rhel9 systemd tailscale

Last synced: about 2 months ago
JSON representation

Tailscale System(d) container for use with Podman Machine, Podman Desktop, MicroShift and OpenShift Local installations

Awesome Lists containing this project

README

        

Tailscale (system container)
============================

System(d) container for use with Podman Machine, MicroShift, OpenShift Local and Podman Desktop installations, etc.

![Screenshot](./images/screenshot.png)

### Usage

#### Container creation
Start the system container. You can choose between the following options: [Debian](./#debian-based), [Fedora](./#fedora-based) or [RHEL UBI9](./#rhel-ubi9-based)

##### Debian-based
```
$ podman run -d --name=tailscale \
--hostname $HOSTNAME-tailscale \
--network=host --systemd=always \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
ghcr.io/spotsnel/tailscale-systemd:latest
```

##### Fedora-based
```
$ podman run -d --name=tailscale \
--hostname $HOSTNAME-tailscale \
--network=host --systemd=always \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
ghcr.io/spotsnel/tailscale-systemd/fedora:latest
```

##### RHEL UBI9-based
```
$ podman run -d --name=tailscale \
--hostname $HOSTNAME-tailscale \
--network=host --systemd=always \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
ghcr.io/spotsnel/tailscale-systemd/ubi9:latest
```

#### Node registration
and register the node to your Tailnet
```
$ podman exec -it tailscale tailscale up

To authenticate, visit:

https://login.tailscale.com/a/...
```

or use the Podman Desktop terminal to do so.

#### Systemd
The lifecycle of the container can be maintained by the host using a systemd service unit:

```
$ (cd $HOME/.config/systemd/user && podman generate systemd --name --files tailscale)
$ systemctl --user enable --now container-tailscale
$ loginctl enable-linger $USER
```