When I say the old-fashioned way, I mean pre-Kubernetes static configuration. But as you'll see, the old-fashioned way is sometimes the best way, and is often well supported by Kubernetes too. Let's go over the various ways to configure a program, consider their pros and cons, and when they are appropriate. The configuration mechanisms we will cover here are as follows:
- No configuration (convention over configuration)
- Command-line arguments
- Environment variables
- Configuration files
While Delinkcious is implemented mostly in Go, we will use different programming languages to demonstrate the configuration options just for fun and variety.