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
This commit is contained in:
Ubuntu 2025-06-19 08:52:22 +00:00
parent 110a402ee8
commit 719d3b2c69
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,21 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: azure-storage-config
namespace: smarketing
labels:
app.kubernetes.io/name: azure-storage
app.kubernetes.io/component: config
app.kubernetes.io/part-of: smarketing
data:
# Azure Storage Account 기본 정보
AZURE_STORAGE_ACCOUNT_NAME: "stdigitalgarage02"
AZURE_STORAGE_ENDPOINT: "https://stdigitalgarage02.blob.core.windows.net"
# 컨테이너 설정
AZURE_STORAGE_CONTAINER_NAME: "ai-content"
AZURE_STORAGE_MENU_CONTAINER: "smarketing-menu-images"
AZURE_STORAGE_STORE_CONTAINER: "smarketing-store-images"
# 파일 업로드 설정
AZURE_STORAGE_MAX_FILE_SIZE: "10485760" # 10MB

View File

@ -61,10 +61,14 @@ spec:
name: common-config name: common-config
- configMapRef: - configMapRef:
name: marketing-content-config name: marketing-content-config
- configMapRef:
name: azure-storage-config # 🔥 추가된 부분!
- secretRef: - secretRef:
name: common-secret name: common-secret
- secretRef: - secretRef:
name: marketing-content-secret name: marketing-content-secret
- secretRef:
name: azure-storage-secret # 🔥 추가된 부분!
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View File

@ -61,10 +61,14 @@ spec:
name: common-config name: common-config
- configMapRef: - configMapRef:
name: store-config name: store-config
- configMapRef:
name: azure-storage-config # 🔥 추가된 부분!
- secretRef: - secretRef:
name: common-secret name: common-secret
- secretRef: - secretRef:
name: store-secret name: store-secret
- secretRef:
name: azure-storage-secret # 🔥 추가된 부분!
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Secret
metadata:
name: azure-storage-secret
namespace: smarketing
labels:
app.kubernetes.io/name: azure-storage
app.kubernetes.io/component: secret
app.kubernetes.io/part-of: smarketing
type: Opaque
stringData:
# Azure Storage Account Key (Base64 인코딩 자동 처리)
AZURE_STORAGE_ACCOUNT_KEY: "1cgMMGgonc5frC84eGM9bxgXYL7NtOUkzgCD/fH6MEnyo7O+bscMfVfmKQBfrvCC8/NnYGndZubm+AStZEDUpw=="