Browse Source

Añado jellyfin y pongo influxdb en nodered

main
Celestino Rey 2 years ago
parent
commit
e57e0a9652
26 changed files with 536 additions and 3 deletions
  1. +23
    -0
      HelmCharts/jellyfin-chart/.helmignore
  2. +24
    -0
      HelmCharts/jellyfin-chart/Chart.yaml
  3. +12
    -0
      HelmCharts/jellyfin-chart/creatodo.sh
  4. +12
    -0
      HelmCharts/jellyfin-chart/paratodo.sh
  5. +15
    -0
      HelmCharts/jellyfin-chart/templates/jellyfin-cache-persistentvolumeclaim.yaml
  6. +15
    -0
      HelmCharts/jellyfin-chart/templates/jellyfin-config-persistentvolumeclaim.yaml
  7. +61
    -0
      HelmCharts/jellyfin-chart/templates/jellyfin-deployment.yaml
  8. +15
    -0
      HelmCharts/jellyfin-chart/templates/jellyfin-media-persistentvolumeclaim.yaml
  9. +15
    -0
      HelmCharts/jellyfin-chart/templates/jellyfin-media2-persistentvolumeclaim.yaml
  10. +14
    -0
      HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-cache.yaml
  11. +14
    -0
      HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-config.yaml
  12. +14
    -0
      HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-media.yaml
  13. +14
    -0
      HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-media2.yaml
  14. +82
    -0
      HelmCharts/jellyfin-chart/values.yaml
  15. +1
    -1
      HelmCharts/nodered-chart/mysql-deployment.yaml
  16. +1
    -1
      HelmCharts/nodered-chart/php-myadmin-deployment.yaml
  17. +0
    -0
      HelmCharts/nodered-chart/pv-local-mysql.yaml
  18. +67
    -0
      HelmCharts/nodered-chart/templates/influxdb-deployment.yaml
  19. +1
    -1
      HelmCharts/nodered-chart/templates/nodered-deployment.yaml
  20. +11
    -0
      HelmCharts/nodered-chart/templates/pv-local-influxdb.yaml
  21. +13
    -0
      Jellyfin/docker-compose.yml
  22. +14
    -0
      Jellyfin/jellyfin-claim0-persistentvolumeclaim.yaml
  23. +14
    -0
      Jellyfin/jellyfin-claim1-persistentvolumeclaim.yaml
  24. +14
    -0
      Jellyfin/jellyfin-claim2-persistentvolumeclaim.yaml
  25. +14
    -0
      Jellyfin/jellyfin-claim3-persistentvolumeclaim.yaml
  26. +56
    -0
      Jellyfin/jellyfin-deployment.yaml

+ 23
- 0
HelmCharts/jellyfin-chart/.helmignore View File

@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

+ 24
- 0
HelmCharts/jellyfin-chart/Chart.yaml View File

@ -0,0 +1,24 @@
apiVersion: v2
name: jellyfin-chart
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

+ 12
- 0
HelmCharts/jellyfin-chart/creatodo.sh View File

@ -0,0 +1,12 @@
# los pv
kubectl create -f pv-local-jellyfin-cache.yaml
kubectl create -f pv-local-jellyfin-config.yaml
kubectl create -f pv-local-jellyfin-media2.yaml
kubectl create -f pv-local-jellyfin-media.yaml
# las pvc
kubectl create -f jellyfin-cache-persistentvolumeclaim.yaml
kubectl create -f jellyfin-config-persistentvolumeclaim.yaml
kubectl create -f jellyfin-media2-persistentvolumeclaim.yaml
kubectl create -f jellyfin-media-persistentvolumeclaim.yaml
# el deployment
kubectl create -f jellyfin-deployment.yaml

+ 12
- 0
HelmCharts/jellyfin-chart/paratodo.sh View File

