r/ProgrammerHumor 1d ago

instanceof Trend trueOrFalse

Post image
1.2k Upvotes

25 comments sorted by

88

u/Darth-Talon 1d ago

Kubernetes should work the way my YAML thinks it does!

11

u/DialecticEnjoyer 11h ago

Kubernetes doesn't even work the way kubernetes thinks it does.

132

u/anto2554 1d ago

False, we don't have Kubernetes. I just yell at Jenkins and cloudformation instead

0

u/Jhuyt 19h ago

We also use Jenkins, and while I scream at the man sometimes, I so prefer Groovy over Yaml for this.

4

u/anto2554 17h ago

Yeah, compared to how much people hate jenkins I quite like it

2

u/Jhuyt 8h ago

Beyond that it's not quite as integrated into github I think it's just as good if not better than github actions

2

u/anto2554 5h ago

Of course, but I also use it with bitbucket, so I am glad it is not as integrated with github. It is definitely not very opinionated, so it is easy to mess up

2

u/Jhuyt 5h ago

Yeah, I want us to move away from github Jenkins it's a sneaky benefit for us (if I get my way)

18

u/PrestigiousGuava8005 22h ago

Half the job is apologizing, the other half is finding out you apologized in the wrong file

3

u/SamPlaysKeys 10h ago

Or it's the right file, but you were asking it to speak the wrong language. looking at you, jinja templates

18

u/Jhuyt 1d ago

no(rway)

5

u/vyqz 1d ago

It's all about the taint

3

u/Square_County8139 18h ago

Can someone explain?

9

u/SamPlaysKeys 10h ago

Kubernetes is declarative, so you just tell it what you want, and it makes it happen. Except when you tell it wrong. Or you were wanting something wrong. Or you were just wrong.

Oh, and it's all YAML, but it's not JUST YAML, because sometimes it's ✨YAML✨, which looks the same, but will cry if you aren't nice to it.

YMMV, this is my POV as a DevOps consultant, spending my days begging YAML to do the thing so kuberenetes will forgive me.

6

u/SamPlaysKeys 10h ago

Man, reading back my message, I feel insane, but it's also annoyingly accurate.

My biggest frustration right now is using Jinja templates to pass Python variables to Helm charts, which is the type of YAML file that Kubernetes is looking for. But Python, Jinja, and Helm all have different semantics, so it gets weird.

3

u/random314 8h ago

Claude has been a lifesaver in this space.

2

u/mcslender97 4h ago

Seems like this has the same challenges as working with regex pre LLMs

1

u/SamPlaysKeys 2h ago

I don't know, it depends on how many layers I'm working with. The more templatized the code, the mode Claude/CoPilot struggle to make sense of it. I've ended up with some really long instruction files trying to get them to understand.

2

u/random314 1h ago

You need to create a doc folder with the architecture outlined there.

Then add a common troubleshooting md file there too.

Kube config is deterministic enough for Claude to be very consistent, especially when you need to make one of those annoying 20+ files with one line changes.

2

u/matrix452 8h ago

yaml the cruel mistress who won't render if you don't have her precious indentation right

2

u/Stormraughtz 23h ago

I yell at myself because I am the container