From 57f86dff1c1abfc2de1ad45c02b1399357fa7889 Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Thu, 5 Mar 2020 00:07:52 +0000 Subject: [PATCH] [5.03.20] Changing ports --- configuration/kubernetes/deployment.yaml | 8 ++++---- configuration/kubernetes/service.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index 80d3757..5feed85 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -6,7 +6,7 @@ metadata: name: RESOURCE_NAME namespace: production spec: - replicas: 0 + replicas: 1 selector: matchLabels: app: RESOURCE_NAME @@ -62,7 +62,7 @@ spec: name: endpoints key: dbGateway.url ports: - - containerPort: 9090 + - containerPort: 5000 name: RESOURCE_NAME # livenessProbe: # httpGet: @@ -72,7 +72,7 @@ spec: # periodSeconds: 30 # timeoutSeconds: 1 # successThreshold: 1 -# failureThreshold: 3 +# failureThreshold: 1 # readinessProbe: # httpGet: # port: 5000 @@ -81,7 +81,7 @@ spec: # periodSeconds: 5 # timeoutSeconds: 1 # successThreshold: 1 -# failureThreshold: 10 +# failureThreshold: 1 imagePullPolicy: Always resources: requests: diff --git a/configuration/kubernetes/service.yaml b/configuration/kubernetes/service.yaml index 5ff73c5..bcb0e4d 100644 --- a/configuration/kubernetes/service.yaml +++ b/configuration/kubernetes/service.yaml @@ -9,8 +9,8 @@ spec: selector: app: RESOURCE_NAME ports: - - port: 9090 + - port: 5000 protocol: TCP - targetPort: 9090 + targetPort: 5000 sessionAffinity: None type: ClusterIP \ No newline at end of file