Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Effortless Cloud-Native App Development Using Skaffold

You're reading from   Effortless Cloud-Native App Development Using Skaffold Simplify the development and deployment of cloud-native Spring Boot applications on Kubernetes with Skaffold

Arrow left icon
Product type Paperback
Published in Oct 2021
Publisher Packt
ISBN-13 9781801077118
Length 272 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Ashish Choudhary Ashish Choudhary
Author Profile Icon Ashish Choudhary
Ashish Choudhary
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: The Kubernetes Nightmare – Skaffold to the Rescue
2. Chapter 1: Code, Build, Test, and Repeat – The Application Development Inner Loop FREE CHAPTER 3. Chapter 2: Developing Cloud-Native Applications with Kubernetes – A Developer's Nightmare 4. Chapter 3: Skaffold — Easy-Peasy Cloud-Native Kubernetes Application Development 5. Section 2: Getting Started with Skaffold
6. Chapter 4: Understanding Skaffold's Features and Architecture 7. Chapter 5: Installing Skaffold and Demystifying Its Pipeline Stages 8. Chapter 6: Working with Skaffold Container Image Builders and Deployers 9. Section 3: Building and Deploying Cloud-Native Spring Boot Applications with Skaffold
10. Chapter 7: Building and Deploying a Spring Boot Application with the Cloud Code Plugin 11. Chapter 8: Deploying a Spring Boot Application to the Google Kubernetes Engine Using Skaffold 12. Chapter 9: Creating a Production-Ready CI/CD Pipeline with Skaffold 13. Chapter 10: Exploring Skaffold Alternatives, Best Practices, and Pitfalls 14. Other Books You May Enjoy

Understanding the Skaffold workflow

Typically, Skaffold works in two modes, namely, continuous development or an end-to-end pipeline through commands such as skaffold dev and skaffold run. For example, when you run the skaffold dev command, the following steps are carried out by Skaffold:

  1. Receive and watch your source code for changes.
  2. Copy the changed files straight to build if the user marks them as eligible for copying.
  3. Build your artifacts from the source code.
  4. Test your built artifacts using container-structure-tests or custom scripts.
  5. Tag your artifacts.
  6. Push your artifacts (only if the Kubernetes context is set to a remote cluster).
  7. Update the Kubernetes manifests with the correct tags.
  8. Deploy your artifacts.
  9. Monitor the deployed artifacts with built-in health checks.
  10. Stream logs from the running pods.
  11. Clean up any deployed artifacts on exit by pressing Ctrl + C.

    In the case of the skaffold run command, the workflow is relatively...

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 $19.99/month. Cancel anytime
Banner background image