← all discussions
platform

Should applications know they're running on Kubernetes?

dadanielc5 days ago3 replies

Some apps call the Kubernetes API directly for config or leader election. Others stay completely unaware. Which ages better?

Discussion

ststefanr5 days ago

Unaware, by default. Environment variables, files and signals work everywhere and are easy to test locally.

Reply
dadanielc4 days ago

Leader election is the exception I keep hitting. The Lease API is simply the easiest option.

Reply
totomh4 days ago

Operators should know. Business apps shouldn't.

Reply