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:
|
||||
- name: HOMEPAGE_ALLOWED_HOSTS
|
||||
value: "homepage.net-scope.org"
|
||||
- name: HOMEPAGE_CONFIG_DIR
|
||||
value: "/config"
|
||||
volumeMounts:
|
||||
- name: config
|
||||
- name: app-data
|
||||
mountPath: /app/config
|
||||
- name: config-files
|
||||
mountPath: /config
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
@@ -33,6 +37,9 @@ spec:
|
||||
memory: "256Mi"
|
||||
cpu: "200m"
|
||||
volumes:
|
||||
- name: config
|
||||
- name: app-data
|
||||
persistentVolumeClaim:
|
||||
claimName: homepage-config
|
||||
- name: config-files
|
||||
configMap:
|
||||
name: homepage-config
|
||||
|
||||
@@ -6,3 +6,4 @@ resources:
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- configmap.yaml
|
||||
|
||||
Reference in New Issue
Block a user