Skip to content

Commit

Permalink
feat(home): add hajimari
Browse files Browse the repository at this point in the history
  • Loading branch information
ddhanak committed Oct 28, 2023
1 parent 6ffa747 commit cf5f4ad
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 0 deletions.
83 changes: 83 additions & 0 deletions kubernetes/apps/home/hajimari/app/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: hajimari
namespace: home
spec:
interval: 30m
chart:
spec:
chart: hajimari
version: 2.0.2
sourceRef:
kind: HelmRepository
name: hajimari-charts
namespace: flux-system
maxHistory: 2
install:
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
retries: 3
uninstall:
keepHistory: false
values:
env:
TZ: ${TIMEZONE}
hajimari:
title: Apps
lightTheme: cloud
darkTheme: espresso
alwaysTargetBlank: true
showGreeting: false
showAppGroups: false
showAppStatus: false
showBookmarkGroups: false
showGlobalBookmarks: false
showAppUrls: true
defaultEnable: true
namespaceSelector:
matchNames:
- default
- flux-system
- home
- kube-system
- monitoring
- networking
ingress:
main:
enabled: true
ingressClassName: internal
annotations:
hajimari.io/enable: "false"
hosts:
- host: &host ${SECRET_DOMAIN}
paths:
- path: /
pathType: Prefix
- host: &host2 www.${SECRET_DOMAIN}
paths:
- path: /
pathType: Prefix
- host: &host3 apps.${SECRET_DOMAIN}
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- *host
- *host2
- *host3
podAnnotations:
configmap.reloader.stakater.com/reload: hajimari-settings
persistence:
data:
enabled: true
type: emptyDir
resources:
requests:
cpu: 100m
memory: 128M
6 changes: 6 additions & 0 deletions kubernetes/apps/home/hajimari/app/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: home
resources:
- ./helmrelease.yaml
16 changes: 16 additions & 0 deletions kubernetes/apps/home/hajimari/ks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-hajimari
namespace: flux-system
spec:
path: ./kubernetes/apps/home/hajimari/app
prune: true
sourceRef:
kind: GitRepository
name: k8s-gitops
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m
6 changes: 6 additions & 0 deletions kubernetes/apps/home/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./namespace.yaml
- ./hajimari/ks.yaml
7 changes: 7 additions & 0 deletions kubernetes/apps/home/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: home
labels:
kustomize.toolkit.fluxcd.io/prune: disabled

0 comments on commit cf5f4ad

Please sign in to comment.