2 Commits

Author SHA1 Message Date
051fc27dac update service name 2026-04-02 09:54:44 +00:00
3be483cff0 update deployment 2026-04-02 09:04:05 +00:00

View File

@@ -2,24 +2,27 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: stream.ui-config name: stream-ui-config
namespace: stream-production namespace: stream-production
labels: labels:
app: stream.ui app: stream-ui
data: data:
STREAM_API_GRPC_ADDR: "stream.api-svc:9000" STREAM_API_GRPC_ADDR: "stream.api-svc:9000"
GOOGLE_AUTH_FINALIZE_PATH: "/auth/google/finalize" GOOGLE_AUTH_FINALIZE_PATH: "/auth/google/finalize"
STREAM_INTERNAL_AUTH_MARKER: "stream_maker_123xxx"
STREAM_UI_JWT_SECRET: "xxx_stream_maker_123_xxx"
STREAM_UI_REDIS_URL: "redis://:pass123@47.84.62.226:6379/3"
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: stream.ui-svc name: stream-ui-svc
namespace: stream-production namespace: stream-production
labels: labels:
app: stream.ui app: stream-ui
spec: spec:
selector: selector:
app: stream.ui app: stream-ui
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
@@ -29,51 +32,51 @@ spec:
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: stream.ui-dep name: stream-ui-dep
namespace: stream-production namespace: stream-production
labels: labels:
app: stream.ui app: stream-ui
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: stream.ui app: stream-ui
template: template:
metadata: metadata:
labels: labels:
app: stream.ui app: stream-ui
spec: spec:
imagePullSecrets: # imagePullSecrets:
- name: registry-production-secret # - name: registry-production-secret
containers: containers:
- name: stream.ui - name: stream-ui
image: registry.awing.vn/stream-production/stream.ui:$BUILD_NUMBER image: registry.awing.vn/stream-production/stream-ui:$BUILD_NUMBER
ports: ports:
- containerPort: 3000 - containerPort: 3000
env: env:
- name: STREAM_API_GRPC_ADDR - name: STREAM_API_GRPC_ADDR
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
name: stream.ui-config name: stream-ui-config
key: STREAM_API_GRPC_ADDR key: STREAM_API_GRPC_ADDR
- name: GOOGLE_AUTH_FINALIZE_PATH - name: GOOGLE_AUTH_FINALIZE_PATH
valueFrom: valueFrom:
configMapKeyRef: configMapKeyRef:
name: stream.ui-config name: stream-ui-config
key: GOOGLE_AUTH_FINALIZE_PATH key: GOOGLE_AUTH_FINALIZE_PATH
- name: STREAM_INTERNAL_AUTH_MARKER - name: STREAM_INTERNAL_AUTH_MARKER
valueFrom: valueFrom:
secretKeyRef: configMapKeyRef:
name: stream.ui-secret name: stream-ui-config
key: STREAM_INTERNAL_AUTH_MARKER key: STREAM_INTERNAL_AUTH_MARKER
- name: STREAM_UI_JWT_SECRET - name: STREAM_UI_JWT_SECRET
valueFrom: valueFrom:
secretKeyRef: configMapKeyRef:
name: stream.ui-secret name: stream-ui-config
key: STREAM_UI_JWT_SECRET key: STREAM_UI_JWT_SECRET
- name: STREAM_UI_REDIS_URL - name: STREAM_UI_REDIS_URL
valueFrom: valueFrom:
secretKeyRef: configMapKeyRef:
name: stream.ui-secret name: stream-ui-config
key: STREAM_UI_REDIS_URL key: STREAM_UI_REDIS_URL