Initial HomeK8s tree matching lab GitOps layout.
Storage and Gateway apply with kubectl -k until Forgejo+Flux.
This commit is contained in:
commit
f9189482e7
24 changed files with 454 additions and 0 deletions
16
clusters/home/apps.yaml
Normal file
16
clusters/home/apps.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: apps
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./apps/home
|
||||
prune: true
|
||||
dependsOn:
|
||||
- name: infrastructure
|
||||
10
clusters/home/flux-system/README.md
Normal file
10
clusters/home/flux-system/README.md
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Flux bootstrap — after Forgejo is up
|
||||
|
||||
```bash
|
||||
flux bootstrap git \
|
||||
--url=ssh://git@forgejo.siriusdevops.com:222/sirius/homek8s.git \
|
||||
--branch=master \
|
||||
--path=clusters/home
|
||||
```
|
||||
|
||||
That writes `gotk-components.yaml` and `gotk-sync.yaml` here. Do not hand-edit those files.
|
||||
14
clusters/home/infrastructure.yaml
Normal file
14
clusters/home/infrastructure.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infrastructure
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./infrastructure/home
|
||||
prune: true
|
||||
6
clusters/home/kustomization.yaml
Normal file
6
clusters/home/kustomization.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- apps.yaml
|
||||
- infrastructure.yaml
|
||||
- monitoring.yaml
|
||||
16
clusters/home/monitoring.yaml
Normal file
16
clusters/home/monitoring.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: monitoring
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./monitoring/controllers/home
|
||||
prune: true
|
||||
dependsOn:
|
||||
- name: infrastructure
|
||||
Loading…
Reference in a new issue