From 476f40a52905726f1bdd4be5f537dc5873750f36 Mon Sep 17 00:00:00 2001 From: lethdat Date: Thu, 2 Apr 2026 05:55:09 +0000 Subject: [PATCH] add deplotment --- .deploy/stream.ui-production.yaml | 79 +++++++++++++++++++++++++++++++ buf.gen.yaml | 19 -------- buf.yaml | 9 ---- 3 files changed, 79 insertions(+), 28 deletions(-) create mode 100644 .deploy/stream.ui-production.yaml delete mode 100644 buf.gen.yaml delete mode 100644 buf.yaml diff --git a/.deploy/stream.ui-production.yaml b/.deploy/stream.ui-production.yaml new file mode 100644 index 0000000..cc00184 --- /dev/null +++ b/.deploy/stream.ui-production.yaml @@ -0,0 +1,79 @@ +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: stream.ui-config + namespace: stream-production + labels: + app: stream.ui +data: + STREAM_API_GRPC_ADDR: "stream.api-svc:9000" + GOOGLE_AUTH_FINALIZE_PATH: "/auth/google/finalize" +--- +kind: Service +apiVersion: v1 +metadata: + name: stream.ui-svc + namespace: stream-production + labels: + app: stream.ui +spec: + selector: + app: stream.ui + ports: + - protocol: TCP + port: 80 + targetPort: 3000 + type: NodePort +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: stream.ui-dep + namespace: stream-production + labels: + app: stream.ui +spec: + replicas: 1 + selector: + matchLabels: + app: stream.ui + template: + metadata: + labels: + app: stream.ui + spec: + imagePullSecrets: + - name: registry-production-secret + containers: + - name: stream.ui + image: registry.awing.vn/stream-production/stream.ui:$BUILD_NUMBER + ports: + - containerPort: 3000 + env: + - name: STREAM_API_GRPC_ADDR + valueFrom: + configMapKeyRef: + name: stream.ui-config + key: STREAM_API_GRPC_ADDR + - name: GOOGLE_AUTH_FINALIZE_PATH + valueFrom: + configMapKeyRef: + name: stream.ui-config + key: GOOGLE_AUTH_FINALIZE_PATH + - name: STREAM_INTERNAL_AUTH_MARKER + valueFrom: + secretKeyRef: + name: stream.ui-secret + key: STREAM_INTERNAL_AUTH_MARKER + - name: STREAM_UI_JWT_SECRET + valueFrom: + secretKeyRef: + name: stream.ui-secret + key: STREAM_UI_JWT_SECRET + - name: STREAM_UI_REDIS_URL + valueFrom: + secretKeyRef: + name: stream.ui-secret + key: STREAM_UI_REDIS_URL + diff --git a/buf.gen.yaml b/buf.gen.yaml deleted file mode 100644 index b5276b2..0000000 --- a/buf.gen.yaml +++ /dev/null @@ -1,19 +0,0 @@ -version: v2 -plugins: - # - remote: buf.build/protocolbuffers/go - # out: internal/gen/proto - # opt: - # - paths=source_relative - # - remote: buf.build/grpc/go - # out: internal/gen/proto - # opt: - # - paths=source_relative - - remote: buf.build/community/stephenh-ts-proto - out: ./src/server/utils/proto - opt: - - env=node - - esModuleInterop=true - - outputServices=grpc-js - - useOptionals=all - - forceLong=number - - useDate=string diff --git a/buf.yaml b/buf.yaml deleted file mode 100644 index c7e30e3..0000000 --- a/buf.yaml +++ /dev/null @@ -1,9 +0,0 @@ -version: v2 -modules: - - path: proto -lint: - use: - - STANDARD -breaking: - use: - - FILE