From ee7a8fae7aed0dc906e5d9121b4c2eeb1aafc364 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Tue, 6 Aug 2024 14:24:11 +0200 Subject: [PATCH] Usando el registro privado --- LibrosPy/K8S/libros-deployment.yaml | 5 ++++- LibrosPy/servicios/Makefile | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/LibrosPy/K8S/libros-deployment.yaml b/LibrosPy/K8S/libros-deployment.yaml index e95788f..dbb457c 100644 --- a/LibrosPy/K8S/libros-deployment.yaml +++ b/LibrosPy/K8S/libros-deployment.yaml @@ -37,7 +37,8 @@ spec: - 0.0.0.0:5000 - libros:create_app() name: librospy - image: creylopez/libros:$IMG_VERSION + #image: creylopez/libros:$IMG_VERSION + image: localhost:30342/libros:$IMG_VERSION env: - name: SALUDO_DEMO value: "Hola, mundo" @@ -50,6 +51,8 @@ spec: name: librospy-instance - mountPath: /libros/migrations name: librospy-migrations + imagePullSecrets: + - name: myregistrykey restartPolicy: Always volumes: - name: librospy-instance diff --git a/LibrosPy/servicios/Makefile b/LibrosPy/servicios/Makefile index ffce4fd..4baa09b 100644 --- a/LibrosPy/servicios/Makefile +++ b/LibrosPy/servicios/Makefile @@ -2,7 +2,7 @@ install: echo "Creando imagen con version ${IMG_VERSION}" - docker build --no-cache -t creylopez/libros:${IMG_VERSION} . - docker push creylopez/libros:${IMG_VERSION} - - + #docker build --no-cache -t creylopez/libros:${IMG_VERSION} . + #docker push creylopez/libros:${IMG_VERSION} + docker build --no-cache -t localhost:30342/libros:${IMG_VERSION} . + docker push localhost:30342/libros:${IMG_VERSION}