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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Kubernetes on Windows

You're reading from   Hands-On Kubernetes on Windows Effectively orchestrate Windows container workloads using Kubernetes

Arrow left icon
Product type Paperback
Published in Mar 2020
Publisher Packt
ISBN-13 9781838821562
Length 592 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Piotr Tylenda Piotr Tylenda
Author Profile Icon Piotr Tylenda
Piotr Tylenda
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Section 1: Creating and Working with Containers
2. Creating Containers FREE CHAPTER 3. Managing State in Containers 4. Working with Container Images 5. Section 2: Understanding Kubernetes Fundamentals
6. Kubernetes Concepts and Windows Support 7. Kubernetes Networking 8. Interacting with Kubernetes Clusters 9. Section 3: Creating Windows Kubernetes Clusters
10. Deploying a Hybrid On-Premises Kubernetes Cluster 11. Deploying a Hybrid Azure Kubernetes Service Engine Cluster 12. Section 4: Orchestrating Windows Containers Using Kubernetes
13. Deploying Your First Application 14. Deploying Microsoft SQL Server 2019 and a ASP.NET MVC Application 15. Configuring Applications to Use Kubernetes Features 16. Development Workflow with Kubernetes 17. Securing Kubernetes Clusters and Applications 18. Monitoring Kubernetes Applications Using Prometheus 19. Disaster Recovery 20. Production Considerations for Running Kubernetes 21. Assessments 22. Other Books You May Enjoy

Automating backup

In this section, we will demonstrate how to automate the backup procedure for an etcd cluster using Kubernetes CronJob. For this, we will need a Dockerfile that has etcdctl and Azure CLI installed for the image in order to create the snapshot and upload it to a selected Azure blob container—exactly as we demonstrated in manual steps. All the configuration and service principal secrets will be injected using environment variables that can be set using Kubernetes secret.

To create the Docker image for the etcd snapshot worker, go through the following steps:

  1. Use a Linux machine or switch to the Linux containers in Docker Desktop for Windows.
  2. Open a new PowerShell window.
  3. Create a new directory for your source code and navigate there.
  4. Create a Dockerfile file with the following contents:
FROM ubuntu:18.04

ARG ETCD_VERSION="v3.3.15"

WORKDIR /temp...
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