Operating and Troubleshooting Flux in a Kubernetes Cluster

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, you will learn about several Kubernetes and Flux commands that may prove useful when operating and troubleshooting Flux in other labs in the _Hands-On GitOps_ course.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Analyze the YAML Used to Install Flux

To output the YAML that is applied by kubectl, simply use the same command, and either display it or route it to a file instead of piping it to kubectl.

$ fluxctl install 

This output has also been placed in a file that can be accessed within the docs folder on the course repo.

Display the Log Produced by the fluxd Daemon

To display the log produced by the fluxd daemon running as a Deployment in your cluster, enter the command:

$ kubectl -n flux logs deployment/flux

This assumes you have deployed flux to the flux namespace.

Display Details about the flux Pod Running

To display details about the Pod deployed in your cluster, first obtain the unique Pod name with the following command:

$ kubectl -n flux get pods

Then, copy the unique Pod name to your clipboard and input:

$ kubectl -n flux describe pod [your flux pod name here]

Example command with sample Pod name:

kubectl -n flux describe pod flux-c97899756-wsfhb

Additional Resources

You will need a GitHub or GitLab account to complete the labs in this course. This lab utilizes an AWS Kubernetes cluster that is instantiated by the lab interface.

This lab follows a previous lab on how to install Flux in a Kubernetes cluster. See the Installing and Configuring Flux with GitHub or Installing and Configuring Flux with GitLab lab from the Hands-On GitOps course for information on how to install and set up Flux in your Kubernetes cluster.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?