chore(dashboard): update resources based on current docs

https://gethomepage.dev/latest/installation/k8s
This commit is contained in:
David Landry 2024-05-08 00:45:14 -04:00
parent db4fbbb99f
commit 46b3a334d0
7 changed files with 81 additions and 103 deletions

View file

@ -1,29 +1,42 @@
---
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: homepage name: homepage
labels: labels:
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/instance: homepage
app.kubernetes.io/version: "v0.6.10"
data: data:
bookmarks.yaml: | bookmarks.yaml: |
- Developer: - Developer:
- Github: - Github:
- abbr: GH - abbr: GH
href: https://github.com/ href: https://github.com/
docker.yaml: ""
kubernetes.yaml: | kubernetes.yaml: |
mode: cluster mode: cluster
services.yaml: | services.yaml: |
layout: # layout:
Files: # Files:
Media: # Media:
Games: # Games:
Manage Homelab: # Manage Homelab:
Manage Media: # Manage Media:
- My First Group:
- My First Service:
href: http://localhost/
description: Homepage is awesome
- My Second Group:
- My Second Service:
href: http://localhost/
description: Homepage is the best
- My Third Group:
- My Third Service:
href: http://localhost/
description: Homepage is 😎
settings.yaml: | settings.yaml: |
layout: layout:
Games: Games:
@ -37,25 +50,37 @@ data:
Media: Media:
columns: 4 columns: 4
style: row style: row
custom.css: ""
custom.js: ""
widgets.yaml: | widgets.yaml: |
- datetime: - datetime:
format: format:
dateStyle: long dateStyle: long
hour12: true hour12: true
timeStyle: short timeStyle: short
text_size: xl text_size: xl
- kubernetes: - kubernetes:
cluster: cluster:
cpu: true
label: cluster
memory: true
show: true show: true
cpu: true
memory: true
showLabel: true showLabel: true
label: "cluster"
nodes: nodes:
show: true
cpu: true cpu: true
memory: true memory: true
show: true
showLabel: true showLabel: true
- resources:
backend: resources
expanded: true
cpu: true
memory: true
- search: - search:
provider: duckduckgo provider: duckduckgo
target: _blank target: _blank
docker.yaml: ""

View file

@ -1,12 +1,9 @@
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: homepage name: homepage
labels: labels:
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/version: v0.6.10
spec: spec:
revisionHistoryLimit: 3 revisionHistoryLimit: 3
replicas: 1 replicas: 1
@ -15,12 +12,10 @@ spec:
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/instance: homepage
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/instance: homepage
spec: spec:
serviceAccountName: homepage serviceAccountName: homepage
automountServiceAccountToken: true automountServiceAccountToken: true
@ -28,54 +23,39 @@ spec:
enableServiceLinks: true enableServiceLinks: true
containers: containers:
- name: homepage - name: homepage
image: "ghcr.io/benphelps/homepage:v0.6.10" image: "ghcr.io/gethomepage/homepage:latest"
imagePullPolicy: imagePullPolicy: Always
ports: ports:
- name: http - name: http
containerPort: 3000 containerPort: 3000
protocol: TCP protocol: TCP
volumeMounts: volumeMounts:
- name: homepage-config - mountPath: /app/config/custom.js
name: homepage-config
subPath: custom.js
- mountPath: /app/config/custom.css
name: homepage-config
subPath: custom.css
- mountPath: /app/config/bookmarks.yaml
name: homepage-config
subPath: bookmarks.yaml subPath: bookmarks.yaml
mountPath: /app/config/bookmarks.yaml - mountPath: /app/config/docker.yaml
- name: homepage-config name: homepage-config
subPath: docker.yaml subPath: docker.yaml
mountPath: /app/config/docker.yaml - mountPath: /app/config/kubernetes.yaml
- name: homepage-config name: homepage-config
subPath: kubernetes.yaml subPath: kubernetes.yaml
mountPath: /app/config/kubernetes.yaml - mountPath: /app/config/services.yaml
- name: homepage-config name: homepage-config
subPath: services.yaml subPath: services.yaml
mountPath: /app/config/services.yaml - mountPath: /app/config/settings.yaml
- name: homepage-config name: homepage-config
subPath: settings.yaml subPath: settings.yaml
mountPath: /app/config/settings.yaml - mountPath: /app/config/widgets.yaml
- name: homepage-config name: homepage-config
subPath: widgets.yaml subPath: widgets.yaml
mountPath: /app/config/widgets.yaml - mountPath: /app/config/logs
- name: logs name: logs
mountPath: /app/config/logs
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 0
periodSeconds: 10
tcpSocket:
port: 3000
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 0
periodSeconds: 10
tcpSocket:
port: 3000
timeoutSeconds: 1
startupProbe:
failureThreshold: 30
initialDelaySeconds: 0
periodSeconds: 5
tcpSocket:
port: 3000
timeoutSeconds: 1
volumes: volumes:
- name: homepage-config - name: homepage-config
configMap: configMap:

