Files
home-cluster-ops/kubernetes/apps/homer/app/development.yaml

46 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: homer
namespace: homer
labels:
app.kubernetes.io/name: homer
spec:
selector:
matchLabels:
app.kubernetes.io/name: homer
template:
metadata:
labels:
app.kubernetes.io/name: homer
rpi5.cluster.policy/egress-kubeapi: "true"
rpi5.cluster.policy/egress-namespace: "true"
rpi5.cluster.policy/egress-world: "true"
rpi5.cluster.policy/ingress-namespace: "true"
rpi5.cluster.policy/ingress-nginx: "true"
rpi5.cluster.policy/ingress-nodes: "true"
rpi5.cluster.policy/ingress-world: "true"
spec:
containers:
- name: homer
image: b4bz/homer:v24.05.1
ports:
- protocol: TCP
containerPort: 8080
name: http
volumeMounts:
- name: assets
mountPath: /www/assets
volumes:
- name: assets
hostPath:
path: /mnt/nfs/AppData/homer/www/assets
type: Directory
initContainers:
- name: volume-mount-permissions
image: b4bz/homer:v24.05.1
command: [ "sh", "-c", "chown -R 0:0 /www/assets" ]
volumeMounts:
- name: www
mountPath: /www/assets