Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stuttgart-things/flux

flux infra & app kustomizations
https://github.com/stuttgart-things/flux

apps cluster flux gitops infra k8s kubernetes-operator microservice

Last synced: about 13 hours ago
JSON representation

flux infra & app kustomizations

Awesome Lists containing this project

README

        

# stuttgart-things/flux

flux infra & app kustomizations

## FLUX BOOSTRAP

GITHUB SCM + FLUX CLI

```bash
# BOOTSTRAP GITHUB
export KUBECONFIG=
export GITHUB_TOKEN=

flux bootstrap github \
--owner=stuttgart-things \
--repository=stuttgart-things \
--path=clusters/dev-cluster
```

## ADD GITREPOSITORY

FLUX APPS REPO (KUBECTL)

```bash
kubectl apply -f - <

## ADD KUSTOMIZATIONS

ADD w/ KUBECTL (TESTING)

```bash
kubectl apply -f - <

ADD w/ GIT

* Create (single or --- seperated) yaml-files on cluster Folder (e.g. clusters/dev-cluster)
* Examples:

```yaml
# cat clusters/dev-cluster/app-repo.yaml
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: flux-apps
namespace: flux-system
spec:
interval: 1m0s
ref:
tag: v1.0.0
url: https://github.com/stuttgart-things/flux.git
```

```yaml
# cat clusters/dev-cluster/apps.yaml
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: tekton
namespace: flux-system
spec:
interval: 1h
retryInterval: 1m
timeout: 5m
sourceRef:
kind: GitRepository
name: flux-apps
path: ./apps/tekton
prune: true
wait: true
postBuild:
substitute:
TEKTON_NAMESPACE: tekton-pipelines
TEKTON_PIPELINE_NAMESPACE: tektoncd
TEKTON_VERSION: v0.60.4
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: crossplane
namespace: flux-system
#.....
```

## LICENSE

APACHE 2.0

Copyright 2023 patrick hermann.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Author Information
------------------
Patrick Hermann, stuttgart-things 11/2024