Operating and Troubleshooting Flux in a Kubernetes Cluster

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this lab the student is guided through several Kubernetes and Flux commands that may prove useful when operating and troubleshooting Flux in the subsequent labs in this 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 
--git-user=${GHUSER} 
--git-email=${GHUSER}@users.noreply.github.com 
--git-url=git@github.com:${GHUSER}/content-gitops 
--git-path=namespaces,production 
--namespace=flux

This output has also been placed in a file within the docs folder on the course repo, and is at this link:

https://github.com/linuxacademy/content-gitops/blob/master/docs/Flux_Install_Yaml.md
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

The students performing this GitOps course will require their own GitHub or GitLab account. This lab utilizes an aws Kubernetes Cluster that is instantiated by the lab interface. This lab is intended to follow the lab that shows the student how to install Flux in a 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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

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