admin pannel k8s

This commit is contained in:
tusuii
2026-02-19 18:53:04 +05:30
parent 94d0aabec6
commit ba2831d491
7 changed files with 174 additions and 2 deletions

20
k8s/configmap.yaml Normal file
View File

@@ -0,0 +1,20 @@
# NOTE: VITE_* variables are embedded into the JS bundle at build time by Vite.
# They cannot be changed at runtime without rebuilding the image.
#
# To deploy with a different API URL, rebuild the image with:
# docker build --build-arg VITE_API_URL=https://api.yourdomain.com \
# --build-arg VITE_APP_NAME="My Admin Panel" \
# -t your-registry/ecommerce-admin-panel:latest .
#
# This ConfigMap is provided for documentation and to store non-build-time
# configuration such as nginx tuning or future runtime injection.
apiVersion: v1
kind: ConfigMap
metadata:
name: ecommerce-admin-panel-config
namespace: ecommerce
labels:
app: ecommerce-admin-panel
data:
VITE_APP_NAME: "VC E-Commerce Admin Panel"
# VITE_API_URL must be set at build time — see note above