38 lines
856 B
YAML
38 lines
856 B
YAML
apiversion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: tailscale-pod
|
|
annotations:
|
|
io.podman.annotations.infra.name: tailscale-pod-infra
|
|
spec:
|
|
containers:
|
|
- name: headscale
|
|
image: docker.io/headscale/headscale:0.26
|
|
command:
|
|
- headscale
|
|
- serve
|
|
ports:
|
|
- containerport: 8080
|
|
hostport:
|
|
protocol: TCP
|
|
volumemounts:
|
|
- name: headscale-config
|
|
mountpath: /etc/headscale
|
|
- name: headscale-lib
|
|
mountpath: /var/lib/headscale
|
|
- name: localtime
|
|
mountpath: /etc/localtime
|
|
readonly: true
|
|
|
|
volumes:
|
|
- name: headscale-config
|
|
hostpath:
|
|
path: $HOME/.config/pods/tailscale/headscale-config
|
|
type: Directory
|
|
- name: headscale-lib
|
|
persistentvolumeclaim:
|
|
claimname: tailscale-pod-headscale-lib
|
|
- name: localtime
|
|
hostpath:
|
|
path: /etc/localtime
|
|
type: File
|