Bladeren bron

Añado pvc para las migrations de accounts

Tino 3 maanden geleden
bovenliggende
commit
9f63b7fb79
2 gewijzigde bestanden met toevoegingen van 23 en 0 verwijderingen
  1. 7 0
      K8S/jugaralpadel-deployment.yaml
  2. 16 0
      K8S/pvc-jugaralpadel.yaml

+ 7 - 0
K8S/jugaralpadel-deployment.yaml

@@ -95,6 +95,9 @@ spec:
         - mountPath: /app/reymotausers/migrations
         - mountPath: /app/reymotausers/migrations
           name: jugaralpadel-reymotausers-migrations
           name: jugaralpadel-reymotausers-migrations
 
 
+        - mountPath: /app/accounts/migrations
+          name: jugaralpadel-accounts-migrations
+
         - mountPath: /app/staticfiles
         - mountPath: /app/staticfiles
           name: static-volume
           name: static-volume
       imagePullSecrets:
       imagePullSecrets:
@@ -117,6 +120,10 @@ spec:
         persistentVolumeClaim:
         persistentVolumeClaim:
           claimName: jugaralpadel-reymotausers-migrations
           claimName: jugaralpadel-reymotausers-migrations
 
 
+      - name: jugaralpadel-accounts-migrations
+        persistentVolumeClaim:
+          claimName: jugaralpadel-accounts-migrations
+
       - name: static-volume
       - name: static-volume
         persistentVolumeClaim:
         persistentVolumeClaim:
           claimName: static-volume
           claimName: static-volume

+ 16 - 0
K8S/pvc-jugaralpadel.yaml

@@ -61,3 +61,19 @@ spec:
     requests:
     requests:
       storage: 50Mi
       storage: 50Mi
 status: {}
 status: {}
+---
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  creationTimestamp: null
+  labels:
+    io.kompose.service: jugaralpadel-accounts-migrations
+  name: jugaralpadel-accounts-migrations
+  namespace: <NS>
+spec:
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 50Mi
+status: {}