Quickly connect to your Kubernetes Cluster with Tailscale

Related tags

DevOps Tools tsk
Overview

tsk

tsk is a quick and magical way to connect your Kubernetes cluster to your Tailscale Tailnet.

Installation

tsk requires you have Pulumi installed.

$ brew install pulumi
$ go install github.com/adamgoose/[email protected]

Configuration

Currently, only CLI flag and Environment Variable configuration is supported, however file-based configuration is coming soon. For now, try the following.

# Copy the example .envrc file
cp .envrc.example .envrc

# Edit your .envrc accordingly
vim .envrc

# If you have direnv installed...
direnv allow

# ...otherwise
source .envrc

Usage

Simply run tsk up!

Now, you can access in-cluster services with the following DNS name pattern:

<service_name>.<namespace>.tsk

When you're ready to shut everything down, just run tsk down.

Issues
  • user tailnet does not match

    user tailnet does not match

    Hello, I am unable to use this due to this error. any help would be appreciated.

    tsk up
    Error: failed to run update: exit status 255
    code: 255
    stdout: Updating (xxx):
    
        pulumi:pulumi:Stack tailscale-k8s-xxxx running
     +  kubernetes:core/v1:ServiceAccount service-account creating
     +  kubernetes:core/v1:ServiceAccount service-account creating
     +  kubernetes:core/v1:ServiceAccount service-account created
     +  kubernetes:rbac.authorization.k8s.io/v1:Role role creating
     +  kubernetes:core/v1:ConfigMap configmap creating
     +  kubernetes:core/v1:Secret secret creating
     +  kubernetes:core/v1:ConfigMap configmap creating
     +  kubernetes:core/v1:Secret secret creating
     +  kubernetes:rbac.authorization.k8s.io/v1:Role role creating
     +  kubernetes:core/v1:ConfigMap configmap created
     +  kubernetes:core/v1:Secret secret created
     +  kubernetes:apps/v1:Deployment deployment creating
     +  kubernetes:rbac.authorization.k8s.io/v1:Role role created
     +  kubernetes:rbac.authorization.k8s.io/v1:RoleBinding role-binding creating
     +  kubernetes:apps/v1:Deployment deployment creating
     +  kubernetes:apps/v1:Deployment deployment creating [1/2] Waiting for app ReplicaSet be marked available
     +  kubernetes:rbac.authorization.k8s.io/v1:RoleBinding role-binding creating
     +  kubernetes:apps/v1:Deployment deployment creating [1/2] Waiting for app ReplicaSet be marked available (0/1 Pods available)
     +  kubernetes:rbac.authorization.k8s.io/v1:RoleBinding role-binding created
     +  kubernetes:apps/v1:Deployment deployment creating Deployment initialization complete
     +  kubernetes:apps/v1:Deployment deployment created Deployment initialization complete
        pulumi:pulumi:Stack tailscale-k8s-xxxx running error: an unhandled error occurred: 1 error occurred:
        pulumi:pulumi:Stack tailscale-k8s-xxxx **failed** 1 error
    
    Diagnostics:
      pulumi:pulumi:Stack (tailscale-k8s-xxxx):
        error: an unhandled error occurred: 1 error occurred:
            * Couldn't fetch devices: rpc error: code = Unknown desc = invocation of tailscale:index/getDevices:getDevices returned an error: invoking tailscale:index/getDevices:getDevices: 1 error occurred:
            * Failed to fetch devices: user tailnet does not match (403)
    
    Resources:
        + 6 created
        1 unchanged
    
    Duration: 15s
    
    
    stderr:
    
    opened by k1ng440 0
Owner
Adam Engebretson
Discord: artisangoose#5631
Adam Engebretson
cluster-api-state-metrics (CASM) is a service that listens to the Kubernetes API server and generates metrics about the state of custom resource objects related of Kubernetes Cluster API.

Overview cluster-api-state-metrics (CASM) is a service that listens to the Kubernetes API server and generates metrics about the state of custom resou

Daimler Group 56 Jun 20, 2022
kubetnl tunnels TCP connections from within a Kubernetes cluster to a cluster-external endpoint, e.g. to your local machine. (the perfect complement to kubectl port-forward)

kubetnl kubetnl (kube tunnel) is a command line utility to tunnel TCP connections from within a Kubernetes to a cluster-external endpoint, e.g. to you

null 4 Nov 16, 2021
A Terraform module to manage cluster authentication (aws-auth) for an Elastic Kubernetes (EKS) cluster on AWS.

Archive Notice The terraform-aws-modules/eks/aws v.18.20.0 release has brought back support aws-auth configmap! For this reason, I highly encourage us

