Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Edge Computing Systems with Kubernetes

You're reading from  Edge Computing Systems with Kubernetes

Product type Book
Published in Oct 2022
Publisher Packt
ISBN-13 9781800568594
Pages 458 pages
Edition 1st Edition
Languages
Author (1):
Sergio Méndez Sergio Méndez
Profile icon Sergio Méndez

Table of Contents (21) Chapters

Preface Part 1: Edge Computing Basics
Chapter 1: Edge Computing with Kubernetes Chapter 2: K3s Installation and Configuration Chapter 3: K3s Advanced Configurations and Management Chapter 4: k3OS Installation and Configurations Chapter 5: K3s Homelab for Edge Computing Experiments Part 2: Cloud Native Applications at the Edge
Chapter 6: Exposing Your Applications Using Ingress Controllers and Certificates Chapter 7: GitOps with Flux for Edge Applications Chapter 8: Observability and Traffic Splitting Using Linkerd Chapter 9: Edge Serverless and Event-Driven Architectures with Knative and Cloud Events Chapter 10: SQL and NoSQL Databases at the Edge Part 3: Edge Computing Use Cases in Practice
Chapter 11: Monitoring the Edge with Prometheus and Grafana Chapter 12: Communicating with Edge Devices across Long Distances Using LoRa Chapter 13: Geolocalization Applications Using GPS, NoSQL, and K3s Clusters Chapter 14: Computer Vision with Python and K3s Clusters Chapter 15: Designing Your Own Edge Computing System Index Other Books You May Enjoy

Visualizing data from ESP32 microcontrollers using MySQL and Grafana

Now, let’s finish off our implementation of a real-time temperature and humidity system. For this, we are going to use Grafana to create our reports and MySQL as our source of data to feed the reports. You can deploy this software in Kubernetes in the cloud or a private cloud using a network that can be accessed by your edge clusters. In this section, we are assuming that we are using Kubernetes in the cloud. To start creating our reports, follow these steps:

  1. Create the necessary namespace monitoring:
    $ cat <<EOF | kubectl apply -f -
    apiVersion: v1
    kind: Namespace
    metadata:
      creationTimestamp: null
      name: monitoring
    spec: {}
    status: {}
    EOF
  2. Create a ConfigMap to create a default data source that contains our MySQL connection:
    $ cat <<EOF | kubectl apply -f -
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: grafana-datasources
      namespace: monitoring...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}