Objectives
Upon completion of the class, participants will learn:
• The benefits of GitOps
• How to set up Flux in a Kubernetes cluster
• How to deploy an application using Flux
• How to protect secure data using Apache SOPS
Audience
DevOps Administrators and Software Developers
Prerequisites
Prior knowledge of deploying applications to Kubernetes.
Duration
One day
Outline for GitOps Using Flux Training
Chapter 1 - Introduction to GitOps
- What is GitOps?
- Benefits of GitOps
- Common GitOps Tools
- A Typical GitOps Workflow
- Summary
Chapter 2 - Introduction to Flux
- What is Flux?
- Key Components of Flux
- Installing Flux
- Bootstrapping Flux
- Bootstrap Switches
- A Review of the Components
- Manifest Files Created by Bootstrap
- Summary
Chapter 3 - Deploy Application Using Flux
- Create Deployment Manifest Files
- Create the kustomization File
- Create a Source for the Application
- Specify the Location of the Kustomization File
- Deploying the Application
- Troubleshooting Deployment
- Summary
Chapter 4 - Encrypt Secrets Using SOPS
- K8s Secrets
- Defining a Secret
- Using the Secrets from an Application
- Secrets and GitOps
- The Basic Workflow
- Summary
Lab Exercises
Lab 1. Prepare for Deploying an Application to Kubernetes
Lab 2. Deploy an Application
Lab 3. In a Traditional Way
Lab 4. Deploy an Application Using Flux
Lab 5. Deploy Secrets
Lab 6. Unencrypted
Lab 7. Using Flux
Lab 8. Encrypt Secrets Using SOPS
Lab 9. Removing a Deployment