Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
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 1. Part 1: Edge Computing Basics
2. Chapter 1: Edge Computing with Kubernetes 3. Chapter 2: K3s Installation and Configuration 4. Chapter 3: K3s Advanced Configurations and Management 5. Chapter 4: k3OS Installation and Configurations 6. Chapter 5: K3s Homelab for Edge Computing Experiments 7. Part 2: Cloud Native Applications at the Edge
8. Chapter 6: Exposing Your Applications Using Ingress Controllers and Certificates 9. Chapter 7: GitOps with Flux for Edge Applications 10. Chapter 8: Observability and Traffic Splitting Using Linkerd 11. Chapter 9: Edge Serverless and Event-Driven Architectures with Knative and Cloud Events 12. Chapter 10: SQL and NoSQL Databases at the Edge 13. Part 3: Edge Computing Use Cases in Practice
14. Chapter 11: Monitoring the Edge with Prometheus and Grafana 15. Chapter 12: Communicating with Edge Devices across Long Distances Using LoRa 16. Chapter 13: Geolocalization Applications Using GPS, NoSQL, and K3s Clusters 17. Chapter 14: Computer Vision with Python and K3s Clusters 18. Chapter 15: Designing Your Own Edge Computing System 19. Index 20. Other Books You May Enjoy

Advanced configurations

Now it's time to explore more advanced configurations that you can use to configure your K3s cluster on the edge.

Using external MySQL storage for K3s

K3s supports MySQL and SQLite, instead of etcd as a data storage for your K3s cluster information. You can install MySQL in another node, a cloud instance, or a managed service on the cloud such as AWS Aurora or Google CloudSQL. For example, let's attempt it with a cloud instance using Digital Ocean. However, you can do it on any cloud that you wish. So, let's get started with the following steps:

  1. Log in to your cloud instance:

    $ ssh root@IP_DATASTORE
  2. Install Docker with the following commands:

    $ apt-get update
    $ apt-get install docker.io -y
    $ docker run -d --name mysql -e MYSQL_ROOT_PASSWORD=k3s123- \
    -e MYSQL_DATABASE="k8s" -e MYSQL_USER="k3sadm" \
    -e MYSQL_PASSWORD="k3s456-" \
    -p 3306:3306 \
    -v /opt/mysql:/var/lib/mysql \
    mysql:5.7
  3. Log out using the following command...

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}