This repository serves as a source to clone the files necessary for the tutorial. It includes the essential files and directory structure to follow along with the tutorial steps. However, please note the following important points:
The KUBECONFIG
file, which is required for accessing your Kubernetes cluster, is not included in this repository. You will need to provide your own KUBECONFIG
file to connect to your cluster.
Bootstrapping Flux creates various manifest files in the manifests folder, which are crucial for managing the state of your Kubernetes cluster with Flux. Although the manifests folder and its contents are already present in this repository, the bootstrapping of the cluster still needs to be performed by you to generate any additional necessary files and complete the setup. With Flux installed, all the resources specified in the manifests folder will be created. You will only need to update the URLs in the git-repository.yaml and image-repository.yamlfiles.
To grant Flux access to your repository and your cluster, you need to create the ghcr-secret and git-secret secrets in your cluster. For detailed instructions, refer to theMetal Stack Cloud Developer Guides
This repository includes a sample CI.yaml
file which you can use to run your own CI pipeline. This pipeline packages the index.html
file as a Docker image and pushes it to GitHub Container Registry (GHCR), replacing the version with the current timestamp.
To get started with this repository, follow these steps:
-
Clone the repository:
git clone https://github.com/x-cellent/FluxDeveloperguide.git cd Fluxdeveloperguide
-
Add your KUBECONFIG file: Copy your
KUBECONFIG
file to the appropriate location or set the environment variable:export KUBECONFIG=/path/to/your/kubeconfig
-
Bootstrap Flux: Follow the Metal Stack Cloud Developer Guides to bootstrap Flux in your cluster. This will generate the necessary manifest files in the
manifests
folder:
For comprehensive instructions on setting up and using Flux for automatic deployment, please refer to the official Metal Stack Cloud Flux Deployment Guide.
For any issues or questions, feel free to open an issue in this repository.
Happy coding!
This project is licensed under the MIT License. See the LICENSE file for more details.