mirror of
https://github.com/won-ktds/smarketing-manifest.git
synced 2025-12-06 06:06:24 +00:00
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:
parent
110a402ee8
commit
719d3b2c69
21
smarketing/configmaps/azure-storage-configmap.yaml
Normal file
21
smarketing/configmaps/azure-storage-configmap.yaml
Normal 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
|
||||
@ -61,10 +61,14 @@ spec:
|
||||
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
|
||||
|
||||
@ -61,10 +61,14 @@ spec:
|
||||
name: common-config
|
||||
- configMapRef:
|
||||
name: store-config
|
||||
- configMapRef:
|
||||
name: azure-storage-config # 🔥 추가된 부분!
|
||||
- secretRef:
|
||||
name: common-secret
|
||||
- secretRef:
|
||||
name: store-secret
|
||||
- secretRef:
|
||||
name: azure-storage-secret # 🔥 추가된 부분!
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
13
smarketing/secrets/azure-storage-secret.yaml
Normal file
13
smarketing/secrets/azure-storage-secret.yaml
Normal 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=="
|
||||
Loading…
x
Reference in New Issue
Block a user