fix: use configmap for homepage config with separate mount
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: homepage-config
|
||||||
|
namespace: homepage
|
||||||
|
data:
|
||||||
|
settings.yaml: |
|
||||||
|
title: Homelab
|
||||||
|
theme: dark
|
||||||
|
color: slate
|
||||||
|
services.yaml: |
|
||||||
|
- Infrastruktur:
|
||||||
|
- Longhorn:
|
||||||
|
href: http://longhorn.net-scope.org
|
||||||
|
description: Storage
|
||||||
|
- Grafana:
|
||||||
|
href: https://grafana.net-scope.org
|
||||||
|
description: Monitoring
|
||||||
|
bookmarks.yaml: |
|
||||||
|
[]
|
||||||
|
widgets.yaml: |
|
||||||
|
- greeting:
|
||||||
|
text_size: xl
|
||||||
|
text: "Homelab"
|
||||||
|
docker.yaml: |
|
||||||
|
[]
|
||||||
|
kubernetes.yaml: |
|
||||||
|
mode: cluster
|
||||||
@@ -22,9 +22,13 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: HOMEPAGE_ALLOWED_HOSTS
|
- name: HOMEPAGE_ALLOWED_HOSTS
|
||||||
value: "homepage.net-scope.org"
|
value: "homepage.net-scope.org"
|
||||||
|
- name: HOMEPAGE_CONFIG_DIR
|
||||||
|
value: "/config"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: app-data
|
||||||
mountPath: /app/config
|
mountPath: /app/config
|
||||||
|
- name: config-files
|
||||||
|
mountPath: /config
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
@@ -33,6 +37,9 @@ spec:
|
|||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
cpu: "200m"
|
cpu: "200m"
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: app-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: homepage-config
|
claimName: homepage-config
|
||||||
|
- name: config-files
|
||||||
|
configMap:
|
||||||
|
name: homepage-config
|
||||||
|
|||||||
@@ -6,3 +6,4 @@ resources:
|
|||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
- configmap.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user