mirror of
https://github.com/won-ktds/smarketing-manifest.git
synced 2025-12-06 06:46:26 +00:00
85 lines
2.0 KiB
YAML
85 lines
2.0 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: marketing-content-config
|
|
namespace: smarketing
|
|
data:
|
|
SERVER_PORT: "8083"
|
|
POSTGRES_HOST: "psql-digitalgarage-02.postgres.database.azure.com"
|
|
POSTGRES_PORT: "5432"
|
|
POSTGRES_DB: "MarketingContentDB"
|
|
REDIS_HOST: "redis-digitalgarage-02.redis.cache.windows.net"
|
|
REDIS_PORT: "6380"
|
|
JPA_DDL_AUTO: "create-drop"
|
|
JPA_SHOW_SQL: "true"
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: marketing-content-secret
|
|
namespace: smarketing
|
|
stringData:
|
|
POSTGRES_USER: "pgadmin"
|
|
POSTGRES_PASSWORD: "DG_Won!"
|
|
REDIS_PASSWORD: "bOpPbvYhUF8toxgHDfOJlG62HTtgX2AwxAzCaDajg2w="
|
|
type: Opaque
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: marketing-content
|
|
namespace: smarketing
|
|
labels:
|
|
app: marketing-content
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: marketing-content
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: marketing-content
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: acr-secret
|
|
containers:
|
|
- name: marketing-content
|
|
image: acrdigitalgarage02.azurecr.io/smarketing/marketing-content:20250620013613
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8083
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
envFrom:
|
|
- configMapRef:
|
|
name: common-config
|
|
- configMapRef:
|
|
name: marketing-content-config
|
|
- configMapRef:
|
|
name: azure-storage-config # 🔥 추가된 부분!
|
|
- secretRef:
|
|
name: common-secret
|
|
- secretRef:
|
|
name: marketing-content-secret
|
|
- secretRef:
|
|
name: azure-storage-secret # 🔥 추가된 부분!
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: marketing-content
|
|
namespace: smarketing
|
|
spec:
|
|
selector:
|
|
app: marketing-content
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8083
|
|
type: ClusterIP
|