Traslation of a docker-compose

Hello,
I have recently started using Kubernetes.
can someone help me to translate this docker-compose file:

---
version: "2.1"
services:
  kasm:
    image: lscr.io/linuxserver/kasm:latest
    container_name: kasm
    privileged: true
    environment:
      - KASM_PORT=443
      - DOCKER_HUB_USERNAME=USER #optional
      - DOCKER_HUB_PASSWORD=PASS #optional
    volumes:
      - /path/to/data:/opt
      - /path/to/profiles:/profiles #optional
      - /dev/input:/dev/input #optional
      - /run/udev/data:/run/udev/data #optional
    ports:
      - 3000:3000
      - 443:443
    restart: unless-stopped
``` into a yaml file, which Kubernetes can understand.
Specifically I would need this container to have 4 gb of ram and 4 cpu.
my version of Kubernetes 1.25.4 cloud installation
thank you all for the help