View file

@ -1,14 +1,16 @@
---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: homepage name: homepage
labels: labels:
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/version: v0.6.10
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-issuer cert-manager.io/cluster-issuer: letsencrypt-issuer
gethomepage.dev/description: Dynamically Detected Homepage
gethomepage.dev/enabled: "true"
gethomepage.dev/group: Cluster Management
gethomepage.dev/icon: homepage.png
gethomepage.dev/name: Homepage
spec: spec:
tls: tls:
- hosts: - hosts:

View file

@ -1,13 +1,9 @@
---
# Source: gethomepage/charts/homepage/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: homepage name: homepage
labels: labels:
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/version: v0.6.10
rules: rules:
- apiGroups: - apiGroups:
- "" - ""
@ -28,7 +24,6 @@ rules:
- list - list
- apiGroups: - apiGroups:
- traefik.containo.us - traefik.containo.us
- traefik.io
resources: resources:
- ingressroutes - ingressroutes
verbs: verbs:
@ -42,27 +37,15 @@ rules:
verbs: verbs:
- get - get
- list - list
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions/status
verbs:
- get
--- ---
# Source: gethomepage/charts/homepage/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding
metadata: metadata:
name: homepage name: homepage
labels: labels:
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/version: v0.6.10
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: ClusterRole kind: ClusterRole
name: homepage name: homepage
subjects: subjects:
- kind: ServiceAccount
name: homepage
namespace: argocd

View file

@ -1,23 +1,8 @@
---
apiVersion: v1 apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: homepage name: homepage
labels: labels:
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/version: v0.6.10
secrets: secrets:
- name: homepage-sa-token - name: homepage
---
apiVersion: v1
kind: Secret
type: kubernetes.io/service-account-token
metadata:
name: homepage-sa-token
labels:
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage
app.kubernetes.io/version: v0.6.10
annotations:
kubernetes.io/service-account.name: homepage

View file

@ -1,13 +1,9 @@
---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: homepage name: homepage
labels: labels:
app.kubernetes.io/service: homepage
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage
app.kubernetes.io/version: v0.6.10
annotations: annotations:
spec: spec:
type: ClusterIP type: ClusterIP
@ -17,5 +13,4 @@ spec:
protocol: TCP protocol: TCP
name: http name: http
selector: selector:
app.kubernetes.io/instance: homepage
app.kubernetes.io/name: homepage app.kubernetes.io/name: homepage

View file

@ -6,3 +6,11 @@ resources:
images: images:
- name: ghcr.io/benphelps/homepage - name: ghcr.io/benphelps/homepage
newTag: v0.8.13 newTag: v0.8.13
patches:
- path: ./rbac-patch.yaml
target:
group: rbac.authorization.k8s.io
kind: ClusterRoleBinding
name: homepage
version: v1