3 ms·
It's often better to provide both - especially for something like k8s. Declarative languages and programming languages serve entirely different use cases. They
by hitchstory 3y ago
It's often better to provide both - especially for something like k8s. Declarative languages and programming languages serve entirely different use cases.
They no more preclude each other than garbage collected and non garbage collected programming languages like C and python do.
- jacurtis 3y agoTo be fair... k8s offers both: Write declarative code with yaml and kubectl. This solves most use cases and interactions. Write operators in a variety of languages (usually golang) if you need direct control of the underlying control loop, advanced resources, and other use cases to extend or customize how your cluster works. This is far more flexible and powerful than most people understand and of itself has layers ranging from moderate to very complex. Furthermore there is the api aggregation layer you can extend if you need to customize the core api of your cluster.