Files
linuxkit/examples/vpnkit-forwarder.yml
Avi Deitcher 6b5be65a33 Update package tags
Signed-off-by: Avi Deitcher <avi@deitcher.net>
2024-01-27 22:28:11 +02:00

37 lines
1.2 KiB
YAML

kernel:
image: linuxkit/kernel:5.10.104
cmdline: "console=ttyS0"
init:
- linuxkit/init:31dcd928602e39ee752843ebcf6c35cbae73c883
- linuxkit/runc:7ecf2e5253905855fb554b072d42903f7829c8b6
- linuxkit/containerd:f645aa2f8aa58023149d7766725039572a2ebeb5
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:0cca76e71466fc6128fad585549b70538855f254
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:d7286e080dc56a2d5718d20e51efbe32123f83ba
binds.add:
- /root/.ssh:/root/.ssh
- name: vpnkit-forwarder
image: linuxkit/vpnkit-forwarder:3f85f8763b3436bd77d386a0c95679a544b7003a
binds:
- /var/vpnkit:/port
net: host
command: ["/vpnkit-forwarder"]
files:
- path: root/.ssh/authorized_keys
source: ~/.ssh/id_rsa.pub
mode: "0600"
optional: true