| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -0,0 +1,5 @@ | |||||
| resources: | |||||
| - podgrab-claim0-persistentvolumeclaim.yaml | |||||
| - podgrab-claim1-persistentvolumeclaim.yaml | |||||
| - podgrab-deployment.yaml | |||||
| - podgrab-service.yaml | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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: {} | |||||
| @ -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: {} | |||||
| @ -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: {} | |||||
| @ -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: {} | |||||
| @ -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" | |||||
| @ -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" | |||||