tailscale-docker/k8s/simple-example/deployment.yaml
Louis-Philippe Asselin 7c146ab113
Version 1.0 (#2)
* Adds @rhjensen79 k8s example

* Instructions in README instead of Makefile

* Adds optional TAILSCALE_HOSTNAME instead of hardcoding in tailscale.sh

* TAILSCALE_STATE_ARG env variable, to enable stateful-example which reuses the same ip between deployments

* Fix tailscale.sh for proper `tailscale logout` on container SIGTERM

* Adds github action to build image

* all docker images are in the images folder. Instead of repeating in each example

Co-authored-by: Robert Jensen <robert@robert-jensen.dk>
2022-09-01 14:51:23 -04:00

33 lines
809 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: tailscale
spec:
selector:
matchLabels:
app: tailscale
template:
metadata:
labels:
app: tailscale
spec:
containers:
- name: tailscale
image: ghcr.io/lpasselin/tailscale-docker:latest
env:
- name: TAILSCALE_AUTH_KEY
value: "${TAILSCALE_AUTH_KEY:-err}"
- name: TAILSCALE_HOSTNAME
value: "tailscale-docker-k8s-simple"
- name: TAILSCALE_STATE_ARG
value: "mem:"
resources:
limits:
memory: "128Mi"
cpu: "500m"
- name: nginx
image: nginxdemos/hello
resources:
limits:
memory: "128Mi"
cpu: "500m"