From edb0cbd34a562fc016d0eb3ed0665f0a901b618c Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Fri, 10 Jan 2025 18:47:40 +0100 Subject: [PATCH] Punto de partida --- K8S/db-deployment.yaml | 4 +++- K8S/jugaralpadel-prod-persistentvolumeclaim.yaml | 3 +++ K8S/postgres-data-persistentvolumeclaim.yaml | 1 + K8S/static-volume-persistentvolumeclaim.yaml | 1 + Makefile | 8 -------- 5 files changed, 8 insertions(+), 9 deletions(-) delete mode 100644 Makefile diff --git a/K8S/db-deployment.yaml b/K8S/db-deployment.yaml index eba7712..15a2353 100644 --- a/K8S/db-deployment.yaml +++ b/K8S/db-deployment.yaml @@ -9,6 +9,8 @@ metadata: name: db namespace: jugaralpadel spec: + securityContext: + fsGroup: GROUP_ID replicas: 1 selector: matchLabels: @@ -43,7 +45,7 @@ spec: image: postgres:15 name: db volumeMounts: - - mountPath: /var/lib/postgresql/data + - mountPath: /var/lib/postgresql/data:z name: postgres-data restartPolicy: Always volumes: diff --git a/K8S/jugaralpadel-prod-persistentvolumeclaim.yaml b/K8S/jugaralpadel-prod-persistentvolumeclaim.yaml index d8c2c1a..5b6d11e 100644 --- a/K8S/jugaralpadel-prod-persistentvolumeclaim.yaml +++ b/K8S/jugaralpadel-prod-persistentvolumeclaim.yaml @@ -12,6 +12,7 @@ spec: resources: requests: storage: 100Mi + storageClassName: lvms-vg1 status: {} --- apiVersion: v1 @@ -28,6 +29,7 @@ spec: resources: requests: storage: 50Mi + storageClassName: lvms-vg1 status: {} --- apiVersion: v1 @@ -44,4 +46,5 @@ spec: resources: requests: storage: 53Mi + storageClassName: lvms-vg1 status: {} diff --git a/K8S/postgres-data-persistentvolumeclaim.yaml b/K8S/postgres-data-persistentvolumeclaim.yaml index c1576e0..8d4c5ca 100644 --- a/K8S/postgres-data-persistentvolumeclaim.yaml +++ b/K8S/postgres-data-persistentvolumeclaim.yaml @@ -11,3 +11,4 @@ spec: resources: requests: storage: 100Mi + storageClassName: lvms-vg1 diff --git a/K8S/static-volume-persistentvolumeclaim.yaml b/K8S/static-volume-persistentvolumeclaim.yaml index 85c1fb7..3779636 100644 --- a/K8S/static-volume-persistentvolumeclaim.yaml +++ b/K8S/static-volume-persistentvolumeclaim.yaml @@ -11,3 +11,4 @@ spec: resources: requests: storage: 70Mi + storageClassName: lvms-vg1 diff --git a/Makefile b/Makefile deleted file mode 100644 index 41e19a2..0000000 --- a/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -install: - - echo "Creando imagen con version '${IMG_VERSION}' para la arquitectura '${ARQUITECTURA}' en el registry '${REGISTRY}'" - - docker build --no-cache -t ${REGISTRY}/jugaralpadel-${ARQUITECTURA}:${IMG_VERSION} . - docker push ${REGISTRY}/jugaralpadel-${ARQUITECTURA}:${IMG_VERSION} - -