-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merges all my deployments to the repo
- Loading branch information
Showing
38 changed files
with
781 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
language-server-log.txt | ||
language-server-log.txt | ||
secret.yaml | ||
tailscale-repo |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: jellyfin | ||
name: jellyfin | ||
namespace: home-samba | ||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
selector: | ||
matchLabels: | ||
app: jellyfin | ||
template: | ||
metadata: | ||
labels: | ||
app: jellyfin | ||
spec: | ||
volumes: | ||
- name: jellyfin-config | ||
persistentVolumeClaim: | ||
claimName: jellyfin-pvc-data | ||
- name: jellyfin-data | ||
persistentVolumeClaim: | ||
claimName: samba-pvc | ||
- name: device-dri | ||
hostPath: | ||
path: /dev/dri | ||
- name: device-dma-heap | ||
hostPath: | ||
path: /dev/dma_heap | ||
- name: device-mali | ||
hostPath: | ||
path: /dev/mali0 | ||
- name: device-rga | ||
hostPath: | ||
path: /dev/rga | ||
- name: device-mpp-service | ||
hostPath: | ||
path: /dev/mpp_service | ||
containers: | ||
- env: | ||
- name: JELLYFIN_PublishedServerUrl | ||
value: 192.168.1.113 # The IP, make sure it's the same as the IP in the TCP and UDP service yaml | ||
- name: PGID | ||
value: "\x36\x35\x35\x34\x31" # < ASCII code for '65541' | ||
- name: PUID | ||
value: "\x31\x30\x34\x34" #< ACII code for '1044' | ||
- name: TZ | ||
value: Europe/Amsterdam | ||
securityContext: | ||
privileged: true # Container must run as privileged inside of the pod, required for hardware acceleration | ||
image: ghcr.io/linuxserver/jellyfin | ||
imagePullPolicy: Always | ||
name: jellyfin | ||
ports: | ||
- containerPort: 8096 | ||
name: http-tcp | ||
protocol: TCP | ||
- containerPort: 8920 | ||
name: https-tcp | ||
protocol: TCP | ||
- containerPort: 1900 | ||
name: dlna-udp | ||
protocol: UDP | ||
- containerPort: 7359 | ||
name: discovery-udp | ||
protocol: UDP | ||
resources: {} | ||
stdin: true | ||
tty: true | ||
volumeMounts: | ||
- mountPath: /config | ||
name: jellyfin-config | ||
- mountPath: /data | ||
name: jellyfin-data | ||
# Below are the path to mount devices for hardware acceleration | ||
- mountPath: /dev/dri | ||
name: device-dri | ||
- mountPath: /dev/dma_heap | ||
name: device-dma-heap | ||
- mountPath: /dev/mali0 | ||
name: device-mali | ||
- mountPath: /dev/rga | ||
name: device-rga | ||
- mountPath: /dev/mpp_service | ||
name: device-mpp-service | ||
|
||
dnsPolicy: ClusterFirst | ||
restartPolicy: Always | ||
priorityClassName: high-priority |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: jellyfin | ||
namespace: home-samba | ||
annotations: | ||
kubernetes.io/ingress.class: "nginx" # < use the nginx ingress controller | ||
# nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" # < communicate in https with the backend (service/pod). With a "#" in front of http will be used. | ||
cert-manager.io/cluster-issuer: "letsencrypt-prod" # < use letsencrypt-prod application in kubernetes to generate ssl certificate | ||
# nginx.ingress.kubernetes.io/app-root: # < the root directory here if it's different from the root directory (like /web). | ||
spec: | ||
rules: | ||
- host: jellyfin.debont.net | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix # pathType no longer has a default value in v1; "Exact", "Prefix", or "ImplementationSpecific" must be specified | ||
backend: | ||
service: | ||
name: jellyfin-tcp | ||
port: | ||
name: http-tcp # < same label as the port in the service tcp file | ||
tls: # < placing a host in the TLS config will indicate a cert should be created | ||
- hosts: | ||
- jellyfin.home.com | ||
secretName: jellyfin.home.com-tls # < cert-manager will store the created certificate in this secret. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: jellyfin-pvc-data | ||
namespace: home-samba | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
volumeMode: Filesystem | ||
resources: | ||
requests: | ||
storage: 100Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: jellyfin-tcp | ||
namespace: home-samba | ||
annotations: | ||
metallb.universe.tf/allow-shared-ip: jellyfin | ||
spec: | ||
selector: | ||
app: jellyfin | ||
ports: | ||
- port: 8096 | ||
targetPort: 8096 | ||
name: http-tcp | ||
protocol: TCP | ||
- port: 8920 | ||
targetPort: 8920 | ||
name: https-tcp | ||
type: LoadBalancer | ||
loadBalancerIP: 192.168.1.157 | ||
sessionAffinity: ClientIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: jellyfin-udp | ||
namespace: home-samba | ||
annotations: | ||
metallb.universe.tf/allow-shared-ip: jellyfin | ||
spec: | ||
selector: | ||
app: jellyfin | ||
ports: | ||
- port: 1900 | ||
targetPort: 1900 | ||
name: dlna-udp | ||
protocol: UDP | ||
- port: 7359 | ||
targetPort: 7359 | ||
name: discovery-udp | ||
protocol: UDP | ||
type: LoadBalancer | ||
loadBalancerIP: 192.168.1.157 | ||
sessionAffinity: ClientIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: jellyseerr-deployment | ||
namespace: home-samba | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: jellyseerr | ||
template: | ||
metadata: | ||
labels: | ||
app: jellyseerr | ||
spec: | ||
containers: | ||
- name: jellyseerr | ||
image: fallenbagel/jellyseerr:latest | ||
imagePullPolicy: Always | ||
resources: {} | ||
env: | ||
- name: TZ | ||
value: Dublin/Europe | ||
ports: | ||
- containerPort: 5055 | ||
volumeMounts: | ||
- name: appdata | ||
mountPath: /app/config | ||
volumes: | ||
- name: appdata | ||
persistentVolumeClaim: | ||
claimName: jellyseerr-pvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: jellyseerr-pvc | ||
namespace: home-samba | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: jellyseerr-service | ||
namespace: home-samba | ||
spec: | ||
selector: | ||
app: jellyseerr | ||
ports: | ||
- protocol: TCP | ||
port: 5055 | ||
targetPort: 5055 | ||
type: LoadBalancer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: home-samba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: notifiarr | ||
namespace: home-samba | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: notifiarr | ||
template: | ||
metadata: | ||
labels: | ||
app: notifiarr | ||
spec: | ||
containers: | ||
- name: notifiarr | ||
image: golift/notifiarr:latest | ||
imagePullPolicy: Always | ||
resources: {} | ||
ports: | ||
- containerPort: 5454 | ||
volumeMounts: | ||
- name: appdata | ||
mountPath: /config | ||
- name: appdata | ||
mountPath: /var/run/utmp | ||
- name: appdata | ||
mountPath: /etc/machine-id | ||
volumes: | ||
- name: appdata | ||
persistentVolumeClaim: | ||
claimName: notifiarr-pvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: notifiarr-pvc | ||
namespace: home-samba | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: notifiarr-service | ||
namespace: home-samba | ||
spec: | ||
selector: | ||
app: notifiarr | ||
ports: | ||
- protocol: TCP | ||
port: 5454 | ||
targetPort: 5454 | ||
type: LoadBalancer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: postgres | ||
namespace: home-samba | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: postgres | ||
template: | ||
metadata: | ||
labels: | ||
app: postgres | ||
spec: | ||
containers: | ||
- name: postgres | ||
image: postgres:14 | ||
resources: {} | ||
env: | ||
- name: POSTGRES_PASSWORD | ||
value: "qstick" | ||
- name: POSTGRES_USER | ||
value: "qstick" | ||
- name: POSTGRES_DB | ||
value: "sonarr-main" | ||
- name: PGDATA | ||
value: "/var/lib/postgresql/data/pgdata" | ||
volumeMounts: | ||
- name: postgres-storage | ||
mountPath: /var/lib/postgresql/data | ||
volumes: | ||
- name: postgres-storage | ||
persistentVolumeClaim: | ||
claimName: postgres-pvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: postgres-pvc | ||
namespace: home-samba | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 5Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgres-service | ||
namespace: home-samba | ||
spec: | ||
selector: | ||
app: postgres | ||
ports: | ||
- protocol: TCP | ||
port: 5432 | ||
targetPort: 5432 |
Oops, something went wrong.