Skip to content

sean-m-benson/golink-k8s-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Golink Kubernetes Deployment

Kubernetes manifests for deploying Tailscale golink: a shortlink service for your tailnet. Created because I couldn't find good existing Kubernetes deployment examples. I'm not affiliated with tailscale in any capacity, just a fan of their product.

Quick Deployment

  1. Edit the secret manifest with your Tailscale auth key:

    • Edit manifests/secret.yaml and replace the placeholder with your actual auth key, configured here.
    • You may want to create and assign a tag to your auth key to prevent it from expiring.
  2. Deploy everything:

    kubectl apply -f manifests/

Usage

Once deployed, access your golink service at: go/

Files

Flat Manifests

  • manifests/namespace.yaml: Namespace for Kubernetes resources
  • manifests/pvc.yaml: Persistent storage for database
  • manifests/secret.yaml: Template for auth key (fill in your key)
  • manifests/deployment.yaml: Main golink deployment

Helm Chart

Also available as a Helm chart for easier configuration and deployment:

# Install using Helm
helm install golink ./charts/golink/ \
  --set tailscale.authKey=tskey-auth-your-key-here

Notes

  • I haven't found a good way to prevent Safari from interpreting go/ URLs as search terms for a search engine. To start, you may need to prefix each go link URL with http(s)://. Eventually, once the page is in your browsing history, Safari should give that priority over using it as search terms.
  • I did get cert errors in each browser the first time I browsed to the go/ URL using https://, but after the first time they disappeared.
  • This works for my personal and home-lab use. YMMV for production use.

About

Kubernetes manifests for deploying Tailscale golink

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages