{"id":41482,"date":"2023-12-01T05:21:07","date_gmt":"2023-12-01T05:21:07","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=41482"},"modified":"2025-01-13T12:15:20","modified_gmt":"2025-01-13T12:15:20","slug":"knative-tutorials-chapter-2-your-first-knative-application","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/knative-tutorials-chapter-2-your-first-knative-application\/","title":{"rendered":"Knative Tutorials &#8211; Chapter 2 &#8211; Your first Knative application"},"content":{"rendered":"\n<script src=\"https:\/\/gist.github.com\/devops-school\/13a0ef32bd41f87ab2d65cd2da72c9f4.js\"><\/script>\n\n\n\n<p>Here&#8217;s what each of these Serving APIs do:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong><code>Service<\/code><\/strong><\/td><td>Describes an application on Knative.<\/td><\/tr><tr><td><strong><code>Revision<\/code><\/strong><\/td><td>Read-only snapshot of an application&#8217;s image and other settings (created by&nbsp;<code>Configuration<\/code>).<\/td><\/tr><tr><td><strong><code>Configuration<\/code><\/strong><\/td><td>Created by Service (from its&nbsp;<code>spec.configuration<\/code>&nbsp;field). It creates a new&nbsp;<code>Revision<\/code>&nbsp;when the&nbsp;<code>revisionTemplate<\/code>&nbsp;field changes.<\/td><\/tr><tr><td><strong><code>Route<\/code><\/strong><\/td><td>Configures how the traffic coming to the Service should be split between&nbsp;<code>Revision<\/code>s.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>This diagram explains the relationship between them:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"339\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/12\/image-1024x339.png\" alt=\"\" class=\"wp-image-41483\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/12\/image-1024x339.png 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/12\/image-300x99.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/12\/image-768x254.png 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2023\/12\/image.png 1219w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s what each of these Serving APIs do: Service Describes an application on Knative. Revision Read-only snapshot of an application&#8217;s image and other settings (created by&nbsp;Configuration). Configuration Created by Service (from its&nbsp;spec.configuration&nbsp;field). It creates a new&nbsp;Revision&nbsp;when the&nbsp;revisionTemplate&nbsp;field changes. Route Configures how the traffic coming to the Service should be split between&nbsp;Revisions. This diagram explains the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[8921],"tags":[],"class_list":["post-41482","post","type-post","status-publish","format-standard","hentry","category-knative"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=41482"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41482\/revisions"}],"predecessor-version":[{"id":41485,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41482\/revisions\/41485"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=41482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=41482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=41482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}