@ -0,0 +1,12 @@
# el deployment
kubectl delete -f jellyfin-deployment.yaml
# las pvc
kubectl delete -f jellyfin-cache-persistentvolumeclaim.yaml
kubectl delete -f jellyfin-config-persistentvolumeclaim.yaml
kubectl delete -f jellyfin-media2-persistentvolumeclaim.yaml
kubectl delete -f jellyfin-media-persistentvolumeclaim.yaml
# los pv
kubectl delete -f pv-local-jellyfin-cache.yaml
kubectl delete -f pv-local-jellyfin-config.yaml
kubectl delete -f pv-local-jellyfin-media2.yaml
kubectl delete -f pv-local-jellyfin-media.yaml

+ 15
- 0
HelmCharts/jellyfin-chart/templates/jellyfin-cache-persistentvolumeclaim.yaml View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-cache
name: jellyfin-cache
namespace: jellyfin
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 150Mi
status: {}

+ 15
- 0
HelmCharts/jellyfin-chart/templates/jellyfin-config-persistentvolumeclaim.yaml View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-config
name: jellyfin-config
namespace: jellyfin
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}

+ 61
- 0
HelmCharts/jellyfin-chart/templates/jellyfin-deployment.yaml View File

@ -0,0 +1,61 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: jellyfin
name: jellyfin
namespace: jellyfin
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: jellyfin
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: jellyfin
spec:
hostNetwork: true
containers:
- image: jellyfin/jellyfin
name: jellyfin
ports:
- containerPort: 8096
name: jellyfin
resources: {}
volumeMounts:
- mountPath: /config
name: jellyfin-config
- mountPath: /cache
name: jellyfin-cache
- mountPath: /media
name: jellyfin-media
- mountPath: /media2
name: jellyfin-media2
readOnly: true
restartPolicy: Always
volumes:
- name: jellyfin-config
persistentVolumeClaim:
claimName: jellyfin-config
- name: jellyfin-cache
persistentVolumeClaim:
claimName: jellyfin-cache
- name: jellyfin-media
persistentVolumeClaim:
claimName: jellyfin-media
- name: jellyfin-media2
persistentVolumeClaim:
claimName: jellyfin-media2
readOnly: true
status: {}

+ 15
- 0
HelmCharts/jellyfin-chart/templates/jellyfin-media-persistentvolumeclaim.yaml View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-media
name: jellyfin-media
namespace: jellyfin
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
status: {}

+ 15
- 0
HelmCharts/jellyfin-chart/templates/jellyfin-media2-persistentvolumeclaim.yaml View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-media2
name: jellyfin-media2
namespace: jellyfin
spec:
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 10Gi
status: {}

+ 14
- 0
HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-cache.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: jellyfin-cache-folder
labels:
app: jellyfin
spec:
capacity:
storage: 150Mi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/jellyfin/cache"

+ 14
- 0
HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-config.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: jellyfin-config-folder
labels:
app: jellyfin
spec:
capacity:
storage: 100Mi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/jellyfin/config"

+ 14
- 0
HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-media.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: jellyfin-media-folder
labels:
app: jellyfin
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/jellyfin/media"

+ 14
- 0
HelmCharts/jellyfin-chart/templates/pv-local-jellyfin-media2.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: jellyfin-media2-folder
labels:
app: jellyfin
spec:
capacity:
storage: 10Gi
accessModes:
- ReadOnlyMany
hostPath:
path: "/mnt/Externo/jellyfin/media2"

+ 82
- 0
HelmCharts/jellyfin-chart/values.yaml View File

@ -0,0 +1,82 @@
# Default values for jellyfin-chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}

HelmCharts/nodered-chart/templates/mysql-deployment.yaml → HelmCharts/nodered-chart/mysql-deployment.yaml View File

@ -10,7 +10,7 @@ spec:
ports: ports:
- name: mysql - name: mysql
port: 3306 port: 3306
nodePort: 30385
nodePort: 30685
targetPort: mysql targetPort: mysql
selector: selector:
app: nodered app: nodered

HelmCharts/nodered-chart/templates/php-myadmin-deployment.yaml → HelmCharts/nodered-chart/php-myadmin-deployment.yaml View File

