--- 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