Book Image

Go for DevOps

By : John Doak, David Justice
5 (1)
Book Image

Go for DevOps

5 (1)
By: John Doak, David Justice

Overview of this book

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.
Table of Contents (22 chapters)
1
Section 1: Getting Up and Running with Go
10
Section 2: Instrumenting, Observing, and Responding
14
Section 3: Cloud ready Go

What this book covers

Chapter 1, Go Language Basics, introduces the basics of the Go language.

Chapter 2, Go Language Essentials, covers essential features of the Go language.

Chapter 3, Setting Up Your Environment, explains setting up the Go environment.

Chapter 4, Filesystem Interactions, explores using Go to interact with the local filesystem.

Chapter 5, Using Common Data Formats, looks at using Go to read and write common file formats.

Chapter 6, Interacting with Remote Data Sources, explores using Go to interact with gRPC and REST services.

Chapter 7, Writing Command-Line Tools, shows how to write command-line tools in Go.

Chapter 8, Automating Command-Line Tasks, addresses leveraging Go's exec and SSH packages to automate work.

Chapter 9, Observability with OpenTelemetry, looks at using OpenTelemetry with Go for better instrumentation and alerting.

Chapter 10, Automating Workflows with GitHub Actions, shows how to use GitHub for continuous integration, release automation, and custom actions using Go.

Chapter 11, Using ChatOps to Increase Efficiency, covers how to write ChatOps services using Go to provide operational insights and manage incidents effectively.

Chapter 12, Creating Immutable Infrastructure Using Packer, explains customizing HashiCorp's Packer to automate virtual machine image creation on AWS.

Chapter 13, Infrastructure as Code with Terraform, shows how to define your own custom Terraform provider.

Chapter 14, Deploying and Building Applications in Kubernetes, looks at how to program and extend the Kubernetes APIs.

Chapter 15, Programming the Cloud, explains using Go to provision and interact with cloud resources.

Chapter 16, Designing for Chaos, discusses using rate limiters, centralized workflow engines, and policies to reduce blast radiuses.