From 67e3754050a4c0495926289289b77b3b740bcae3 Mon Sep 17 00:00:00 2001 From: ycz008 Date: Fri, 28 Jul 2023 17:22:16 +0800 Subject: [PATCH] add svc --- dev-upgrade/sevice-group/recruiting.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dev-upgrade/sevice-group/recruiting.yml b/dev-upgrade/sevice-group/recruiting.yml index 9a87c53..0a2c44a 100644 --- a/dev-upgrade/sevice-group/recruiting.yml +++ b/dev-upgrade/sevice-group/recruiting.yml @@ -179,12 +179,12 @@ spec: apiVersion: v1 kind: ConfigMap metadata: - name: recruiting-config + name: recruit-config data: application.yml: | spring: application: - name: recruiting-config + name: recruit-config profiles: active: dev cloud: @@ -199,22 +199,22 @@ data: apiVersion: apps/v1 kind: Deployment metadata: - name: recruiting-config + name: recruit-config spec: replicas: 1 selector: matchLabels: - app: recruiting-config + app: recruit-config template: metadata: labels: - app: recruiting-config + app: recruit-config spec: imagePullSecrets: - name: deploy-regcred containers: - - name: recruiting-config - image: beaconfireiic/recruiting-config:1.1.0-dev + - name: recruit-config + image: beaconfireiic/recruit-config:1.1.0-dev imagePullPolicy: Always ports: - name: http @@ -226,7 +226,7 @@ spec: - name: "SERVER_PORT" value: "8080" - name: "LOG_APP-NAME" - value: "recruiting-config" + value: "recruit-config" - name: "SPRING_PROFILES_ACTIVE" value: "dev" volumeMounts: @@ -245,15 +245,15 @@ spec: volumes: - name: config configMap: - name: recruiting-config + name: recruit-config - name: app-logs hostPath: - path: /data/app_logs/recruiting-config + path: /data/app_logs/recruit-config --- apiVersion: v1 kind: Service metadata: - name: recruiting-config + name: recruit-config spec: type: ClusterIP ports: @@ -262,4 +262,4 @@ spec: port: 8080 targetPort: http selector: - app: recruiting-config \ No newline at end of file + app: recruit-config \ No newline at end of file