Files
linuxkit/examples/vpnkit-forwarder.yml
Avi Deitcher 45d7ab8fed Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-28 10:57:05 +02:00

37 lines
1.2 KiB
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=ttyS0"
init:
- linuxkit/init:ad37cb61355b08cf481c54b07612b5206be6254d
- linuxkit/runc:8c00a7c58393f0cfcab81ac4171c00bcaec6b962
- linuxkit/containerd:26f04b0b57e3d21bfb36732b5c6ebe8f08c6705b
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:0060977dc2cd15eb242c21888fad240f96ec7308
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:c8490aea913425c779c41bb2990e09839190452d
binds.add:
- /root/.ssh:/root/.ssh
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:447dac4b62d790c0fedf1c0f8ed3245dbc3450f9
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true