Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-25T06:06:23.000Z (about 1 year ago)
- Last Synced: 2023-09-25T10:02:07.549Z (about 1 year ago)
- Language: Shell
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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[![Flux Build and Deploy](https://github.com/fredrkl/flux-kustomize-sample/actions/workflows/flux-build.yaml/badge.svg)](https://github.com/fredrkl/flux-kustomize-sample/actions/workflows/flux-build.yaml)