- Render the content for dashboard.anpham.me
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

50 lines
1.2 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
name: hommer
labels:
app: hommer
spec:
selector:
matchLabels:
app: hommer
replicas: 1 # You could also consider elastic scaling for this deployment
template:
metadata:
labels:
app: hommer
spec:
volumes:
- name: git-repo-volume
emptyDir: {}
# Define init container
initContainers:
- name: git-cloner
image: alpine/git:latest
# FIX 1: Change 'commad' to 'command'
command: ["git", "clone", "https://git.anpham.me/DurianLAB/Homepage-Dashboard.git", "/repo"]
volumeMounts:
- name: git-repo-volume
# FIX 2: Change 'mountpath' to 'mountPath'
mountPath: /repo
containers:
- name: hommer
image: b4bz/homer:v23.09.1
volumeMounts:
- name: git-repo-volume
mountPath: /repo/assets # Homer's default config directory is usually /app/config or similar, not /www. You might need to adjust this.
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: hommer-dashboard
spec:
selector:
app: hommer
ports:
- port: 82
targetPort: 8080