pod updates when config updates, configmap reads from config yaml

This commit is contained in:
ducoterra
2020-12-16 10:46:35 -05:00
parent e24c14b189
commit 765b006285
5 changed files with 21 additions and 119 deletions

View File

@@ -4,6 +4,6 @@ services:
homer: homer:
image: b4bz/homer:latest image: b4bz/homer:latest
ports: ports:
- 8080:8080 - 8081:8080
volumes: volumes:
- ./config.yml:/www/config.yml - ./helm/config.yml:/www/config.yml

View File

@@ -14,24 +14,24 @@ services:
tag: "CI" tag: "CI"
url: "https://gitlab.ducoterra.net/" url: "https://gitlab.ducoterra.net/"
target: '_blank' target: '_blank'
- name: "pgAdmin" - name: "Code Server"
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/pgadmin.ico" logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/vscode.png"
tag: "CI" tag: "Duconet"
url: "https://pgadmin.ducoterra.net/" url: "https://dev.dnet/"
target: '_blank' target: '_blank'
- name: "Storage" - name: "Cloud"
icon: "fas fa-save" icon: "fas fa-save"
items: 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" - name: "Nextcloud"
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/nextcloud.png" logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/nextcloud.png"
tag: "Storage" tag: "Storage"
url: "https://nextcloud.ducoterra.net/" url: "https://nextcloud.ducoterra.net/"
target: '_blank' 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" - name: "Entertainment"
icon: "fas fa-photo-video" icon: "fas fa-photo-video"
items: items:
@@ -48,16 +48,6 @@ services:
url: "https://grafana.ducoterra.net/" url: "https://grafana.ducoterra.net/"
tag: "Monitoring" tag: "Monitoring"
target: '_blank' 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" - name: "Mainframe"
logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/glances.png" logo: "https://gitlab.ducoterra.net/services/homer/-/raw/master/assets/tools/glances.png"
url: "https://monitor.ducoterra.net/" url: "https://monitor.ducoterra.net/"

View File

@@ -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'

View File

@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}
data:
config.yml: |{{ range .Files.Lines "config.yml" }}
{{ . }}{{ end }}

View File

@@ -2,6 +2,8 @@ apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ .Release.Name }} name: {{ .Release.Name }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec: spec:
selector: selector:
matchLabels: matchLabels: