0%

Achieve reliable release automation and get zero troublesome notifications on your release day.

Purchase of the print or Kindle book includes a free eBook in the PDF format.

Key Features

  • Develop the skills to build command-line tools to control thousands of nodes
  • Use Go to create Terraform providers and GitHub actions and extend Kubernetes
  • Gain the knowledge to build DevOps workflows that are understandable, scalable, and safe

Book Description

Go is the go-to language for DevOps libraries and services, and without it, achieving fast and safe automation is a challenge. With the help of Go for DevOps, you'll learn how to deliver services with ease and safety, becoming a better DevOps engineer in the process.

Some of the key things this book will teach you are how to write Go software to automate configuration management, update remote machines, author custom automation in GitHub Actions, and interact with Kubernetes. As you advance through the chapters, you'll explore how to automate the cloud using software development kits (SDKs), extend HashiCorp's Terraform and Packer using Go, develop your own DevOps services with gRPC and REST, design system agents, and build robust workflow systems.

By the end of this Go for DevOps book, you'll understand how to apply development principles to automate operations and provide operational insights using Go, which will allow you to react quickly to resolve system failures before your customers realize something has gone wrong.

What you will learn

  • Understand the basic structure of the Go language to begin your DevOps journey
  • Interact with filesystems to read or stream data
  • Communicate with remote services via REST and gRPC
  • Explore writing tools that can be used in the DevOps environment
  • Develop command-line operational software in Go
  • Work with popular frameworks to deploy production software
  • Create GitHub actions that streamline your CI/CD process
  • Write a ChatOps application with Slack to simplify production visibility

Who this book is for

This book is for Ops and DevOps engineers who would like to use Go to develop their own DevOps tooling or integrate custom features with DevOps tools such as Kubernetes, GitHub Actions, HashiCorp Packer, and Terraform. Experience with some type of programming language, but not necessarily Go, is necessary to get started with this book.

Table of Contents

  1. Go for DevOps
  2. Contributors
  3. About the authors
  4. About the reviewers
  5. Preface
  6. Section 1: Getting Up and Running with Go
  7. Chapter 1: Go Language Basics
  8. Chapter 2: Go Language Essentials
  9. Chapter 3: Setting Up Your Environment
  10. Chapter 4: Filesystem Interactions
  11. Chapter 5: Using Common Data Formats
  12. Chapter 6: Interacting with Remote Data Sources
  13. Chapter 7: Writing Command-Line Tooling
  14. Chapter 8: Automating Command-Line Tasks
  15. Section 2: Instrumenting, Observing, and Responding
  16. Chapter 9: Observability with OpenTelemetry
  17. Chapter 10: Automating Workflows with GitHub Actions
  18. Chapter 11: Using ChatOps to Increase Efficiency
  19. Section 3: Cloud ready Go
  20. Chapter 12: Creating Immutable Infrastructure Using Packer
  21. Chapter 13: Infrastructure as Code with Terraform
  22. Chapter 14: Deploying and Building Applications in Kubernetes
  23. Chapter 15: Programming the Cloud
  24. Chapter 16: Designing for Chaos
  25. Other Books You May Enjoy