Go (Golang) and Kubernetes: From First Lines to Production
300 pages
English
PDF
4.5

Go (Golang) and Kubernetes: From First Lines to Production

Go (Golang) and Kubernetes: From First Lines to Production

Author:

Year:

Summary:

This book is your guide to the two most in-demand technologies in modern development: the Go language (Golang) and the Kubernetes container orchestration system. If you want not just to write code, but also to effectively deploy, scale, and manage your applications in production — this edition is for you.



What is the book about?

The book is built as an end-to-end practical project. You will start with the basics of Go: data types, goroutines, channels, interfaces, working with HTTP and databases. Then, step by step, you will create a full-fledged microservice, and afterwards — learn to package it into a Docker image, write Kubernetes manifests, configure Ingress, Service, ConfigMap, Secrets, and Horizontal Pod Autoscaler (HPA).



Special attention is given to:

  • Idiomatic Go and best practices for writing clean, concurrent code;
  • Designing microservice architecture and inter-service communication;
  • Working with the Kubernetes API from within a Go application (client-go);
  • CI/CD pipelines: building, testing, deploying to a cluster;
  • Monitoring and logging (Prometheus, Grafana, Loki);
  • Security: RBAC, Network Policies, working with secrets.


Who is this book for?

  • Go developers who want to learn Kubernetes for deploying their projects;
  • DevOps engineers looking to deepen their understanding of writing efficient cloud applications;
  • Full-stack developers striving for automation and infrastructure understanding;
  • Students and beginners familiar with programming basics who want to enter the world of cloud technologies.


What will the reader learn?

  • How to write Go with containerization requirements in mind (12-factor app, graceful shutdown);
  • How to create a Dockerfile and optimize images (multistage build, distroless);
  • How to deploy a local Kubernetes cluster (Minikube, Kind) and work with kubectl;
  • How to configure autoscaling, rolling updates, health checks, and self-healing;
  • How to use Helm for managing complex releases;
  • How to integrate a Go application with the Kubernetes API — create operators and controllers.


The book contains numerous code examples, checklists, and ready-to-use templates. All examples are tested on current versions of Go (1.21+) and Kubernetes (1.28+). You will get not just theory, but ready-made solutions that you can apply at work or in pet projects.



Why should you buy this book?

Go and Kubernetes are the perfect pair for building reliable, fast, and scalable systems. Mastering them together will make you the specialist that top IT companies are looking for. This book will save you months of searching through scattered information and provide a complete picture — from writing your first line of Go to a production cluster under load.

Recommendations