tailscale-docker/k8s-example/deployment.yaml

38 lines
930 B
YAML
Raw Normal View History

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:
2023-12-29 04:20:00 +00:00
- name: TS_AUTHKEY
2023-12-28 19:58:05 +00:00
value: "${TS_AUTH_KEY:-err}"
- name: TS_HOSTNAME
value: "tailscale-docker-k8s-simple"
2023-12-29 04:20:00 +00:00
- name: TS_STATE
value: "mem:"
2023-12-29 15:48:11 +00:00
- name: TS_SERVE_PORT
value: "${TS_SERVE_PORT:-}"
- name: TS_FUNNEL_PORT
value: "${TS_FUNNEL_PORT:-}"
resources:
limits:
memory: "128Mi"
cpu: "500m"
- name: nginx
image: nginxdemos/hello
resources:
limits:
memory: "128Mi"
cpu: "500m"