https://github.com/fredrkl/flux-kustomize-sample
Trying out flux build with its Kustomize in GH actions
https://github.com/fredrkl/flux-kustomize-sample
Last synced: 5 months ago
JSON representation
Trying out flux build with its Kustomize in GH actions
- Host: GitHub
- URL: https://github.com/fredrkl/flux-kustomize-sample
- Owner: fredrkl
- License: apache-2.0
- Created: 2023-09-21T16:46:09.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T04:28:13.000Z (9 months ago)
- Last Synced: 2025-02-15T06:54:54.459Z (5 months ago)
- Language: Shell
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Flux kustomize sample
Flux v2 uses the Kustomize controller to apply YAML files from different sources. The _Kustomize controller_ watches for `kustomize.toolkit.fluxcd.io` resources and applies the manifests that are generated by the _flux kustomize build_ process.
# Testing apply kustomize build
# Create a cluster
To create a cluster, run the following command:```bash
kind create cluster --name flux-build-demo
```## Get the kubeconfig
```bash
kind get kubeconfig --name flux-build-demo > ~/.kube/config
```## Test applying
```bash
flux build kustomization demo-kustomization --dry-run --path ./demo --kustomization-file ./demo/flux-kustomization.yaml
```!!! warning Failed flux build in K8s
A failed flux kustomize build in K8s will not apply any of the resources. If you are installing `CRDs` as part of a Helm chart, and using the `CRDs` in the same `Flux kustomize build` then you will need to apply the `CRDs` first.## Gotchas
If you are using Apple M1 and want to use ´kind´, please follow the instructions on: .
## Builds[](https://github.com/fredrkl/flux-kustomize-sample/actions/workflows/flux-build.yaml)