Book description
Enterprise developers face several challenges when it comes to building serverless applications, such as integrating applications and building container images from source. With more than 60 practical recipes, this cookbook helps you solve these issues with Knative—the first serverless platform natively designed for Kubernetes. Each recipe contains detailed examples and exercises, along with a discussion of how and why it works.
If you have a good understanding of serverless computing and Kubernetes core resources such as deployment, services, routes, and replicas, the recipes in this cookbook show you how to apply Knative in real enterprise application development. Authors Kamesh Sampath and Burr Sutter include chapters on autoscaling, build and eventing, observability, Knative on OpenShift, and more.
With this cookbook, you’ll learn how to:
- Efficiently build, deploy, and manage modern serverless workloads
- Apply Knative in real enterprise scenarios, including advanced eventing
- Monitor your Knative serverless applications effectively
- Integrate Knative with CI/CD principles, such as using pipelines for faster, more successful production deployments
- Deploy a rich ecosystem of enterprise integration patterns and connectors in Apache Camel K as Kubernetes and Knative components
Publisher resources
Table of contents
- Preface
-
1. Getting Started with Knative
- 1.1. Installing the Required Tools
- 1.2. Setting Up a Kubernetes Cluster
- 1.3. Installing the Internal Kubernetes Container Registry
- 1.4. Configuring Container Registry Aliases
- 1.5. Installing Istio
- 1.6. Installing Knative
- 1.7. Verifying the Container Environment
- Creating Kubernetes Namespaces for This Book’s Recipes
- Querying Kubernetes Resources
- 2. Understanding Knative Serving
- 3. Autoscaling Knative Services
-
4. Knative Eventing
- Usage Patterns
- 4.1. Producing Events with Eventing Sources
- 4.2. Receiving Events with Knative Eventing Sinks
- 4.3. Deploying a Knative Eventing Service
- 4.4. Connecting a Source to the Service
- 4.5. Deploying an Apache Kafka Cluster
- 4.6. Sourcing Apache Kafka Events with Knative Eventing
- 4.7. Autoscaling with Apache Kafka and Knative Eventing
- 4.8. Using a Kafka Channel as the Default Knative Channel
- 4.9. Using Knative Channels and Subscriptions
- 4.10. Using Knative Eventing Brokers and Triggers
-
5. Observability
- 5.1. Deploying Prometheus and Grafana
- 5.2. Enable Prometheus for Metrics Collection
- 5.3. Installing Jaeger
- 5.4. Deploying Observable Test Services
- 5.5. Customizing the kubectl Output Columns
- 5.6. Restricting Knative Service Visibility
- Grafana Dashboards
- 5.7. Monitoring Autoscaling Metrics of a Knative Service
- 5.8. Monitoring HTTP Performance Metrics of a Knative Service
- 5.9. Tracing Knative Services with Jaeger
-
6. Serverless Integration Patterns Using Apache Camel-K
- 6.1. Installing Camel-K
- 6.2. Configuring Camel-K to Build Faster
- 6.3. Writing a Camel-K Integration
- 6.4. Running Camel-K Integrations as Knative Serverless Services
- 6.5. Using Knative Eventing with Camel-K
- 6.6. Logging and Displaying CloudEvents Messages
- 6.7. Wiring a CamelSource to a Knative Eventing Sink
- 6.8. Applying Enterprise Integration Patterns with Camel-K
- 6.9. Deploying a Data Producer
- 6.10. Deploying a Data Processor
- 6.11. Deploying an Event Subscriber
- 6.12. Filtering Data with Knative Eventing
- 7. Knative on OpenShift
- Index
Product information
- Title: Knative Cookbook
- Author(s):
- Release date: April 2020
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492061199
You might also like
book
Quarkus Cookbook
Optimized for Kubernetes, Quarkus is designed to help you create Java applications that are cloud first, …
book
Kubernetes Cookbook
Kubernetes is becoming the de-facto standard for container orchestration and distributed applications management across a microservices …
book
Kubernetes Cookbook, 2nd Edition
Learn how to automate and manage your containers and reduce the overall operation burden on your …
book
GitOps Cookbook
Why are so many companies adopting GitOps for their DevOps and cloud native strategy? This reliable …