From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Using Flux

Using Flux

- All right, let me show you what you can do with Flux. Here, on the slide we have the first, the first steps that I'm going to run. Okay, I'm going to start using flux bootstrap github --owner, sandervanvugt my Git username. You need your Git username here. - -repository is svvflux. Make sure you use a unique repository name because it's going to create it for you. - -branch is main and path is clusters my-cluster - -personal. Then it's prompting again for the GitHub personal access token. So let me copy the personal access token, which allows Flux to create everything that we need. Okay, next, let's set up the Git parameters. So gh auth login. Ah, we are already logged into GitHub. That's good. So no need to re-authenticate. And if we are already logged in, then it's also not really required to do the GitConfig parameters again. One thing that I'm going to do for Flux and that is exports GITHUB_USER is my username. So also make sure that you have sourced Flux Completion Batch. We've…

Contents