Add pinchflat to Kubernetes
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pinchflat
|
||||
labels:
|
||||
app: pinchflat
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pinchflat
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pinchflat
|
||||
spec:
|
||||
containers:
|
||||
- name: pinchflat
|
||||
image: ghcr.io/kieraneglin/pinchflat:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8945
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: downloads
|
||||
mountPath: /downloads
|
||||
- name: config
|
||||
mountPath: /config
|
||||
env:
|
||||
- name: TZ
|
||||
value: "America/New_York"
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: downloads
|
||||
nfs:
|
||||
path: /mnt/all/video/yt
|
||||
server: nas1.shire-zebra.ts.net
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: pinchflat-config
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: pinchflat-tailscale
|
||||
spec:
|
||||
ingressClassName: tailscale
|
||||
defaultBackend:
|
||||
service:
|
||||
name: pinchflat
|
||||
port:
|
||||
name: http
|
||||
tls:
|
||||
- hosts:
|
||||
- pinchflat
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace: pinchflat
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: pinchflat
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pinchflat-config
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pinchflat
|
||||
labels:
|
||||
app: pinchflat
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 8945
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: pinchflat
|
||||
Reference in New Issue
Block a user