Refactor Kubernetes deployment process to use manifest files and environment variable substitution

This commit is contained in:
2025-10-01 14:45:51 +08:00
parent b7b024ca66
commit e64a396633
4 changed files with 74 additions and 61 deletions

13
k8s/service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: ${APP_NAME}-service
namespace: ${NAMESPACE}
spec:
selector:
app: ${APP_NAME}
ports:
- protocol: TCP
port: 80
targetPort: 5173
type: ClusterIP