Skip to content

Commit

Permalink
feat: add homepage app
Browse files Browse the repository at this point in the history
  • Loading branch information
M0NsTeRRR committed Nov 4, 2024
1 parent 8febd2a commit 416810f
Show file tree
Hide file tree
Showing 12 changed files with 187 additions and 146 deletions.
4 changes: 4 additions & 0 deletions argocd/apps/as212510-net/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt
gethomepage.dev/enabled: "true"
gethomepage.dev/group: ASN
gethomepage.dev/name: AS212510.net website
gethomepage.dev/description: AS212510.net website
hosts:
- host: &host as212510.net
paths:
Expand Down
17 changes: 17 additions & 0 deletions argocd/apps/homepage/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: &namespace homepage

resources:
- manifests/01_configmap.yaml

helmCharts:
- name: homepage
releaseName: homepage
namespace: *namespace
repo: https://helm-charts.adminafk.fr
version: 0.1.0
valuesFile: values.yaml
75 changes: 75 additions & 0 deletions argocd/apps/homepage/manifests/01_configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: homepage
data:
TZ: "Europe/Paris"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: homepage-configs
data:
settings.yaml: |-
title: Unicornafk Dashboard
theme: dark
language: en
headerStyle: clean
hideVersion: true
statusStyle: dot
layout:
Infrastructure:
style: row
columns: 4
icon: mdi-server
ASN:
style: row
columns: 4
icon: mdi-mixcloud
Media:
style: row
columns: 4
icon: mdi-movie
Home:
style: row
columns: 4
icon: mdi-home
Other:
style: row
columns: 4
icon: mdi-linux
bookmarks.yaml: |-
---
services.yaml: |-
---
- Infrastructure:
- Server1:
href: https://server1.unicornafk.fr:8006
icon: proxmox.png
description: Proxmox
- Server2:
href: https://server2.unicornafk.fr:8006
icon: proxmox.png
description: Proxmox
- Server3:
href: https://server3.unicornafk.fr:8006
icon: proxmox.png
description: Proxmox
- NAS:
href: https://nas.unicornafk.fr
icon: truenas.png
description: Truenas
- Home:
- HomeAssistant:
href: https://home-assistant.unicornafk.fr
icon: home-assistant.png
description: Home Assistant
widgets.yaml: |-
---
kubernetes.yaml: |-
mode: cluster
docker.yaml: |-
---
custom.css: ""
custom.js: ""
62 changes: 62 additions & 0 deletions argocd/apps/homepage/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
podAnnotations:
reloader.stakater.com/auto: "true"

extraEnvFrom:
- configMapRef:
name: homepage

volumes:
- name: &volume-config homepage-configs
configMap:
name: homepage-configs
volumeMounts:
- name: *volume-config
mountPath: /app/config/settings.yaml
subPath: settings.yaml
readOnly: true
- name: *volume-config
mountPath: /app/config/bookmarks.yaml
subPath: bookmarks.yaml
readOnly: true
- name: *volume-config
mountPath: /app/config/services.yaml
subPath: services.yaml
readOnly: true
- name: *volume-config
mountPath: /app/config/widgets.yaml
subPath: widgets.yaml
readOnly: true
- name: *volume-config
mountPath: /app/config/kubernetes.yaml
subPath: kubernetes.yaml
readOnly: true
- name: *volume-config
mountPath: /app/config/docker.yaml
subPath: docker.yaml
readOnly: true
- name: *volume-config
mountPath: /app/config/custom.css
subPath: custom.css
readOnly: true
- name: *volume-config
mountPath: /app/config/custom.js
subPath: custom.js
readOnly: true

ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: "vault"
cert-manager.io/private-key-algorithm: "RSA"
cert-manager.io/private-key-size: "4096"
hosts:
- host: &host homepage.unicornafk.fr
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- *host
secretName: homepage.unicornafk.fr-tls
ingressClassName: ingress-internal
71 changes: 0 additions & 71 deletions argocd/apps/hyperglass/manifests/01_external_secret.yaml

This file was deleted.

75 changes: 0 additions & 75 deletions argocd/apps/hyperglass/manifests/02_configmap.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions argocd/apps/hyperglass/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ ingress:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt
gethomepage.dev/enabled: "true"
gethomepage.dev/group: ASN
gethomepage.dev/name: Hyperglass
gethomepage.dev/description: Looking glass
hosts:
- host: &host lg.as212510.net
paths:
Expand Down
5 changes: 5 additions & 0 deletions argocd/infra/vault/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ ui:
serviceIPFamilyPolicy: "PreferDualStack"
annotations:
metallb.universe.tf/loadBalancerIPs: 192.168.10.102,2a0c:b641:2c0:110::102
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Infrastructure
gethomepage.dev/name: Vault
gethomepage.dev/description: Identity-based secrets management
gethomepage.dev/icon: vault.png

serverTelemetry:
serviceMonitor:
Expand Down
5 changes: 5 additions & 0 deletions argocd/media/jellyfin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ ingress:
cert-manager.io/cluster-issuer: "vault"
cert-manager.io/private-key-algorithm: "RSA"
cert-manager.io/private-key-size: "4096"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Media
gethomepage.dev/name: Jellyfin
gethomepage.dev/description: Media System
gethomepage.dev/icon: jellyfin.png
hosts:
- host: &host jellyfin.unicornafk.fr
paths:
Expand Down
5 changes: 5 additions & 0 deletions argocd/media/jellyseerr/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ ingress:
cert-manager.io/cluster-issuer: "vault"
cert-manager.io/private-key-algorithm: "RSA"
cert-manager.io/private-key-size: "4096"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Media
gethomepage.dev/name: Jellyseerr
gethomepage.dev/description: Media System
gethomepage.dev/icon: jellyseerr.png
hosts:
- host: &host jellyseerr.unicornafk.fr
paths:
Expand Down
5 changes: 5 additions & 0 deletions argocd/misc/authentik/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ server:
cert-manager.io/cluster-issuer: "vault"
cert-manager.io/private-key-algorithm: "RSA"
cert-manager.io/private-key-size: "4096"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Infrastructure
gethomepage.dev/name: Authentik
gethomepage.dev/description: Identity Provider
gethomepage.dev/icon: authentik.png
hosts:
- &host sso.unicornafk.fr
paths:
Expand Down
5 changes: 5 additions & 0 deletions argocd/monitoring/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ ingress:
cert-manager.io/cluster-issuer: "vault"
cert-manager.io/private-key-algorithm: "RSA"
cert-manager.io/private-key-size: "4096"
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Infrastructure
gethomepage.dev/name: Grafana
gethomepage.dev/description: Observability platform
gethomepage.dev/icon: grafana.png
hosts:
- &host monitoring.unicornafk.fr
ingressClassName: "ingress-internal"
Expand Down

0 comments on commit 416810f

Please sign in to comment.