KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
tailscale-on-k8s
★ 13
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
fetch-through-merge-base
:
A GitHub Action for fetching PR commits through the merge-base
Oberon-retro-compiler
:
Oberon compiler which supports LOOP, EXIT, WITH, multiple RETURNs and forward declarations of procedures
text_speech
:
Using Gradio interface to build UI for converting text to speech
Spotify-Status-Real-Time-GitHub
:
No description available.
dev-discords
:
An online collection of developer related discord servers.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
tailscale-on-k8s
?
Download (.md)
**DEPRECATED**: Kubernetes is now [officailly supported](https://tailscale.com/blog/kubecon-21) by Tailscale. # Overview The goal of this project is to provide a few ways to run Tailscale inside a Kubernetes Cluster # Instructions ## Setup 1. (Optional) Create the following secret which will automate login. <br>You will need to get an auth key from [Tailscale Admin Console](https://login.tailscale.com/admin/authkeys). <br>If you don't provide you the key, you can still use authenticate by using the url in the logs. ```yaml apiVersion: v1 kind: Secret metadata: name: tailscale-auth stringData: AUTH_KEY: tskey-... ``` 1. Set the image tag: ```bash export IMAGE_TAG=ts:latest ``` 1. Build and push the container ```bash make push ``` ## Sample Sidecar 1. Create the sample nginx pod with a tailscale sidecar ```bash make sidecar ``` 1. If you're not using an AuthKey, authenticate by grabbing the login URL here: ```bash kubectl logs tailscale-sidecar tailscale ``` 1. Check if you can to connect to nginx over tailscale: ```bash curl "http://$(tailscale ip -4 nginx)" ``` Or, if you have MagicDNS enabled: ```bash curl http://nginx ``` ## Sample Proxy 1. Provide the Cluster IP of the service you want to reach by either: - creating a new deployment ```bash kubectl create deployment nginx --image nginx kubectl expose deployment nginx --port 80 export DEST_IP="$(kubectl get svc nginx -o=jsonpath='{.spec.clusterIP}')" ``` - or, using an existing service ```bash export DEST_IP="$(kubectl get svc <SVC_NAME> -o=jsonpath='{.spec.clusterIP}')" ``` 1. Deploy the proxy pod ```bash make proxy ``` 1. If you're not using an AuthKey, authenticate by grabbing the login URL here: ```bash kubectl logs proxy ``` 1. Check if you can to connect to nginx over tailscale: ```bash curl "http://$(tailscale ip -4 proxy)" ``` Or, if you have MagicDNS enabled: ```bash curl http://proxy ```