Browse Source

Cambiso varios

politica
Celestino Rey 9 months ago
parent
commit
2b5c2b8229
3 changed files with 26 additions and 2 deletions
  1. +2
    -2
      ReyMotaAppsRancher/K8S/Deployments/reymota-deployment.yaml
  2. +11
    -0
      ReyMotaAppsRancher/K8S/Makefile
  3. +13
    -0
      ReyMotaAppsRancher/K8S/PVC/prueba-pvc.yaml

+ 2
- 2
ReyMotaAppsRancher/K8S/Deployments/reymota-deployment.yaml View File

@ -103,7 +103,7 @@ spec:
name: reymota-reymotausers-migrations
- mountPath: /app/reymota/staticfiles
name: static-volume
name: prueba-volume
imagePullSecrets:
- name: myregistrykey
restartPolicy: Always
@ -120,7 +120,7 @@ spec:
- name: reymota-reymotausers-migrations
persistentVolumeClaim:
claimName: reymota-reymotausers-migrations
- name: static-volume
- name: prueba-volume
persistentVolumeClaim:
claimName: static-volume
status: {}

+ 11
- 0
ReyMotaAppsRancher/K8S/Makefile View File

@ -48,6 +48,7 @@ clean:
-kubectl delete -f ./ConfigMaps/env-prod-configmap.yaml
-kubectl delete -f ./ConfigMaps/env-prod-db-configmap.yaml
-kubectl delete -f reg-secret.yaml
nginx:
@ -58,3 +59,13 @@ backup:
muestra:
-envsubst < reymota-deployment.yaml > /tmp/deployment.yaml
pvc-install:
-kubectl create -f PVC/postgres-data-persistentvolumeclaim.yaml
-kubectl create -f PVC/reymota-prod-persistentvolumeclaim.yaml
-kubectl create -f PVC/static-volume-persistentvolumeclaim.yaml
pvc-clean:
-kubectl delete -f PVC/postgres-data-persistentvolumeclaim.yaml
-kubectl delete -f PVC/reymota-prod-persistentvolumeclaim.yaml
-kubectl delete -f PVC/static-volume-persistentvolumeclaim.yaml

+ 13
- 0
ReyMotaAppsRancher/K8S/PVC/prueba-pvc.yaml View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
io.kompose.service: prueba-volume
name: prueba-volume
namespace: ranchermota
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 70Mi

Loading…
Cancel
Save