Files
linuxkit/examples/vpnkit-forwarder.yml
Avi Deitcher 1723cf9493 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2025-10-29 07:10:30 -04:00

37 lines
1.2 KiB
YAML

kernel:
image: linuxkit/kernel:6.12.52
cmdline: "console=ttyS0"
init:
- linuxkit/init:b92210bd04aa29344d70fd2d259e2ae3c7903ec4
- linuxkit/runc:98ddef9b5b87cb44783566ed2a86cea95439a631
- linuxkit/containerd:22578becf270fe4bbb82e29f2539f71613e0b4fc
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:b87e9ececac55a65eaa592f4dd8b4e0c3009afdb
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: mount-vpnkit
image: alpine:3.13
binds:
- /var/:/host_var:rbind,rshared
capabilities:
- CAP_SYS_ADMIN
rootfsPropagation: shared
command: ["sh", "-c", "mkdir /host_var/vpnkit && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
services:
- name: sshd
image: linuxkit/sshd:08e5d4a46603eff485d5d1b14001cc932a530858
binds.add:
- /root/.ssh:/root/.ssh
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:d0bc6500a9dc97b4556bb4bda20160a294cc61a3
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true