update cicd

This commit is contained in:
2026-04-02 11:01:30 +00:00
parent 863a0ea2f6
commit 5a7f29c116
54 changed files with 4298 additions and 473 deletions

View File

@@ -0,0 +1,89 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: stream-api-config
namespace: stream-production
labels:
app: stream-api
data:
config.yaml: |
server:
grpc_port: "9000"
mode: "release"
database:
dsn: "host=47.84.63.130 user=postgres password=D@tkhong9 dbname=video_db port=5432 sslmode=disable"
redis:
addr: "47.84.62.226:6379"
password: "pass123"
db: 3
google:
client_id: "781933579930-avgrrvdj26ajqujs0snajk62jgch2jl5.apps.googleusercontent.com"
client_secret: "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"
redirect_url: "https://hlstiktok.com/auth/google/callback"
state_ttl_minutes: 10
internal:
marker: "your-secret-marker"
email:
from: "no-reply@picpic.com"
aws:
region: "us-east-1"
bucket: ""
access_key: ""
secret_key: ""
---
kind: Service
apiVersion: v1
metadata:
name: stream-api-svc
namespace: stream-production
labels:
app: stream-api
spec:
selector:
app: stream-api
ports:
- protocol: TCP
port: 80
targetPort: 9000
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: stream-api-dep
namespace: stream-production
labels:
app: stream-api
spec:
replicas: 1
selector:
matchLabels:
app: stream-api
template:
metadata:
labels:
app: stream-api
spec:
# imagePullSecrets:
# - name: registry-production-secret
containers:
- name: stream-api
image: registry.awing.vn/stream-production/stream-api:$BUILD_NUMBER
ports:
- containerPort: 9000
volumeMounts:
- name: stream-api-config
mountPath: /config.yaml
subPath: config.yaml
volumes:
- name: stream-api-config
configMap:
name: stream-api-config