Aidan Melen 23 May 31, 2022
The OCI Service Operator for Kubernetes (OSOK) makes it easy to connect and manage OCI services from a cloud native application running in a Kubernetes environment.

OCI Service Operator for Kubernetes Introduction The OCI Service Operator for Kubernetes (OSOK) makes it easy to create, manage, and connect to Oracle

Oracle 22 Jun 17, 2022
Automated-gke-cilium-networkpolicy-demo - Quickly provision and tear down a GKE cluster with Cilium enabled for working with Network Policy.

Automated GKE Network Policy Demo Before running the automation, make sure you have the correct variables in env-automation/group_vars/all.yaml. There

Casey Wylie 0 Jan 1, 2022
vcluster - Create fully functional virtual Kubernetes clusters - Each cluster runs inside a Kubernetes namespace and can be started within seconds

Website • Quickstart • Documentation • Blog • Twitter • Slack vcluster - Virtual Clusters For Kubernetes Lightweight & Low-Overhead - Based on k3s, bu

Loft Labs 1.7k Jun 27, 2022
PolarDB-X Operator is a Kubernetes extension that aims to create and manage PolarDB-X cluster on Kubernetes.

GalaxyKube -- PolarDB-X Operator PolarDB-X Operator is a Kubernetes extension that aims to create and manage PolarDB-X cluster on Kubernetes. It follo

null 59 Jun 23, 2022
kitex running in kubernetes cluster and discover each other in kubernetes Service way

Using kitex in kubernetes Kitex [kaɪt'eks] is a high-performance and strong-extensibility Golang RPC framework. This go module helps you to build mult

adolli 1 Feb 21, 2022
A pod scaler golang app that can scale replicas either inside of cluster or out of the cluster

pod-scaler A simple pod scaler golang application that can scale replicas via manipulating the deployment Technologies The project has been created us

Mert Doğan 0 Oct 24, 2021
Go-gke-pulumi - A simple example that deploys a GKE cluster and an application to the cluster using pulumi

This example deploys a Google Cloud Platform (GCP) Google Kubernetes Engine (GKE) cluster and an application to it

Snigdha Sambit Aryakumar 1 Jan 25, 2022
Influxdb-cluster - InfluxDB Cluster for replacing InfluxDB Enterprise

InfluxDB ATTENTION: Around January 11th, 2019, master on this repository will be

Shiwen Cheng 274 Jun 29, 2022
Scout for alarming issues in your Kubernetes cluster

Kube-Scout An alerting tool for Kubernetes clusters issues of all types, in real time, with intelligent redundancy, and easily extendable api. Kube-Sc

Liri S 45 May 28, 2022
Kusk makes your OpenAPI definition the source of truth for API resources in your cluster

Kusk - use OpenAPI to configure Kubernetes What is Kusk? Developers deploying their REST APIs in Kubernetes shouldn't have to worry about managing res

kubeshop 6 Jun 27, 2022
Download your Fitbit weight history and connect to InfluxDB and Grafana

WemonFit Weight monitoring for Fitbit, using InfluxDB and Grafana Generating a new certificate openssl req -new -newkey rsa:2048 -nodes -keyout lo

Eduardo Argollo 0 Dec 5, 2021
Kubernetes OS Server - Kubernetes Extension API server exposing OS configuration like sysctl via Kubernetes API

KOSS is a Extension API Server which exposes OS properties and functionality using Kubernetes API, so it can be accessed using e.g. kubectl. At the moment this is highly experimental and only managing sysctl is supported. To make things actually usable, you must run KOSS binary as root on the machine you will be managing.

Mateusz Gozdek 3 May 19, 2021
Quickly cross-compile your C code

WORK IN PROGRESS: Viceroy is a very early work in progress and is subject to breaking changes. It's also subject to not really working all that well y

Robert Fratto 9 Apr 6, 2022
Multi cluster kubernetes dashboard with batteries included. Build by developers, for developers.

kubetower Multi cluster kubernetes dashboard with batteries included. Built by developers, for developers. Features Restart deployments with one click

Emre Savcı 33 Jun 19, 2022
Open Source runtime tool which help to detect malware code execution and run time mis-configuration change on a kubernetes cluster

Kube-Knark Project Trace your kubernetes runtime !! Kube-Knark is an open source tracer uses pcap & ebpf technology to perform runtime tracing on a de

Chen Keinan 30 May 21, 2022
Kubesecret is a command-line tool that prints secrets and configmaps data of a kubernetes cluster.

Kubesecret Kubesecret is a command-line tool that prints secrets and configmaps data of a kubernetes cluster. kubesecret -h for help pages. Install go

Charalampos Mitrodimas 18 May 3, 2022