pod updates when config updates, configmap reads from config yaml
This commit is contained in:
@@ -4,6 +4,6 @@ services:
|
||||
homer:
|
||||
image: b4bz/homer:latest
|
||||
ports:
|
||||
- 8080:8080
|
||||
- 8081:8080
|
||||
volumes:
|
||||
- ./config.yml:/www/config.yml
|
||||
- ./helm/config.yml:/www/config.yml
|
||||
@@ -14,24 +14,24 @@ services:
|
||||
tag: "CI"
|
||||
url: "https://gitlab.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "pgAdmin"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/pgadmin.ico"
|
||||
tag: "CI"
|
||||
url: "https://pgadmin.ducoterra.net/"
|
||||
- name: "Code Server"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/vscode.png"
|
||||
tag: "Duconet"
|
||||
url: "https://dev.dnet/"
|
||||
target: '_blank'
|
||||
- name: "Storage"
|
||||
- name: "Cloud"
|
||||
icon: "fas fa-save"
|
||||
items:
|
||||
- name: "Freenas"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/freenas.png"
|
||||
tag: "Duconet"
|
||||
url: "https://freenas.dnet/"
|
||||
target: '_blank'
|
||||
- name: "Nextcloud"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/nextcloud.png"
|
||||
tag: "Storage"
|
||||
url: "https://nextcloud.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "Freenas"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/freenas.png"
|
||||
tag: "Storage"
|
||||
url: "http://freenas.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "Entertainment"
|
||||
icon: "fas fa-photo-video"
|
||||
items:
|
||||
@@ -48,16 +48,6 @@ services:
|
||||
url: "https://grafana.ducoterra.net/"
|
||||
tag: "Monitoring"
|
||||
target: '_blank'
|
||||
- name: "Graphite"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/graphite.png"
|
||||
url: "https://graphite.ducoterra.net/"
|
||||
tag: "Monitoring"
|
||||
target: '_blank'
|
||||
- name: "Zipkin"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/zipkin.ico"
|
||||
url: "https://zipkin.ducoterra.net/"
|
||||
tag: "Monitoring"
|
||||
target: '_blank'
|
||||
- name: "Mainframe"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/glances.png"
|
||||
url: "https://monitor.ducoterra.net/"
|
||||
@@ -1,97 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
data:
|
||||
config.yml: |
|
||||
---
|
||||
title: "Reese's Homelab"
|
||||
subtitle: "Duconet"
|
||||
icon: "fas fa-tachometer-alt" # Optional icon
|
||||
footer: false
|
||||
|
||||
links: [] # Allows for navbar (dark mode, layout, and search) without any links
|
||||
services:
|
||||
- name: "DevSecOps"
|
||||
icon: "fas fa-code-branch"
|
||||
items:
|
||||
- name: "Gitlab"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/Gitlab.svg"
|
||||
tag: "CI"
|
||||
url: "https://gitlab.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "pgAdmin"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/pgadmin.ico"
|
||||
tag: "CI"
|
||||
url: "https://pgadmin.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "Storage"
|
||||
icon: "fas fa-save"
|
||||
items:
|
||||
- name: "Nextcloud"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/nextcloud.png"
|
||||
tag: "Storage"
|
||||
url: "https://nextcloud.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "Freenas"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/freenas.png"
|
||||
tag: "Storage"
|
||||
url: "http://freenas.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "Entertainment"
|
||||
icon: "fas fa-photo-video"
|
||||
items:
|
||||
- name: "Jellyfin"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/jellyfin.svg"
|
||||
url: "https://jellyfin.ducoterra.net"
|
||||
tag: "Entertainment"
|
||||
target: '_blank'
|
||||
- name: "Monitoring"
|
||||
icon: "fas fa-heartbeat"
|
||||
items:
|
||||
- name: "Grafana"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/grafana.svg"
|
||||
url: "https://grafana.ducoterra.net/"
|
||||
tag: "Monitoring"
|
||||
target: '_blank'
|
||||
- name: "Graphite"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/graphite.png"
|
||||
url: "https://graphite.ducoterra.net/"
|
||||
tag: "Monitoring"
|
||||
target: '_blank'
|
||||
- name: "Zipkin"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/zipkin.ico"
|
||||
url: "https://zipkin.ducoterra.net/"
|
||||
tag: "Monitoring"
|
||||
target: '_blank'
|
||||
- name: "Mainframe"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/glances.png"
|
||||
url: "https://monitor.ducoterra.net/"
|
||||
tag: "Monitoring"
|
||||
target: '_blank'
|
||||
- name: "Network"
|
||||
icon: "fas fa-server"
|
||||
items:
|
||||
- name: "Traefik"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/traefik.png"
|
||||
tag: "Network"
|
||||
url: "https://traefik.ducoterra.net/"
|
||||
target: '_blank'
|
||||
- name: "Unifi"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/unifi.png"
|
||||
tag: "Network"
|
||||
url: "https://unifi.ui.com"
|
||||
target: '_blank'
|
||||
- name: "Protect"
|
||||
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/protect.ico"
|
||||
tag: "Network"
|
||||
url: "https://protect.ui.com/"
|
||||
target: '_blank'
|
||||
- name: "Projects"
|
||||
icon: "fas fa-project-diagram"
|
||||
items:
|
||||
- name: "Python Class 2020"
|
||||
icon: "fas fa-file-code"
|
||||
tag: "Projects"
|
||||
url: "https://pythondocs2020.ducoterra.net/day5/"
|
||||
target: '_blank'
|
||||
7
helm/templates/configmap.yaml
Normal file
7
helm/templates/configmap.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
data:
|
||||
config.yml: |{{ range .Files.Lines "config.yml" }}
|
||||
{{ . }}{{ end }}
|
||||
@@ -2,6 +2,8 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ .Release.Name }}
|
||||
annotations:
|
||||
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
|
||||
Reference in New Issue
Block a user