Defining Knative Applications as Code

Viewing definitions

Executing commands like kn service create is great because it’s simple. But it’s the wrong approach to deploying any type of application, Knative included. Maintaining a system created through ad hoc commands is a nightmare. The initial benefits from that approach are often overshadowed by the cost that comes later.

So we’ll move on with the assumption that you want to have a YAML file that defines your application. It could be some other format but, given that almost everything is YAML in the Kubernetes world, we’ll assume that’s what you need.

So, let’s take a look at how we’d define our application. We’ve already prepared a sample definition devops-toolkit.yaml to use.

Get hands-on with 1200+ tech skills courses.