Hey good evening <#CGGQEHPPW|>... guys I've got a ...
# k3s
w
Hey good evening #CGGQEHPPW... guys I've got a little mini PC and I installed Debian , Docker CE, and it's got Caddy listening on 80 and 443. I installed k3s and I'm getting a clash between Traefik and Caddy. I'd like to add a 2nd IP to the NIC, and bind k3s to use this , can't see how this can be done. Can anyone advise please?
c
don’t do that
Don’t run docker and unmanaged containers on the same host you want to run Kubernetes on
w
Hi @creamy-pencil-82913
oh
I basically just have Docker running Plex and Transmission and Caddy...
c
Pick a container orchestration platform and use that. You can move those into running as Kubernetes pods if you want to use Kubernetes, or just stick with unmanaged Docker containers if you like that better. You’re going to spend a bunch of time fighting to get stuff to play nicely together if you continue down this path.
w
ahhh OK I see
c
the port conflict is a solvable problem but in general it is not something I would recommend doing, you’ll run into other issues eventually.
w
hmmm, OK so my "issue" is I have some docker compose files, and I've no real experience of kubenetes, so I'm unsure how to deploy Plex, Transmission etc. on k3s
was hoping to be able to run both, and learn k3s, while keeping my docker containers running in docker ce
@creamy-pencil-82913 is the main issue iptables ?
c
and available resources, and sysctls, and so on
w
ohh OK
c
containerd and dockerd do not expect to run on the same host. if you point kubelet at existing dockerd, it expects to be the only thing managing containers. they just aren’t designed to coexist so you MIGHT be able to do what you want… but nobody test or supports it.
w
interesting ... @creamy-pencil-82913 thank you for the quick info
TBH I'm happy to switch to k3s... just need to work out the best option to migrate my docker compose files
c
Converting docker containers to standalone deployment with single replica and host network is usually the easiest thing to do while you are learning. Exposing the pod via a service instead of using host networking isn’t difficult but you do have to understand how to select pods for the service via labels. It’s not terribly hard to do and is good experience.
w
nice one...
I will try that
I really want to start learning Kubernetes
c
if you are using docker volumes you will need to use PVCs instead. But K3s makes these things all pretty easy since it has servicelb for services and local-path-provisioner for PVs
w
I'm thinking this is gonna be something for a weekend 🙂
c
There are tools that you can use to convert docker-compose to kubernetes manifests, and I tried them when I was first converting my homelab from docker-compose to k3s (years ago before I joined the team) but I never really liked the output, I ended up just converting stuff by hand.
w
yeah I read there are some conversion tools out there
c
that was a while ago though, maybe tools have gotten better
w
the biggy is Plex tbh
loads of ports and volumes
@creamy-pencil-82913 again, thank you kindly for you advice. I very much appreciate and your time. Gonna bow out now, as it's late here in Spain.