I’m developing this tiny web app which I want to run on an old laptop and put it on my portfolio.

I used podman, I have a pod with 3 containers, local images and everything is working fine on my workstation.

I envisioned just copying the kubernetes yaml on the old laptop, run play and pat myself on the back. I guess it doesn’t work like that…? Do I need to publish the container images somewhere? And other things? How does it work in a company?

Thanks in advance 😊

  • ☭可爱小猫☭@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    19 days ago

    first: why do you even need k8s just for your portfolio website? what features does it provide which is useful to you?

    you have to install minikube on your old laptop to be able to run pods etc

    tbh you dont need k8s, plain docker container would do and if you want to be fancy use docker swarm :)

    • Geode998@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      I know it’s overkill :) Wanted my README to have 1 installation command instead of 2 for easy review. Also showcase skills that go beyond Junior level.

      Initially I decided against kubernetes but since podman already has it integrated, why not? This way, I eliminate the need for podman-compose install. My app is part of the portfolio, has 3 containers for frontend, api and database. Didn’t finish the personal website yet, lol.

      Didn’t know about docker swarm and I definitely want fancy :)

  • nebeker@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    19 days ago

    You need to be able to pull or build the images on the other machine. At a company you would use a private container image registry on something like GitHub, GitLab or JFrog.

    Setting up a GitLab instance is a really cool homelab project that can also go on your portfolio.

    Develop on your workstation, push to the registry on machine B, pull from that and run on machine B