mirror of
https://github.com/morten-olsen/homelab-apps.git
synced 2026-02-08 01:36:28 +01:00
pigeon-pod
This commit is contained in:
3
charts/apps/pigeon-pod/Chart.yaml
Normal file
3
charts/apps/pigeon-pod/Chart.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
apiVersion: v2
|
||||
version: 1.0.0
|
||||
name: pigeonpod
|
||||
53
charts/apps/pigeon-pod/templates/deployment.yaml
Normal file
53
charts/apps/pigeon-pod/templates/deployment.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}"
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: "{{ .Release.Name }}"
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: "{{ .Release.Name }}"
|
||||
spec:
|
||||
hostNetwork: true
|
||||
containers:
|
||||
- name: "{{ .Release.Name }}"
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: "{{ .Values.image.pullPolicy }}"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: http
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: http
|
||||
env:
|
||||
- name: TZ
|
||||
value: "{{ .Values.globals.timezone }}"
|
||||
- name: PIGEON_BASE_URL
|
||||
value: "https://{{ .Values.subdomain }}.{{ .Values.globals.domain }}"
|
||||
- name: PIGEON_AUDIO_FILE_PATH
|
||||
value: /youtube
|
||||
- name: SPRING_DATASOURCE_URL
|
||||
value: jdbc:sqlite:/data/pigeon-pod.db
|
||||
volumeMounts:
|
||||
- mountPath: /data
|
||||
name: data
|
||||
- mountPath: /media/youtube
|
||||
name: youtube
|
||||
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: "{{ .Release.Name }}-data"
|
||||
- name: youtube
|
||||
persistentVolumeClaim:
|
||||
claimName: youtube
|
||||
11
charts/apps/pigeon-pod/templates/external-http-service.yaml
Normal file
11
charts/apps/pigeon-pod/templates/external-http-service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: homelab.mortenolsen.pro/v1
|
||||
kind: ExternalHttpService
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}'
|
||||
spec:
|
||||
environment: '{{ .Values.globals.environment }}'
|
||||
subdomain: '{{ .Values.subdomain }}'
|
||||
destination:
|
||||
host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local'
|
||||
port:
|
||||
number: 80
|
||||
11
charts/apps/pigeon-pod/templates/http-service.yaml
Normal file
11
charts/apps/pigeon-pod/templates/http-service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: homelab.mortenolsen.pro/v1
|
||||
kind: HttpService
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}"
|
||||
spec:
|
||||
environment: "{{ .Values.globals.environment }}"
|
||||
subdomain: "{{ .Values.subdomain }}"
|
||||
destination:
|
||||
host: "{{ .Release.Name }}"
|
||||
port:
|
||||
number: 80
|
||||
11
charts/apps/pigeon-pod/templates/pvc.yaml
Normal file
11
charts/apps/pigeon-pod/templates/pvc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: '{{ .Release.Name }}-data'
|
||||
spec:
|
||||
accessModes:
|
||||
- 'ReadWriteOnce'
|
||||
resources:
|
||||
requests:
|
||||
storage: '1Gi'
|
||||
storageClassName: '{{ .Values.globals.environment }}'
|
||||
15
charts/apps/pigeon-pod/templates/service.yaml
Normal file
15
charts/apps/pigeon-pod/templates/service.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}"
|
||||
labels:
|
||||
app: "{{ .Release.Name }}"
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: "{{ .Release.Name }}"
|
||||
5
charts/apps/pigeon-pod/values.yaml
Normal file
5
charts/apps/pigeon-pod/values.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
image:
|
||||
repository: ghcr.io/aizhimou/pigeon-pod
|
||||
tag: release-1.12.3
|
||||
pullPolicy: IfNotPresent
|
||||
subdomain: pigeonpod
|
||||
@@ -14,3 +14,5 @@ shares:
|
||||
path: /mnt/HDD/Pictures
|
||||
backups:
|
||||
path: /mnt/HDD/Backups
|
||||
youtube:
|
||||
path: /mnt/HDD/Youtube
|
||||
|
||||
Reference in New Issue
Block a user