ENGLISH

GitOps and Kubernetes: Continuous Deployment with Argo CD, Jenkins X, and Flux

Book information

Publisher
Manning Publications
Year
2021
ISBN
1617297275, 9781617297977
Language
english
Format
PDF
Filesize
13 MB (13250707 bytes)
Edition
1
Pages
344\346
Time added
2021-02-27 10:34:34

Description

GitOps and Kubernetes introduces a radical idea—managing your infrastructure with the same Git pull requests you use to manage your codebase. In this in-depth tutorial, you’ll learn to operate infrastructures based on powerful-but-complex technologies such as Kubernetes with the same Git version control tools most developers use daily. With these GitOps techniques and best practices, you’ll accelerate application development without compromising on security, easily roll back infrastructure changes, and seamlessly introduce new team members to your automation process. About the Technology With GitOps you use the Git version control system to organize and manage your infrastructure just like any other codebase. It’s an excellent model for applications deployed as containers and pods on Kubernetes. About the book GitOps and Kubernetes teaches you how to use Git and the GitOps methodology to manage a Kubernetes cluster. The book interleaves theory with practice, presenting core Ops concepts alongside easy-to-implement techniques so you can put GitOps into action. Learn to develop pipelines that trace changes, roll back mistakes, and audit container deployment. What's inside • Managing secrets the GitOps way • Controlling access with Git, Kubernetes, and Pipeline • Branching, namespaces, and configuration About the reader For developers and operations engineers familiar with continuous delivery, Git, and Kubernetes. About the authors Billy Yuen, Alexander Matyushentsev, Todd Ekenstam, and Jesse Suen are principal engineers at Intuit. They are widely recognized for their work in GitOps for Kubernetes. GitOps and Kubernetes contents preface acknowledgments about this book Who this book is for Who this book is not for How this book is organized: A roadmap About the code liveBook discussion forum about the authors about the cover illustration Part 1 Background 1 Why GitOps? 1.1 Evolution to GitOps 1.1.1 Traditional Ops 1.1.2 DevOps 1.1.3 GitOps 1.2 Developer benefits of GitOps 1.2.1 Infrastructure as code 1.2.2 Self-service 1.2.3 Code reviews 1.2.4 Git pull requests 1.3 Operational benefits of GitOps 1.3.1 Declarative 1.3.2 Observability 1.3.3 Auditability and compliance 1.3.4 Disaster recovery Summary 2 Kubernetes and GitOps 2.1 Kubernetes introduction 2.1.1 What is Kubernetes? 2.1.2 Other container orchestrators 2.1.3 Kubernetes architecture 2.1.4 Deploying to Kubernetes 2.2 Declarative vs. imperative object management 2.2.1 How declarative configuration works 2.3 Controller architecture 2.3.1 Controller delegation 2.3.2 Controller pattern 2.3.3 NGINX operator 2.4 Kubernetes + GitOps 2.5 Getting started with CI/CD 2.5.1 Basic GitOps operator 2.5.2 Continuous integration pipeline Summary Part 2 Patterns and processes 3 Environment management 3.1 Introduction to environment management 3.1.1 Components of an environment 3.1.2 Namespace management 3.1.3 Network isolation 3.1.4 Preprod and prod clusters 3.2 Git strategies 3.2.1 Single branch (multiple directories) 3.2.2 Multiple branches 3.2.3 Multirepo vs. monorepo 3.3 Configuration management 3.3.1 Helm 3.3.2 Kustomize 3.3.3 Jsonnet 3.3.4 Configuration management summary 3.4 Durable vs. ephemeral environments Summary 4 Pipelines 4.1 Stages in CI/CD pipelines 4.1.1 GitOps continuous integration 4.1.2 GitOps continuous delivery 4.2 Driving promotions 4.2.1 Code vs. manifest vs. app config 4.2.2 Code and image promotion 4.2.3 Environment promotion 4.2.4 Putting it all together 4.3 Other pipelines 4.3.1 Rollback 4.3.2 Compliance pipeline Summary 5 Deployment strategies 5.1 Deployment basics 5.1.1 Why ReplicaSet is not a good fit for GitOps 5.1.2 How Deployment works with ReplicaSets 5.1.3 Traffic routing 5.1.4 Configuring minikube for other strategies 5.2 Blue-green 5.2.1 Blue-green with Deployment 5.2.2 Blue-green with Argo Rollouts 5.3 Canary 5.3.1 Canary with Deployment 5.3.2 Canary with Argo Rollouts 5.4 Progressive delivery 5.4.1 Progressive delivery with Argo Rollouts Summary 6 Access control and security 6.1 Introduction to access control 6.1.1 What is access control? 6.1.2 What to secure 6.1.3 Access control in GitOps 6.2 Access limitations 6.2.1 Git repository access 6.2.2 Kubernetes RBAC 6.2.3 Image registry access 6.3 Patterns 6.3.1 Full access 6.3.2 Deployment repo access 6.3.3 Code access only 6.4 Security concerns 6.4.1 Preventing image pull from untrusted registries 6.4.2 Cluster-level resources in a Git repository Summary 7 Secrets 7.1 Kubernetes Secrets 7.1.1 Why use Secrets? 7.1.2 How to use Secrets 7.2 GitOps and Secrets 7.2.1 No encryption 7.2.2 Distributed Git repos 7.2.3 No granular (file-level) access control 7.2.4 Insecure storage 7.2.5 Full commit history 7.3 Secrets management strategies 7.3.1 Storing Secrets in Git 7.3.2 Baking Secrets into the container image 7.3.3 Out-of-band management 7.3.4 External Secrets management systems 7.3.5 Encrypting Secrets in Git 7.3.6 Comparison of strategies 7.4 Tooling 7.4.1 HashiCorp Vault 7.4.2 Vault Agent Sidecar Injector 7.4.3 Sealed Secrets 7.4.4 Kustomize Secret generator plugin Summary 8 Observability 8.1 What is observability? 8.1.1 Event logging 8.1.2 Metrics 8.1.3 Tracing 8.1.4 Visualization 8.1.5 Importance of observability in GitOps 8.2 Application health 8.2.1 Resource status 8.2.2 Readiness and liveness 8.2.3 Application monitoring and alerting 8.3 GitOps observability 8.3.1 GitOps metrics 8.3.2 Application sync status 8.3.3 Configuration drift 8.3.4 GitOps change log Summary Part 3 Tools 9 Argo CD 9.1 What is Argo CD? 9.1.1 Main use cases 9.1.2 Core concepts 9.1.3 Sync and health statuses 9.1.4 Architecture 9.2 Deploy your first application 9.2.1 Deploying the first application 9.2.2 Inspect the application using the user interface 9.3 Deep dive into Argo CD features 9.3.1 GitOps-driven deployment 9.3.2 Resource hooks 9.3.3 Postdeployment verification 9.4 Enterprise features 9.4.1 Single sign-on 9.4.2 Access control 9.4.3 Declarative management Summary 10 Jenkins X 10.1 What is Jenkins X? 10.2 Exploring Prow, Jenkins X pipeline operator, and Tekton 10.3 Importing projects into Jenkins X 10.3.1 Importing a project 10.3.2 Promoting a release to the production environment Summary 11 Flux 11.1 What is Flux? 11.1.1 What Flux does 11.1.2 Docker registry scanning 11.1.3 Architecture 11.2 Simple application deployment 11.2.1 Deploying the first application 11.2.2 Observing application state 11.2.3 Upgrading the deployment image 11.2.4 Using Kustomize for manifest generation 11.2.5 Securing deployment using GPG 11.3 Multitenancy with Flux Summary appendix A Setting up a test Kubernetes cluster A.1 Prerequisites for working with Kubernetes A.1.1 Configure kubectl A.2 Installing minikube and creating a cluster A.2.1 Configuring minikube A.3 Creating a GKE cluster in GCP A.4 Creating an EKS cluster in AWS appendix B Setting up GitOps tools B.1 Installing Argo CD B.2 Installing Jenkins X B.2.1 Prerequisites B.2.2 Installing Jenkins X in a Kubernetes cluster B.3 Installing Flux B.3.1 Installing CLI client appendix C Configuring GPG key index Symbols A B C D E F G H I J K L M N O P Q R S T U V W GitOps and Kubernetes - back

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

2008 · PDF