2022-10-01 09:09:30 +00:00
|
|
|
apiVersion: apps/v1
|
2023-05-07 12:40:12 +00:00
|
|
|
kind: Deployment
|
2022-10-01 09:09:30 +00:00
|
|
|
metadata:
|
|
|
|
name: headscale
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: headscale
|
|
|
|
spec:
|
2023-05-07 12:40:12 +00:00
|
|
|
#hostNetwork: true
|
2022-10-01 09:09:30 +00:00
|
|
|
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
|
2023-05-07 12:40:12 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: "1"
|
|
|
|
memory: "512Mi"
|
|
|
|
command:
|
|
|
|
- headscale
|
2022-10-01 09:09:30 +00:00
|
|
|
- serve
|
|
|
|
volumeMounts:
|
|
|
|
- name: data
|
|
|
|
mountPath: /var/lib/headscale
|
|
|
|
- name: certs
|
|
|
|
mountPath: /certs
|
|
|
|
- name: config
|
|
|
|
mountPath: /etc/headscale
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2023-05-07 12:40:12 +00:00
|
|
|
app: headscale
|