smarketing-manifest/smarketing/deployments/marketing-content/marketing-content-deployment.yaml
Ubuntu 719d3b2c69 Add Azure Storage configuration for blob storage services
- Add azure-storage-configmap.yaml with storage account settings
- Add azure-storage-secret.yaml with storage account key
- Update marketing-content deployment envFrom to include Azure Storage
- Update store deployment envFrom to include Azure Storage
- Enable blob storage functionality for menu/store image uploads
2025-06-19 08:52:22 +00:00

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