Browse Source

Ajustes para probar https y podcasts

main
Celestino Rey 2 years ago
parent
commit
3e72f8ee0b
14 changed files with 195 additions and 5 deletions
  1. +7
    -5
      Airsonic/airsonic-deployment.yaml
  2. +17
    -0
      HelmCharts/jellyfin-chart/templates/jellyfin-deployment.yaml
  3. +12
    -0
      NuevoHTTPS/certificate.yaml
  4. +14
    -0
      NuevoHTTPS/clusterissuer.yaml
  5. +5
    -0
      Podgrab/creaTodo.sh
  6. +5
    -0
      Podgrab/kustomization.yaml
  7. +2
    -0
      Podgrab/muevePodcast
  8. +4
    -0
      Podgrab/paraTodo.sh
  9. +15
    -0
      Podgrab/podgrab-claim0-persistentvolumeclaim.yaml
  10. +15
    -0
      Podgrab/podgrab-claim1-persistentvolumeclaim.yaml
  11. +50
    -0
      Podgrab/podgrab-deployment.yaml
  12. +22
    -0
      Podgrab/podgrab-service.yaml
  13. +14
    -0
      Podgrab/pv-local-assets.yaml
  14. +13
    -0
      Podgrab/pv-local-config.yaml

+ 7
- 5
Airsonic/airsonic-deployment.yaml View File

@ -8,7 +8,7 @@ spec:
ports:
- name: http
port: 4040
nodePort: 30780
nodePort: 30680
targetPort: airsonic-http
selector:
app: airsonic
@ -53,22 +53,24 @@ spec:
- name: JAVA_OPTS
value: -Dserver.port=4040
name: airsonic
#image: airsonic/airsonic
image: docker-registry:32000/airsonic:1.0
image: airsonic/airsonic
#image: docker-registry:32000/airsonic:1.0
ports:
- containerPort: 4040
name: "airsonic-http"
volumeMounts:
- name: airsonic-www-folder
mountPath: /airsonic/data
subPath: data
- name: airsonic-www-folder
mountPath: /airsonic/music
#- name: airsonic-www-folder
#mountPath: /airsonic/luisa
subPath: music
- name: airsonic-www-folder
mountPath: /airsonic/playlists
subPath: playlists
- name: airsonic-www-folder
mountPath: /airsonic/podcasts
subPath: podcasts
imagePullSecrets:
- name: reg-cred-secret
volumes:


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

@ -1,3 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: jellyfin
namespace: jellyfin
labels:
app: jellyfin
spec:
type: NodePort
ports:
- port: 8096
nodePort: 30680
targetPort: jellyfin
selector:
app: jellyfin
tier: frontend
---
apiVersion: apps/v1
kind: Deployment
metadata:


+ 12
- 0
NuevoHTTPS/certificate.yaml View File

@ -0,0 +1,12 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: production
namespace: default
spec:
issuerRef:
name: letsencrypt-production
kind: ClusterIssuer
secretName: cert-rey
dnsNames:
- reymota.ddns.net

+ 14
- 0
NuevoHTTPS/clusterissuer.yaml View File

@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-production
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: creylopez@yahoo.es
privateKeySecretRef:
name: letsencrypt-production-key
solvers:
- http01:
ingress:
class: kong

+ 5
- 0
Podgrab/creaTodo.sh View File

@ -0,0 +1,5 @@
kubectl create namespace podgrab
kubectl create -f pv-local-config.yaml
kubectl create -f pv-local-assets.yaml
kubectl create -k ./
watch kubectl get all -n podgrab

+ 5
- 0
Podgrab/kustomization.yaml View File

@ -0,0 +1,5 @@
resources:
- podgrab-claim0-persistentvolumeclaim.yaml
- podgrab-claim1-persistentvolumeclaim.yaml
- podgrab-deployment.yaml
- podgrab-service.yaml

+ 2
- 0
Podgrab/muevePodcast View File

@ -0,0 +1,2 @@
sudo id3v2 -a "HistoCast" /mnt/Externo/airsonic/podcasts/HistoCast/*.mp3
sudo mv /mnt/Externo/airsonic/podcasts/HistoCast/*.mp3 /mnt/Externo/nextcloud/server-data/data/creylopez/files/Podcasts

+ 4
- 0
Podgrab/paraTodo.sh View File

@ -0,0 +1,4 @@
kubectl delete -k ./
kubectl delete -f pv-local-config.yaml
kubectl delete -f pv-local-assets.yaml
kubectl delete namespace podgrab

+ 15
- 0
Podgrab/podgrab-claim0-persistentvolumeclaim.yaml View File

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

+ 15
- 0
Podgrab/podgrab-claim1-persistentvolumeclaim.yaml View File

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

+ 50
- 0
Podgrab/podgrab-deployment.yaml View File

@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: podgrab
name: podgrab
namespace: podgrab
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: podgrab
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: podgrab
spec:
containers:
- env:
- name: CHECK_FREQUENCY
value: "240"
image: akhilrex/podgrab
name: podgrab
ports:
- containerPort: 8080
resources: {}
volumeMounts:
- mountPath: /config
name: podgrab-claim0
- mountPath: /assets
name: podgrab-claim1
restartPolicy: Always
volumes:
- name: podgrab-claim0
persistentVolumeClaim:
claimName: podgrab-claim0
- name: podgrab-claim1
persistentVolumeClaim:
claimName: podgrab-claim1
status: {}

+ 22
- 0
Podgrab/podgrab-service.yaml View File

@ -0,0 +1,22 @@
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: podgrab
name: podgrab
namespace: podgrab
spec:
type: NodePort
ports:
- name: "8080"
port: 8080
nodePort: 30780
targetPort: 8080
selector:
io.kompose.service: podgrab
status:
loadBalancer: {}

+ 14
- 0
Podgrab/pv-local-assets.yaml View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: podgrab-assets
labels:
app: podgrab
spec:
capacity:
storage: 55Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/airsonic/podcasts"

+ 13
- 0
Podgrab/pv-local-config.yaml View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: podgrab-config
labels:
epp: podgrab
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/podgrab/config"

Loading…
Cancel
Save