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

21
k8s/ingress.yaml Normal file
View File

@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ${APP_NAME}-ingress
namespace: ${NAMESPACE}
labels:
app: ${APP_NAME}
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
rules:
- host: ${HOST}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ${APP_NAME}-service
port:
number: 80