r/SpringBoot • • Jul 21 '24

docker, kafka, kubernetes

I've been struggling with my recent job change. I only recently know that the industry requires docker, kafka, and Kubernetes from developers. I didn't know this until spring not too long ago. I'm currently taking devops lectures at Udemy. I have experience with Linux and servers but no experience with these tools lately. It's my fault for not detecting the change. How fast it changes..!😵‍💫😱😭

24 Upvotes

15 comments sorted by

5

u/olekj Jul 21 '24

IMO the best way to learn is to do it yourself. While learning, try to setup a local k8s cluster with something like minikube or k3s and go from there… check how to deploy your app with k8s manifests, then move to helm or kustomize

1

u/Dependent_Staff_6891 Jul 21 '24

Thank you for your advice. I’m very nervous because I’ve fallen so often in the job apply,😭 but I can’t ignore this study. I hope there will be a good result.

4

u/olekj Jul 21 '24

Don’t be nervous… after you get it, it is always the same… I’ll try do do a small summary.

For Dockerfiles you want to look for multistage dockerfiles, once you have managed to do one the others will be the same - https://docs.docker.com/guides/docker-concepts/building-images/multi-stage-builds/

For docker compose just try to spin up a database and connect a service to it, this way you will understand how docker networking works. Then you can explore more complex topics but for starters that is fine - https://www.baeldung.com/spring-boot-postgresql-docker

For k8s spin up cluster like I’ve told you. Documentation is pretty straightforward and you can see it on k8s official website - https://kubernetes.io/docs/tutorials/hello-minikube/

As for k8s, from a developer perspective there isn’t much for you to know:

  • deployment manifests are used to managed the pod (replicas, resources, environment vars, etc…)

  • service is used for networking

  • ingress rules are used to tell your ingress controller how to reach your service if it needs to be external available

  • secrets store base64 secrets that can be attached to the pods via the deployment

GL

1

u/olekj Jul 21 '24

You should throw docker compose to the list to be honest, is super used for local testing / development

14

u/locomocopoco Jul 21 '24

Thats the fun and not so fun part of tech. You need to learn and upskill yourself every year. Good thing there are tons of free resources online on youtube - tech with nana has 4 hr course of k8s and docker as well

4

u/Emergency_Paint4H Jul 21 '24

I learnt kubernetes from her, her videos are interesting.

5

u/locomocopoco Jul 21 '24

Nana and Kodekloud is amazing.

2

u/Emergency_Paint4H Jul 21 '24

Okay will check this out.

5

u/[deleted] Jul 21 '24

read .yml files. get support from chatgpt, documentation. don't avoid related tasks.

4

u/reddit04029 Jul 21 '24

Don't be afraid to ask your workmates on how to do things. I had multiple KT's with a workmate of mine with our deployment and other cloud tools.

3

u/sans5z Jul 21 '24

Same boat as you, but I also don't know microservices. All my projects were monolithic. I thought that was enough. Now it's like a mandatory skill.

4

u/bikeram Jul 21 '24

Consider yourself lucky, having to jump through 4 repos to find an issue is a PITA.

It’ll be years before everything catches up, but the general consensus now is that microservices are a bad idea unless you have multiple teams with clear separation between them.

If I were interviewing I’d spin the monoliths as a strength. You could say you haven’t been tainted by microservices yet.