Skip to content

Commit

Permalink
feat(kube-nas): setup stakater/reloader
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Oct 15, 2023
1 parent ea0cf53 commit dc6cd17
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kubernetes/kube-nas/apps/kube-tools/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./reloader/flux-sync.yaml
7 changes: 7 additions & 0 deletions kubernetes/kube-nas/apps/kube-tools/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: kube-tools
labels:
kustomize.toolkit.fluxcd.io/prune: disabled
29 changes: 29 additions & 0 deletions kubernetes/kube-nas/apps/kube-tools/reloader/app/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: reloader
spec:
interval: 15m
chart:
spec:
chart: reloader
version: 1.0.43
sourceRef:
kind: HelmRepository
name: stakater-charts
namespace: flux-system
maxHistory: 15
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
fullnameOverride: reloader
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-tools
resources:
- helm-release.yaml
17 changes: 17 additions & 0 deletions kubernetes/kube-nas/apps/kube-tools/reloader/flux-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1beta2.json
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: apps-reloader
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
spec:
interval: 10m
path: ./kubernetes/kube-nas/apps/kube-tools/reloader/app
prune: true
sourceRef:
kind: GitRepository
name: home-ops
wait: true

0 comments on commit dc6cd17

Please sign in to comment.