helm/headscale/server/daemonset.yaml

36 lines
812 B
YAML
Raw Normal View History

2022-10-01 09:09:30 +00:00
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: headscale
spec:
template:
metadata:
labels:
app: headscale
spec:
hostNetwork: true
volumes:
- name: data
persistentVolumeClaim:
claimName: headscale
- name: certs
secret:
secretName: wetofu-me-certs
- name: config
configMap:
name: headscale
containers:
- name: headscale
image: ghcr.io/juanfont/headscale
args:
- serve
volumeMounts:
- name: data
mountPath: /var/lib/headscale
- name: certs
mountPath: /certs
- name: config
mountPath: /etc/headscale
selector:
matchLabels:
app: headscale