diff --git a/smarketing/configmaps/azure-storage-configmap.yaml b/smarketing/configmaps/azure-storage-configmap.yaml new file mode 100644 index 0000000..27106b8 --- /dev/null +++ b/smarketing/configmaps/azure-storage-configmap.yaml @@ -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 diff --git a/smarketing/deployments/marketing-content/marketing-content-deployment.yaml b/smarketing/deployments/marketing-content/marketing-content-deployment.yaml index 8847270..f59ebcf 100644 --- a/smarketing/deployments/marketing-content/marketing-content-deployment.yaml +++ b/smarketing/deployments/marketing-content/marketing-content-deployment.yaml @@ -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 diff --git a/smarketing/deployments/store/store-deployment.yaml b/smarketing/deployments/store/store-deployment.yaml index 008c78c..23fb546 100644 --- a/smarketing/deployments/store/store-deployment.yaml +++ b/smarketing/deployments/store/store-deployment.yaml @@ -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 diff --git a/smarketing/secrets/azure-storage-secret.yaml b/smarketing/secrets/azure-storage-secret.yaml new file mode 100644 index 0000000..a65331a --- /dev/null +++ b/smarketing/secrets/azure-storage-secret.yaml @@ -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=="