Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Operating and Troubleshooting Flux in a Kubernetes Cluster

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.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 20, 2025
Duration
45m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    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 
    --git-user=${GHUSER} 
    --git-email=${GHUSER}@users.noreply.github.com 
    [email protected]:${GHUSER}/content-gitops 
    --git-path=namespaces,production 
    --namespace=flux
    

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

    Pipe the output to kubectl command with apply -f:

    fluxctl install 
    --git-user=${GHUSER} 
    --git-email=${GHUSER}@users.noreply.github.com 
    [email protected]:${GHUSER}/content-gitops 
    --git-path=namespaces,production 
    --namespace=flux | kubectl apply -f -
    
  2. Challenge

    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.

  3. Challenge

    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
    
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight