From 09f70ac62f4ff1179a84f4e46c524a6684593dc4 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Fri, 6 Aug 2021 13:58:23 -0400 Subject: [PATCH] fix: update to user a deploymentConfig and use the correct nodeshift command --- cute-name-service/package.json | 2 +- greeting-service/package.json | 2 +- service.cache.yml | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/cute-name-service/package.json b/cute-name-service/package.json index f9cf072..791608b 100644 --- a/cute-name-service/package.json +++ b/cute-name-service/package.json @@ -8,7 +8,7 @@ "test": "mocha", "lint:fix": "eslint . --fix", "prepublish": "license-reporter report --silent", - "openshift": "nodeshift --dockerImage=registry.access.redhat.com/ubi8/nodejs-14:latest", + "openshift": "nodeshift --dockerImage=registry.access.redhat.com/ubi8/nodejs-14", "postinstall": "license-reporter report --silent && license-reporter save --xml licenses.xml --silent", "start": "node ." }, diff --git a/greeting-service/package.json b/greeting-service/package.json index da16e4f..50b436b 100644 --- a/greeting-service/package.json +++ b/greeting-service/package.json @@ -9,7 +9,7 @@ "lint:fix": "eslint . --fix", "start": "node .", "prepublish": "license-reporter report --silent", - "openshift": "registry.access.redhat.com/ubi8/nodejs-14:latest", + "openshift": "nodeshift --dockerImage=registry.access.redhat.com/ubi8/nodejs-14", "postinstall": "license-reporter report --silent && license-reporter save --xml licenses.xml --silent" }, "main": "./bin/www", diff --git a/service.cache.yml b/service.cache.yml index 2076985..8edbca9 100644 --- a/service.cache.yml +++ b/service.cache.yml @@ -1,13 +1,15 @@ apiVersion: v1 kind: List items: - - apiVersion: extensions/v1beta1 - kind: Deployment + - apiVersion: v1 + kind: DeploymentConfig metadata: name: cache-server labels: app: cache-server spec: + selector: + app: cache-server replicas: 1 strategy: type: Recreate @@ -69,4 +71,4 @@ items: port: 11333 protocol: TCP targetPort: 11333 - type: ClusterIP \ No newline at end of file + type: ClusterIP