Book Image

Serverless Architectures with Kubernetes

By : Onur Yılmaz, Sathsara Sarathchandra
Book Image

Serverless Architectures with Kubernetes

By: Onur Yılmaz, Sathsara Sarathchandra

Overview of this book

Kubernetes has established itself as the standard platform for container management, orchestration, and deployment. By learning Kubernetes, you’ll be able to design your own serverless architecture by implementing the function-as-a-service (FaaS) model. After an accelerated, hands-on overview of the serverless architecture and various Kubernetes concepts, you’ll cover a wide range of real-world development challenges faced by real-world developers, and explore various techniques to overcome them. You’ll learn how to create production-ready Kubernetes clusters and run serverless applications on them. You'll see how Kubernetes platforms and serverless frameworks such as Kubeless, Apache OpenWhisk and OpenFaaS provide the tooling to help you develop serverless applications on Kubernetes. You'll also learn ways to select the appropriate framework for your upcoming project. By the end of this book, you’ll have the skills and confidence to design your own serverless applications using the power and flexibility of Kubernetes.
Table of Contents (11 chapters)
2
2. Introduction to Serverless in the Cloud

8. Introduction to Apache OpenWhisk

Activity 8: Receive Daily Weather Updates via Email

Steps to create an OpenWeather and SendGrid account:

  1. Create an OpenWeather account at https://home.openweathermap.org/users/sign_up:
    Figure 8.72: Creating an OpenWeather account
  2. Once you have signed up to OpenWeather, an API key will be generated automatically for you. Go to the API keys tab (https://home.openweathermap.org/api_keys) and save the API key because this key is required to fetch the data from OpenWeather API:
    Figure 8.73: OpenWeather API key
  3. Test the OpenWeather API using https://api.openweathermap.org/data/2.5/weather?q=London&appid=<YOUR-API-KEY> in a web browser. Please note that you need to replace <YOUR-API-KEY> with your API Key from step 2:

    Note

    It may take a few minutes to get your API key activated. Wait for a few minutes and retry if you receive Invalid API key. Please see http://openweathermap.org/faq#error401 for more info. error while invoking...