@ -13,7 +13,7 @@ spec:
ports: ports:
- name: phpadmin - name: phpadmin
port: 80 port: 80
nodePort: 30386
nodePort: 30686
targetPort: phpmyadm targetPort: phpmyadm
--- ---
apiVersion: apps/v1 apiVersion: apps/v1

HelmCharts/nodered-chart/templates/pv-local-mysql.yaml → HelmCharts/nodered-chart/pv-local-mysql.yaml View File


+ 67
- 0
HelmCharts/nodered-chart/templates/influxdb-deployment.yaml View File

@ -0,0 +1,67 @@
apiVersion: v1
kind: Service
metadata:
name: nodered-influxdb
namespace: nodered
labels:
app: nodered
spec:
type: NodePort
ports:
- name: influxdb
port: 8086
nodePort: 30686
targetPort: influxdb
selector:
app: nodered
tier: influxdb
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: influxdb-pv-claim
namespace: nodered
labels:
app: nodered
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 25Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nodered-influxdb
namespace: nodered
labels:
app: nodered
spec:
selector:
matchLabels:
app: nodered
tier: influxdb
strategy:
type: Recreate
template:
metadata:
labels:
app: nodered
tier: influxdb
spec:
containers:
- image: influxdb:latest
name: influxdb
ports:
- containerPort: 8086
name: influxdb
volumeMounts:
- name: influxdb-persistent-storage
mountPath: /var/lib/influxdb2
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: influxdb-persistent-storage
persistentVolumeClaim:
claimName: influxdb-pv-claim

+ 1
- 1
HelmCharts/nodered-chart/templates/nodered-deployment.yaml View File

@ -9,7 +9,7 @@ spec:
type: NodePort type: NodePort
ports: ports:
- port: 1880 - port: 1880
nodePort: 30096
nodePort: 30696
targetPort: nodered targetPort: nodered
selector: selector:
app: nodered app: nodered


+ 11
- 0
HelmCharts/nodered-chart/templates/pv-local-influxdb.yaml View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: nodered-influxdb
spec:
capacity:
storage: 25Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/nodered/influx-db"

+ 13
- 0
Jellyfin/docker-compose.yml View File

@ -0,0 +1,13 @@
version: '3.5'
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
network_mode: "host"
volumes:
- /mnt/Externo/jellyfin/config:/config
- /mnt/Externo/jellyfin/cache:/cache
- /mnt/Externo/jellyfin/media:/media
- /mnt/Externo/jellyfin/media2:/media2:ro
restart: 'unless-stopped'

+ 14
- 0
Jellyfin/jellyfin-claim0-persistentvolumeclaim.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-claim0
name: jellyfin-claim0
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}

+ 14
- 0
Jellyfin/jellyfin-claim1-persistentvolumeclaim.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-claim1
name: jellyfin-claim1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}

+ 14
- 0
Jellyfin/jellyfin-claim2-persistentvolumeclaim.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-claim2
name: jellyfin-claim2
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}

+ 14
- 0
Jellyfin/jellyfin-claim3-persistentvolumeclaim.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: jellyfin-claim3
name: jellyfin-claim3
spec:
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 100Mi
status: {}

+ 56
- 0
Jellyfin/jellyfin-deployment.yaml View File

@ -0,0 +1,56 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: jellyfin
name: jellyfin
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: jellyfin
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: jellyfin
spec:
containers:
- image: jellyfin/jellyfin
name: jellyfin
resources: {}
volumeMounts:
- mountPath: /config
name: jellyfin-claim0
- mountPath: /cache
name: jellyfin-claim1
- mountPath: /media
name: jellyfin-claim2
- mountPath: /media2
name: jellyfin-claim3
readOnly: true
restartPolicy: Always
volumes:
- name: jellyfin-claim0
persistentVolumeClaim:
claimName: jellyfin-claim0
- name: jellyfin-claim1
persistentVolumeClaim:
claimName: jellyfin-claim1
- name: jellyfin-claim2
persistentVolumeClaim:
claimName: jellyfin-claim2
- name: jellyfin-claim3
persistentVolumeClaim:
claimName: jellyfin-claim3
readOnly: true
status: {}

Loading…
Cancel
Save