tailscale-docker/k8s-example/deployment.yaml
2023-12-28 13:58:05 -06:00

33 lines
781 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: TS_AUTH_KEY
value: "${TS_AUTH_KEY:-err}"
- name: TS_HOSTNAME
value: "tailscale-docker-k8s-simple"
- name: TS_STATE_ARG
value: "mem:"
resources:
limits:
memory: "128Mi"
cpu: "500m"
- name: nginx
image: nginxdemos/hello
resources:
limits:
memory: "128Mi"
cpu: "500m"