diff --git a/Firefly/k8s-cluster/pv-local-ff.yaml b/Firefly/k8s-cluster/pv-local-ff.yaml index 6708ab54..c977ee39 100644 --- a/Firefly/k8s-cluster/pv-local-ff.yaml +++ b/Firefly/k8s-cluster/pv-local-ff.yaml @@ -8,4 +8,4 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/fireflyiii/firefly-uploads" + path: "/mnt/Externo/fireflyiii/firefly-uploads" diff --git a/Firefly/k8s-cluster/pv-local-mysql.yaml b/Firefly/k8s-cluster/pv-local-mysql.yaml index 31830bb1..ba66bbf5 100644 --- a/Firefly/k8s-cluster/pv-local-mysql.yaml +++ b/Firefly/k8s-cluster/pv-local-mysql.yaml @@ -8,4 +8,4 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/fireflyiii/firefly-db" + path: "/mnt/Externo/fireflyiii/firefly-db" diff --git a/Gogs/pv-local-gogs.yaml b/Gogs/pv-local-gogs.yaml index 95f62ede..584287fc 100644 --- a/Gogs/pv-local-gogs.yaml +++ b/Gogs/pv-local-gogs.yaml @@ -8,4 +8,4 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/gogs/gogs_data" + path: "/mnt/Externo/gogs/gogs_data" diff --git a/Gogs/pv-local-mysql-gogs.yaml b/Gogs/pv-local-mysql-gogs.yaml index 0dc28822..f8bddf3b 100644 --- a/Gogs/pv-local-mysql-gogs.yaml +++ b/Gogs/pv-local-mysql-gogs.yaml @@ -8,4 +8,4 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/gogs/gogs_db" + path: "/mnt/Externo/gogs/gogs_db" diff --git a/HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml b/HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml index 323e4cd9..3bbf7e25 100644 --- a/HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml +++ b/HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml @@ -8,5 +8,5 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/kanboard/kanboard" + path: "/mnt/Externo/kanboard/kanboard" diff --git a/HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml b/HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml index c388a88f..9d9660da 100644 --- a/HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml +++ b/HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml @@ -8,4 +8,4 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/kanboard/kanboard-db" + path: "/mnt/Externo/kanboard/kanboard-db" diff --git a/HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml b/HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml index 8fda6221..baadc320 100644 --- a/HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml +++ b/HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml @@ -8,5 +8,5 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/mediawiki/mediawiki" + path: "/mnt/Externo/mediawiki/mediawiki" diff --git a/HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml b/HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml index 6dc453f9..0a758938 100644 --- a/HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml +++ b/HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml @@ -8,4 +8,4 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/mediawiki/mediawiki-db" + path: "/mnt/Externo/mediawiki/mediawiki-db" diff --git a/HelmCharts/miweb-chart/templates/miweb-deployment.yaml b/HelmCharts/miweb-chart/templates/miweb-deployment.yaml index 84eeaa94..35548c08 100644 --- a/HelmCharts/miweb-chart/templates/miweb-deployment.yaml +++ b/HelmCharts/miweb-chart/templates/miweb-deployment.yaml @@ -12,20 +12,6 @@ spec: selector: app: miweb --- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: miweb-pv-claim - labels: - app: miweb -spec: - accessModes: - - ReadWriteMany - storageClassName: "" - resources: - requests: - storage: 2Gi ---- apiVersion: apps/v1 kind: Deployment metadata: diff --git a/HelmCharts/miweb-chart/templates/pv-local-miweb.yaml b/HelmCharts/pv-local-miweb.yaml similarity index 100% rename from HelmCharts/miweb-chart/templates/pv-local-miweb.yaml rename to HelmCharts/pv-local-miweb.yaml diff --git a/HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml b/HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml index 1ebf965b..c6281758 100644 --- a/HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml +++ b/HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml @@ -8,5 +8,5 @@ spec: accessModes: - ReadWriteOnce hostPath: - path: "/mnt/cluster/vaultwarden" + path: "/mnt/Externo/vaultwarden" diff --git a/K8S-dashboard/CrearDashboard.sh b/K8S-dashboard/CrearDashboard.sh deleted file mode 100644 index f8fd6b5e..00000000 --- a/K8S-dashboard/CrearDashboard.sh +++ /dev/null @@ -1,29 +0,0 @@ -kubectl create -f recommended.yaml -kubectl -n kubernetes-dashboard edit service kubernetes-dashboard -kubectl -n kubernetes-dashboard get service kubernetes-dashboard - -cat < /tmp/podsmal + +if [ $? -eq 0 ]; then + # hay algo que no es Running, por lo tanto, está mal + df | grep sd >> /tmp/podsmal + sudo -u creylopez cat /tmp/podsmal | mail -s "Algunos pod están funcionando mal" "creylopez@yahoo.es" +fi diff --git a/pepe b/pepe new file mode 100644 index 00000000..fe9fd423 --- /dev/null +++ b/pepe @@ -0,0 +1,7 @@ +[?1049h[>4;2m[?1h=[?2004h[?12h[?12l[?25l"borraMal.sh" 10L, 189C#!/bin/bash + + +kubectl get pod -A | grep Running | while read -r line; doecho "$line"ns=`echo $line| cut -c1-19`pod=`echo $line|cut -c20-63`echo "Namespace: $ns, Pod: $pod" + +done +~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 5,13-20 Todo[?25h[?25lType :qa and press to exit Vim5,13-20 Todo[?25h[?25l5,13-20 Todo[?25h[?25l5,13-20 Todo[?25h[?25l5,13-20 Todo[?25h \ No newline at end of file