Browse Source

Update 'hommer-deployment.yml'

master
anpham 2 weeks ago
parent
commit
b02014185d
1 changed files with 7 additions and 8 deletions
  1. +7
    -8
      hommer-deployment.yml

+ 7
- 8
hommer-deployment.yml View File

@ -1,4 +1,3 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
@ -23,17 +22,19 @@ spec:
initContainers:
- name: git-cloner
image: alpine/git:latest
commad: ["git", "clone", "https://git.anpham.me/DurianLAB/Homepage-Dashboard.git", "/repo"]
# FIX 1: Change 'commad' to 'command'
command: ["git", "clone", "https://git.anpham.me/DurianLAB/Homepage-Dashboard.git", "/repo"]
volumeMounts:
- name: git-repo-volume
mountpath: /repo
# FIX 2: Change 'mountpath' to 'mountPath'
mountPath: /repo
containers:
containers:
- name: hommer
image: b4bz/homer:v23.09.1
volumeMounts:
- name: git-repo-volume
mountPath: /www
mountPath: /www # Homer's default config directory is usually /app/config or similar, not /www. You might need to adjust this.
ports:
- containerPort: 8080
---
@ -46,6 +47,4 @@ spec:
app: hommer
ports:
- port: 82
targetPort: 8080
targetPort: 8080

Loading…
Cancel
Save