61 lines
1.1 KiB
YAML
61 lines
1.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: homebridge
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: homebridge
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: homebridge
|
|
spec:
|
|
containers:
|
|
- name: homebridge
|
|
image: oznu/homebridge:ubuntu
|
|
resources:
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "1"
|
|
requests:
|
|
memory: "10Mi"
|
|
cpu: "1m"
|
|
ports:
|
|
- containerPort: 8581
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /homebridge
|
|
env:
|
|
- name: HOMEBRIDGE_CONFIG_UI_PORT
|
|
value: "8581"
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: homebridge
|
|
---
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: homebridge
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
storageClassName: nfs-client
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: homebridge
|
|
spec:
|
|
selector:
|
|
app: homebridge
|
|
ports:
|
|
- port: 8581
|
|
targetPort: 8581
|
|
name: web
|