From 4571ef59f284962a95c58e820ed01964f1a38c2d Mon Sep 17 00:00:00 2001 From: ycz008 Date: Tue, 21 Nov 2023 17:41:43 +0800 Subject: [PATCH] prod remove gateway --- .../service_group/discover-service.yaml | 64 ++++++++ prod-upgrade/service_group/discover.yaml | 137 ------------------ 2 files changed, 64 insertions(+), 137 deletions(-) create mode 100644 prod-upgrade/service_group/discover-service.yaml delete mode 100644 prod-upgrade/service_group/discover.yaml diff --git a/prod-upgrade/service_group/discover-service.yaml b/prod-upgrade/service_group/discover-service.yaml new file mode 100644 index 0000000..503f503 --- /dev/null +++ b/prod-upgrade/service_group/discover-service.yaml @@ -0,0 +1,64 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: discovery-service +spec: + replicas: 1 + selector: + matchLabels: + app: discovery-service + template: + metadata: + labels: + app: discovery-service + spec: + imagePullSecrets: + - name: deploy-regcred + containers: + - name: discovery-service + image: beaconfireiic/service-discovery:1.1.0 + imagePullPolicy: Always + ports: + - name: http + containerPort: 8761 + protocol: TCP + env: + - name: "LOGGING_LEVEL_ROOT" + value: "info" + - name: "EUREKA_INSTANCE_HOSTNAME" + value: "discovery-service" + - name: "SERVER_PORT" + value: "8761" + - name: "LOG_APP-NAME" + value: "discovery-service" + - name: "SPRING_PROFILES_ACTIVE" + value: "prod" + volumeMounts: + - name: app-logs + mountPath: /logs + resources: + requests: + cpu: 0.1 + memory: 128Mi + limits: + cpu: 1 + memory: 2Gi + volumes: + - name: app-logs + hostPath: + path: /data/app_logs/discovery-service +--- +apiVersion: v1 +kind: Service +metadata: + name: discovery-service +spec: + type: ClusterIP + ports: + - name: http + protocol: TCP + port: 8761 + targetPort: http + selector: + app: discovery-service diff --git a/prod-upgrade/service_group/discover.yaml b/prod-upgrade/service_group/discover.yaml deleted file mode 100644 index 665cafe..0000000 --- a/prod-upgrade/service_group/discover.yaml +++ /dev/null @@ -1,137 +0,0 @@ -# apiVersion: v1 -# kind: ConfigMap -# metadata: -# name: discovery-service -# data: - ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: discovery-service -spec: - replicas: 1 - selector: - matchLabels: - app: discovery-service - template: - metadata: - labels: - app: discovery-service - spec: - imagePullSecrets: - - name: deploy-regcred - containers: - - name: discovery-service - image: beaconfireiic/service-discovery:1.1.0 - imagePullPolicy: Always - ports: - - name: http - containerPort: 8761 - protocol: TCP - env: - - name: "LOGGING_LEVEL_ROOT" - value: "info" - - name: "EUREKA_INSTANCE_HOSTNAME" - value: "discovery-service" - - name: "SERVER_PORT" - value: "8761" - - name: "LOG_APP-NAME" - value: "discovery-service" - - name: "SPRING_PROFILES_ACTIVE" - value: "prod" - volumeMounts: - - name: app-logs - mountPath: /logs - resources: - requests: - cpu: 0.1 - memory: 128Mi - limits: - cpu: 1 - memory: 2Gi - volumes: - - name: app-logs - hostPath: - path: /data/app_logs/discovery-service ---- -apiVersion: v1 -kind: Service -metadata: - name: discovery-service -spec: - type: ClusterIP - ports: - - name: http - protocol: TCP - port: 8761 - targetPort: http - selector: - app: discovery-service - ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: gateway -spec: - replicas: 1 - selector: - matchLabels: - app: gateway - template: - metadata: - labels: - app: gateway - spec: - imagePullSecrets: - - name: deploy-regcred - containers: - - name: gateway - image: beaconfireiic/gateway:1.1.0 - imagePullPolicy: Always - ports: - - name: http - containerPort: 8080 - protocol: TCP - env: - - name: "LOGGING_LEVEL_ROOT" - value: "info" - - name: "EUREKA_INSTANCE_HOSTNAME" - value: "discovery-service" - - name: "SERVER_PORT" - value: "8080" - - name: "EUREKA_CLIENT_SERVICE-URL_DEFAULT-ZONE" - value: "http://discovery-service:8761/eureka/" - - name: "LOG_APP-NAME" - value: "gateway" - - name: "SPRING_PROFILES_ACTIVE" - value: "prod" - volumeMounts: - - name: app-logs - mountPath: /logs - resources: - requests: - cpu: 0.1 - memory: 128Mi - limits: - cpu: 1 - memory: 2Gi - volumes: - - name: app-logs - hostPath: - path: /data/app_logs/gateway ---- -apiVersion: v1 -kind: Service -metadata: - name: gateway -spec: - type: ClusterIP - ports: - - name: http - protocol: TCP - port: 8080 - targetPort: http - selector: - app: gateway