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}